forked from manchenkoff/openapi3-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Fixes manchenkoff#40 -- allow non_strict enum usage during parsing
Certain schema properties (content types, type formats...) are not limited to a known set of values in the OpenAPI 3.x specification. Users can opt-in for non-strict enum evaluation, making it possible to parse specifications with custom content types and/or formats used in schema definitions.
- Loading branch information
1 parent
7ded792
commit 994f9e6
Showing
5 changed files
with
66 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from dataclasses import dataclass | ||
|
||
|
||
@dataclass | ||
class LooseContentType: | ||
value: str | ||
|
||
|
||
@dataclass | ||
class LooseIntegerFormat: | ||
value: str | ||
|
||
|
||
@dataclass | ||
class LooseNumberFormat: | ||
value: str | ||
|
||
|
||
@dataclass | ||
class LooseStringFormat: | ||
value: str |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters