-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes Python schema class order, Issue 276 (#277)
* Adds new components, adds possible java fix * Fixes schema writing order * Fixes python test * Samples regen
- Loading branch information
Showing
50 changed files
with
753 additions
and
206 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
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
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
40 changes: 40 additions & 0 deletions
40
samples/client/petstore/python/docs/components/schema/my_object_dto.md
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,40 @@ | ||
# MyObjectDto | ||
petstore_api.components.schema.my_object_dto | ||
``` | ||
type: schemas.Schema | ||
``` | ||
|
||
## validate method | ||
Input Type | Return Type | Notes | ||
------------ | ------------- | ------------- | ||
[MyObjectDtoDictInput](#myobjectdtodictinput), [MyObjectDtoDict](#myobjectdtodict) | [MyObjectDtoDict](#myobjectdtodict) | | ||
|
||
## MyObjectDtoDictInput | ||
``` | ||
type: typing.TypedDict | ||
``` | ||
Key | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**id** | str, uuid.UUID | | [optional] value must be a uuid | ||
|
||
## MyObjectDtoDict | ||
``` | ||
base class: schemas.immutabledict[str, str] | ||
``` | ||
### __new__ method | ||
Keyword Argument | Type | Description | Notes | ||
---------------- | ---- | ----------- | ----- | ||
**id** | str, uuid.UUID, schemas.Unset | | [optional] value must be a uuid | ||
|
||
### properties | ||
Property | Type | Description | Notes | ||
-------- | ---- | ----------- | ----- | ||
**id** | str, schemas.Unset | | [optional] value must be a uuid | ||
|
||
### methods | ||
Method | Input Type | Return Type | Notes | ||
------ | ---------- | ----------- | ------ | ||
from_dict_ | [MyObjectDtoDictInput](#myobjectdtodictinput), [MyObjectDtoDict](#myobjectdtodict) | [MyObjectDtoDict](#myobjectdtodict) | a constructor | ||
|
||
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) |
96 changes: 96 additions & 0 deletions
96
...client/petstore/python/docs/components/schema/paginated_result_my_object_dto.md
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,96 @@ | ||
# PaginatedResultMyObjectDto | ||
petstore_api.components.schema.paginated_result_my_object_dto | ||
``` | ||
type: schemas.Schema | ||
``` | ||
|
||
## validate method | ||
Input Type | Return Type | Notes | ||
------------ | ------------- | ------------- | ||
[PaginatedResultMyObjectDtoDictInput](#paginatedresultmyobjectdtodictinput), [PaginatedResultMyObjectDtoDict](#paginatedresultmyobjectdtodict) | [PaginatedResultMyObjectDtoDict](#paginatedresultmyobjectdtodict) | | ||
|
||
## PaginatedResultMyObjectDtoDictInput | ||
``` | ||
type: typing.TypedDict | ||
``` | ||
Key | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**count** | int | | | ||
**results** | [ResultsTupleInput](#resultstupleinput), [ResultsTuple](#resultstuple) | | | ||
|
||
## PaginatedResultMyObjectDtoDict | ||
``` | ||
base class: schemas.immutabledict[str, typing.Union[ | ||
typing.Tuple[schemas.OUTPUT_BASE_TYPES], | ||
int, | ||
]] | ||
``` | ||
### __new__ method | ||
Keyword Argument | Type | Description | Notes | ||
---------------- | ---- | ----------- | ----- | ||
**count** | int | | | ||
**results** | [ResultsTupleInput](#resultstupleinput), [ResultsTuple](#resultstuple) | | | ||
|
||
### properties | ||
Property | Type | Description | Notes | ||
-------- | ---- | ----------- | ----- | ||
**count** | int | | | ||
**results** | [ResultsTuple](#resultstuple) | | | ||
|
||
### methods | ||
Method | Input Type | Return Type | Notes | ||
------ | ---------- | ----------- | ------ | ||
from_dict_ | [PaginatedResultMyObjectDtoDictInput](#paginatedresultmyobjectdtodictinput), [PaginatedResultMyObjectDtoDict](#paginatedresultmyobjectdtodict) | [PaginatedResultMyObjectDtoDict](#paginatedresultmyobjectdtodict) | a constructor | ||
|
||
# Results | ||
``` | ||
type: schemas.Schema | ||
``` | ||
|
||
## validate method | ||
Input Type | Return Type | Notes | ||
------------ | ------------- | ------------- | ||
[ResultsTupleInput](#resultstupleinput), [ResultsTuple](#resultstuple) | [ResultsTuple](#resultstuple) | | ||
|
||
## ResultsTupleInput | ||
``` | ||
type: typing.Union[ | ||
typing.List[ | ||
typing.Union[ | ||
my_object_dto.MyObjectDtoDictInput, | ||
my_object_dto.MyObjectDtoDict, | ||
], | ||
], | ||
typing.Tuple[ | ||
typing.Union[ | ||
my_object_dto.MyObjectDtoDictInput, | ||
my_object_dto.MyObjectDtoDict, | ||
], | ||
... | ||
] | ||
] | ||
``` | ||
List/Tuple Item Type | Description | Notes | ||
-------------------- | ------------- | ------------- | ||
[my_object_dto.MyObjectDtoDictInput](../../components/schema/my_object_dto.md#myobjectdtodictinput), [my_object_dto.MyObjectDtoDict](../../components/schema/my_object_dto.md#myobjectdtodict) | | | ||
|
||
## ResultsTuple | ||
``` | ||
base class: typing.Tuple[ | ||
my_object_dto.MyObjectDtoDict, | ||
... | ||
] | ||
``` | ||
### __new__ method | ||
Argument | Type | ||
-------- | ------ | ||
arg | [ResultsTupleInput](#resultstupleinput), [ResultsTuple](#resultstuple) | ||
configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None | ||
|
||
### methods | ||
Method | Input Type | Return Type | Notes | ||
------ | ---------- | ----------- | ------ | ||
__getitem__ | int | [my_object_dto.MyObjectDtoDict](../../components/schema/my_object_dto.md#myobjectdtodict) | This method is used under the hood when instance[0] is called | ||
|
||
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) |
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.