PWZER / swagger-ui-py

Swagger UI for Python web framework, such Tornado, Flask and Sanic. https://pwzer.github.io/swagger-ui-py/
https://pypi.org/project/swagger-ui-py
Apache License 2.0
68 stars 31 forks source link

Feature/customizable UI config #27

Closed john-pope closed 2 years ago

john-pope commented 3 years ago

There are many options in the swagger ui configuration that can't currently be set. This update allows setting most parameters that are listed in the SwaggerUI configuration documentation (simple values only, no functions or variable values)

This would allow for handling scenarios reported in issues #9 and #18 like this:

swagger_doc_config = { "validationUrl": None, "displayRequestDuration": True }

api_doc(app, config_path='/config/test.yaml', title='API doc', doc_config=swagger_doc_config)
PWZER commented 2 years ago

Supported,Thank you!