mike-oakley / openapi-pydantic

Pydantic OpenAPI schema implementation
Other
48 stars 7 forks source link

python <= 3.7 compatibility, support for collision pydantic schema names #30

Closed musalser closed 1 month ago

musalser commented 4 months ago

The only difference comparing to upstream library (openapi-schema-pydantic), that increases requirements from Python >=3.6.1 to Python >=3.8 i see is imports TypedDict and Literal from typing

Fixed it with sys.version_info checking before imports and importing it from typing_extensions All tests ran successfully!

musalser commented 4 months ago

Added support for collision pydantic schema names. For OpenAPI v3.0.3 and Pydantic V1 only yet.

mike-oakley commented 1 month ago

Hi @musalser - thanks for your support! As Python 3.7 is EOL i'm going to decline this one - to keep the code simpler and maintenance easier we're only looking to target the currently supported versions, apologies for any inconvenience!