Skip to content

Pass configuration to SwaggerUIBundle #17

@Auo

Description

@Auo

It would be nice if it was possible to configure Swagger-UI via a parameter,

For example if you want control which sections are expanded.

SwaggerUIBundle({
  ...
  "docExpansion":"none"
});

I'm not sure how to do this nicely, but maybe a configuration in mkdocs.yaml and in the extra section, or maybe it's easier to supply it every time you use the plugin?

!!swagger FILENAME "docExpansion":"none","someOtherSetting":"value"!!

An easier option would be to use configUrl, I believe that SwaggerUIBundle will load from that URL.

!!swagger FILENAME SWAGGER_CONFIG!!

!!swagger URL SWAGGER_CONFIG_URL!!

Thank you for creating the plugin!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions