Skip to content

Add support to config swagger-ui using app.config #13

@tjysdsg

Description

@tjysdsg

I came across a problem that probably can only be solved by asking you maintainers of this package.

My need: Show model tab by default, instead of example value, in the parameters section in API method documentation.

image

The method that I tried: According docs for Swagger-UI configuration, I can set DEFAULT_MODEL_RENDERING to "model" to make this happen.

Why didn't work: Since flask-restplus doesn't seems to do anything when I set app.config.SWAGGER_UI_DEFAULT_MODEL_RENDERING to "model", I suppose allowing users to set custom configurations of Swagger-UI could be a feature added to flask-restx.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions