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

Fix get_config to be compatible with openapi spec #39

Closed b3n4kh closed 1 year ago

b3n4kh commented 1 year ago

The regex replacement prevents using the servers directive as specified under: https://learn.openapis.org/specification/servers.html

Requiring from packaging.version import Version prevented me from cleanly building this package, and is a non-standard check since setuptools offers python_requires. I used minimum 3.8 as set by tox.ini.