-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Python] Add enum support when building default values for model prop…
…erties when using `$ref` (#18796) * Add enum support when building default values for model properties * Update enum handling for Python for enum references * Remove unused method * Update mustaches for FastAPI, Pydantic, and Python for default values * Address PR feedback and rebase main * Remove old 2_0 samples
- Loading branch information
Showing
27 changed files
with
1,441 additions
and
841 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
generatorName: python-flask | ||
outputDir: samples/server/petstore/python-flask | ||
inputSpec: modules/openapi-generator/src/test/resources/2_0/python-flask/petstore.yaml | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/python-flask/petstore.yaml | ||
templateDir: modules/openapi-generator/src/main/resources/python-flask |
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
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
Oops, something went wrong.