-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
[python-experimental] Support schema property which has $ref to 'oneOf' schema and child schema is null type #6275
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
spacether
merged 91 commits into
OpenAPITools:master
from
CiscoM31:python-oneof-schema-reference-null-type
May 17, 2020
Merged
Changes from all commits
Commits
Show all changes
91 commits
Select commit
Hold shift + click to select a range
489985d
Handle null type
sebastien-rosset c16089e
Handle null type
sebastien-rosset 26865b3
Handle null type. Add 'null' type in the OAS document for testing pur…
sebastien-rosset 48c310e
Handle null type. Add 'null' type in the OAS document for testing pur…
sebastien-rosset fddb63b
Handle null type. Add 'null' type in the OAS document for testing pur…
sebastien-rosset cf4e9f8
Handle null type. Add 'null' type in the OAS document for testing pur…
sebastien-rosset 3b59b47
Handle null type. Add 'null' type in the OAS document for testing pur…
sebastien-rosset b362f92
Handle null type. Add 'null' type in the OAS document for testing pur…
sebastien-rosset ae93643
improve documentation
sebastien-rosset f5acfba
Handle 'null' type
sebastien-rosset 6ba1523
Handle 'null' type. Add unit tests
sebastien-rosset de13169
Merge branch 'master' of github.com:CiscoM31/openapi-generator into p…
sebastien-rosset 2a6a87a
Add NullType for go
sebastien-rosset 86bc4c0
Add NullType for go
sebastien-rosset 6b9c0ce
fix modeling of AnyType for go-experimental
sebastien-rosset b0d221e
Merge branch 'master' of github.com:CiscoM31/openapi-generator into p…
sebastien-rosset a302894
execute scripts in bin directory
sebastien-rosset e449c82
resolve merge conflicts
sebastien-rosset 043f247
Merge branch 'master' of github.com:CiscoM31/openapi-generator into p…
sebastien-rosset 1e14c94
Add review comments
sebastien-rosset 747803e
Add 'null' type in oneOf
sebastien-rosset aa06a89
Improve OAS YAML file for golang openapi3 samples
sebastien-rosset 543d406
'Any type' includes the null value, so 'isNullable' should be set to …
sebastien-rosset 81093c7
'Any type' includes the null value, so 'isNullable' should be set to …
sebastien-rosset 9a54ea1
Handle AnyType and NullType
sebastien-rosset dc7a7e0
handle anytype for go-experimental
sebastien-rosset ddc810c
Merge branch 'master' of github.com:CiscoM31/openapi-generator into p…
sebastien-rosset 03ec914
Log warning instead of error
sebastien-rosset bdf3653
anyOf/oneOf
sebastien-rosset 9dbae45
Change x-golang-is-container extension to x-golang-has-wrapper
sebastien-rosset e1417ec
Add code comments
sebastien-rosset 480ecbe
Handle Object and any type
sebastien-rosset a58f121
Handle Object and any type
sebastien-rosset 01ff36e
Handle object and any type
sebastien-rosset ec97db3
add code comments
sebastien-rosset 431356c
handle additional properties
sebastien-rosset 93752ff
handle additional properties
sebastien-rosset 261dbcd
handle additional properties
sebastien-rosset aa6b6df
handle anytype and objecttype for go-exerimental
sebastien-rosset 90c0c9e
Move golang changes to a separate branch
sebastien-rosset f56c812
Move golang changes to a separate branch
sebastien-rosset b159356
Better names for the OAS document test properties
sebastien-rosset ef5149e
Move golang changes to a separate branch
sebastien-rosset 84162be
Run samples scripts
sebastien-rosset ee786cb
Run samples scripts
sebastien-rosset 058694b
Merge branch 'master' of github.com:CiscoM31/openapi-generator into p…
sebastien-rosset 82cb0e9
fix unit test issues
sebastien-rosset 2c5c1cf
Handle none type
sebastien-rosset 0694f83
Merge branch 'master' of github.com:CiscoM31/openapi-generator into p…
sebastien-rosset b6afbc6
Merge branch 'master' of github.com:CiscoM31/openapi-generator into p…
sebastien-rosset f275dc9
Fix index out of range exception
sebastien-rosset 93cc8c8
fix formatting issues
sebastien-rosset 6939648
fix formatting issues
sebastien-rosset 8bdca05
fix formatting issues. Finally figured out how to check formatting in…
sebastien-rosset 4c01344
fix formatting issues
sebastien-rosset 537c28b
resolve merge conflicts
sebastien-rosset 71d550c
resolve merge conflicts
sebastien-rosset 11c52e4
resolve merge conflicts
sebastien-rosset eadca7a
Add reference to oneOf schema
sebastien-rosset 603b6fb
Add model showing unit test failure with ref to oneOf schema
sebastien-rosset e16c24e
Merge branch 'master' of github.com:CiscoM31/openapi-generator into p…
sebastien-rosset 7b2ed9e
Updates get_discriminator_class to return visited_composed_classes
spacether 9811b8c
Fixes broken test, adds is_valid_type
spacether 8f1c202
Merge branch 'master' of github.com:CiscoM31/openapi-generator into p…
sebastien-rosset 5e48c72
run samples scripts
sebastien-rosset 245c850
Merge branch 'master' of github.com:CiscoM31/openapi-generator into p…
sebastien-rosset 942edf0
move unit test to test_drawing.py file
sebastien-rosset f5050b0
Add more unit tests
sebastien-rosset 251086b
invoke git pull from spacether fork
sebastien-rosset 2feed29
invoke git pull from spacether fork
sebastien-rosset 3a05ff6
invoke git pull from spacether fork
sebastien-rosset 40ecbfb
Improve unit tests
sebastien-rosset d5bd3d3
Merge branch 'python-null-type' of github.com:CiscoM31/openapi-genera…
sebastien-rosset 42f6781
Add is_nullable_type util function
sebastien-rosset c4bc09d
Add unit test for null value
sebastien-rosset 094e00d
Add 'ShapeOrNull' type to handle the oneOf/anyOf scenario when the ch…
sebastien-rosset a0aa380
Support schema property which has to 'oneOf' schema and child schema…
sebastien-rosset 7274ed5
Support schema property which has to 'oneOf' schema and child schema…
sebastien-rosset bb44600
Support schema property which has to 'oneOf' schema and child schema…
sebastien-rosset 41e97e6
Mustache template should use invokerPackage tag to generate import
sebastien-rosset 1760f6a
Merge branch 'master' of https://github.com/OpenAPITools/openapi-gene…
sebastien-rosset b26548e
handle null type in oneOf/anyOf
sebastien-rosset 87ed97e
handle null type in oneOf/anyOf
sebastien-rosset 7c4cd94
Add more unit test for nullable shape
sebastien-rosset 3ae466e
Merge branch 'master' of https://github.com/OpenAPITools/openapi-gene…
sebastien-rosset 6cfe426
resolve merge conflicts
sebastien-rosset 274ab6c
resolve merge conflicts
sebastien-rosset 6c55fd9
resolve merge conflicts
sebastien-rosset b628667
Merge branch 'master' of https://github.com/OpenAPITools/openapi-gene…
sebastien-rosset fddadc3
Merge branch 'master' of github.com:CiscoM31/openapi-generator into p…
sebastien-rosset 8ec12af
handle null type in oneOf/anyOf
sebastien-rosset 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
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
13 changes: 13 additions & 0 deletions
13
samples/openapi3/client/petstore/python-experimental/docs/NullableShape.md
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 @@ | ||
| # nullable_shape.NullableShape | ||
|
|
||
| The value may be a shape or the 'null' value. The 'nullable' attribute was introduced in OAS schema >= 3.0 and has been deprecated in OAS schema >= 3.1. | ||
| ## Properties | ||
| Name | Type | Description | Notes | ||
| ------------ | ------------- | ------------- | ------------- | ||
| **shape_type** | **str** | | | ||
| **quadrilateral_type** | **str** | | defaults to nulltype.Null | ||
| **triangle_type** | **str** | | defaults to nulltype.Null | ||
|
|
||
| [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
|
||
|
|
13 changes: 13 additions & 0 deletions
13
samples/openapi3/client/petstore/python-experimental/docs/ShapeOrNull.md
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 @@ | ||
| # shape_or_null.ShapeOrNull | ||
|
|
||
| The value may be a shape or the 'null' value. This is introduced in OAS schema >= 3.1. | ||
| ## Properties | ||
| Name | Type | Description | Notes | ||
| ------------ | ------------- | ------------- | ------------- | ||
| **shape_type** | **str** | | | ||
| **quadrilateral_type** | **str** | | defaults to nulltype.Null | ||
| **triangle_type** | **str** | | defaults to nulltype.Null | ||
|
|
||
| [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
|
||
|
|
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.