Skip to content

Upgrade swagger-ui to the latest version and change default model rendering#5

Merged
easonlin404 merged 2 commits intoswaggo:masterfrom
cippaciong:feat-upgrade-swagger
Dec 12, 2018
Merged

Upgrade swagger-ui to the latest version and change default model rendering#5
easonlin404 merged 2 commits intoswaggo:masterfrom
cippaciong:feat-upgrade-swagger

Conversation

@cippaciong
Copy link
Collaborator

With this PR we upgrade swagger-ui to version 3.20.1 and we enable two swagger-ui options (doc):

  • defaultModelRendering="model"
  • defaultModelsExpandDepth=1

It would be nice to have swagger-ui options configurable by the users in the future

@cippaciong cippaciong added the enhancement New feature or request label Dec 11, 2018
Setting defaultModelRendering="model", models will be shown by default using the
interactive explorer in swagger-ui rather than raw JSON.
defaultModelsExpandDepth=1 limits the initial model expansion to the
first level if there are nested models.

It would be nice to have these options configurable by the users in the
future
Copy link
Member

@easonlin404 easonlin404 left a comment

Choose a reason for hiding this comment

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

LGTM

@easonlin404
Copy link
Member

It's a good idea to have swagger-ui options configurable by the users in the future.

@easonlin404 easonlin404 merged commit 01d66cd into swaggo:master Dec 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants