manchenkoff / openapi3-parser

OpenAPI 3 parser to use a specification inside of the code in your projects
https://pypi.org/project/openapi3-parser/
MIT License
61 stars 33 forks source link

Implement skipping strict enums during parsing #44

Closed sergei-maertens closed 2 years ago

sergei-maertens commented 2 years ago

Fixes #40

Added the strict_enum flag to the parse function, which is forwarded to the underlying builders. The default value is True to keep the current default behaviour.

The Loose<EnumType> classes mimick the Enum API through the value attribute, so downstream users don't need to check the type of Schema.format or Content.type.

sergei-maertens commented 2 years ago

I'll apply the feedback later this week - probably it will be in the weekend. Thanks for the review!

sergei-maertens commented 2 years ago

Rebased on master and PR feedback is processed!

manchenkoff commented 2 years ago

@sergei-maertens published in v1.1.6 release, thanks 👍