-
-
Notifications
You must be signed in to change notification settings - Fork 229
Support inline object schemas #236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 31 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
de20cff
Refactor model building, add e2e section for inline objects.
dbanty 3d4d7fb
Merge branch 'main' into support_inline_object_schemas
dbanty 890ef7e
Merge branch 'main' into support_inline_object_schemas
dbanty 1150b37
[WIP] Major refactor of models/enums/schemas.
dbanty be09dad
Added support for UNSET values and better differentiation between req…
emann 921f235
Fixed typing issues in golden record and added some test endpoints
emann ae9e2b3
Brought test coverage back to what it was before
emann 957ce46
Updated Changelog
emann fb4cb6f
Apply suggestions from code review
emann 8f7d51b
Removed to_dict params and cleaned up type strings
emann 961f6df
Fixed typing issues (again)
emann 8b9b3d8
Merge branch 'main' into support_inline_object_schemas
dbanty eb1c52e
Merge branch 'feature/add-unset-value-and-model-to-dict-params' into …
dbanty 0ab3ddf
Apply suggestions from code review
emann 9e9ebbe
Cleaned up union type strings when property is not required + require…
emann 6bc9542
Merge branch 'main' of https://github.com/triaxtec/openapi-python-cli…
emann a669ba6
Regenerated the golden record
emann b6ea790
Manually fix a bunch of tests after merging main and feature/unset in…
dbanty 0fb3c48
Merge branch 'main' into support_inline_object_schemas
dbanty 745a7a3
Merge branch 'feature/add-unset-value-and-model-to-dict-params' into …
dbanty 5addb4a
Fix naming and required/not required for shared enums/models
dbanty 66fa9a8
Merge branch 'main' into support_inline_object_schemas
dbanty dc6971d
Switch properties to use attr.s instead of dataclass
dbanty 4cc04b3
Fix forward references and properly allow Unset for ModelPropertys
dbanty 9bc20ed
Fix required properties in generated models
dbanty c8ae42d
Fix custom template E2E test
dbanty 4743ae8
Refactored response handling to use the same schema generation as inp…
dbanty f3672a1
Fix typing in custom template e2e test
dbanty 5575eea
Remove slots from attr classes to support Python 3.6
dbanty fbdbd21
Added improved naming scheme using parent elements
dbanty f17f9d0
Unit test coverage for new property/response code
dbanty 45da271
Fix duplicate entry in CHANGELOG
dbanty c01a89f
Add note in CHANGELOG about `File` response
dbanty File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
|
@@ -26,4 +26,5 @@ test-reports/ | |
htmlcov/ | ||
|
||
# Generated end to end test data | ||
my-test-api-client | ||
my-test-api-client/ | ||
custom-e2e/ |
This file contains hidden or 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 hidden or 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,13 @@ | ||
project_name_override: "custom-e2e" | ||
package_name_override: "custom_e2e" | ||
class_overrides: | ||
_ABCResponse: | ||
class_name: ABCResponse | ||
module_name: abc_response | ||
AnEnumValueItem: | ||
class_name: AnEnumValue | ||
module_name: an_enum_value | ||
NestedListOfEnumsItemItem: | ||
class_name: AnEnumValue | ||
module_name: an_enum_value | ||
field_prefix: attr_ |
This file contains hidden or 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.