Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add defaultModelRendering parameter. #3628

Merged
merged 2 commits into from Sep 29, 2017

Conversation

gilbode
Copy link
Contributor

@gilbode gilbode commented Aug 31, 2017

Swagger UI 2.x had a defaultModelRendering parameter, this resurrects that parameter and also adds a defaultModelExpandDepth parameter so you can configure the default expandDepth of models.

@shockey shockey requested review from webron and shockey August 31, 2017 03:40
@webron
Copy link
Contributor

webron commented Sep 11, 2017

@shockey - the functionality is fine

@shockey shockey removed the request for review from webron September 25, 2017 22:08
Copy link
Contributor

@shockey shockey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this, @gilbode! The functionality appears to work well.

The only problem I saw here is that setting defaultModelExpandDepth via query string does not work, since everything from the query string parse is a string value. We'll say that's out of scope for this PR, and address it as part of #3302. It's my view that the config parser should do the type conversions, config consumers shouldn't know/care about the particulars of URL query strings.

@shockey
Copy link
Contributor

shockey commented Sep 29, 2017

CC: #3302

@shockey shockey merged commit cecc3b3 into swagger-api:master Sep 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants