Skip to content

Commit

Permalink
Update clients
Browse files Browse the repository at this point in the history
  • Loading branch information
artsmolin committed Dec 6, 2023
1 parent 9782c2a commit 2ef2258
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 26 deletions.
14 changes: 1 addition & 13 deletions examples/petstore/client_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,17 +281,6 @@ class CreateuserswithlistinputRequestBody(BaseModel):
)


class GetinventoryResponse200(BaseModel):
"""
None
"""

model_config = ConfigDict(
populate_by_name=True, # Addressing by field name, even if there is an alias.
)


class FindpetsbytagsResponse200(BaseModel):
"""
None
Expand Down Expand Up @@ -778,7 +767,7 @@ async def getInventory(
auth: BasicAuth | None = None,
content: str | bytes | None = None,
meta: PythogenMetaBox | None = None,
) -> GetinventoryResponse200 | None:
) -> dict[Any, Any] | None:
"""
GET /store/inventory
Operation ID: getInventory
Expand Down Expand Up @@ -2316,7 +2305,6 @@ def _parse_any_of(self, item: dict[str, Any], schema_classes: list[Any]) -> Any:


CreateuserswithlistinputRequestBody.model_rebuild()
GetinventoryResponse200.model_rebuild()
FindpetsbytagsResponse200.model_rebuild()
FindpetsbystatusResponse200.model_rebuild()
AddpetortagRequestBody.model_rebuild()
Expand Down
14 changes: 1 addition & 13 deletions examples/petstore/client_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,17 +281,6 @@ class CreateuserswithlistinputRequestBody(BaseModel):
)


class GetinventoryResponse200(BaseModel):
"""
None
"""

model_config = ConfigDict(
populate_by_name=True, # Addressing by field name, even if there is an alias.
)


class FindpetsbytagsResponse200(BaseModel):
"""
None
Expand Down Expand Up @@ -772,7 +761,7 @@ def getInventory(
auth: BasicAuth | None = None,
content: str | bytes | None = None,
meta: PythogenMetaBox | None = None,
) -> GetinventoryResponse200 | None:
) -> dict[Any, Any] | None:
"""
GET /store/inventory
Operation ID: getInventory
Expand Down Expand Up @@ -2292,7 +2281,6 @@ def _parse_any_of(self, item: dict[str, Any], schema_classes: list[Any]) -> Any:


CreateuserswithlistinputRequestBody.model_rebuild()
GetinventoryResponse200.model_rebuild()
FindpetsbytagsResponse200.model_rebuild()
FindpetsbystatusResponse200.model_rebuild()
AddpetortagRequestBody.model_rebuild()
Expand Down
1 change: 1 addition & 0 deletions tests/clients/async_client_with_headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ class GetObjectNoRefSchemaResponse200(BaseModel):
integer_data: int | None = None
array_data: list[str] | None = None
boolean_data: bool | None = None
array_of_dicts_data: list[dict[Any, Any]] | None = None


class IntEnumOrNullObj(RootModel):
Expand Down
1 change: 1 addition & 0 deletions tests/clients/async_client_with_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ class GetObjectNoRefSchemaResponse200(BaseModel):
integer_data: int | None = None
array_data: list[str] | None = None
boolean_data: bool | None = None
array_of_dicts_data: list[dict[Any, Any]] | None = None


class IntEnumOrNullObj(RootModel):
Expand Down
1 change: 1 addition & 0 deletions tests/clients/sync_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ class GetObjectNoRefSchemaResponse200(BaseModel):
integer_data: int | None = None
array_data: list[str] | None = None
boolean_data: bool | None = None
array_of_dicts_data: list[dict[Any, Any]] | None = None


class IntEnumOrNullObj(RootModel):
Expand Down
1 change: 1 addition & 0 deletions tests/clients/sync_client_with_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ class GetObjectNoRefSchemaResponse200(BaseModel):
integer_data: int | None = None
array_data: list[str] | None = None
boolean_data: bool | None = None
array_of_dicts_data: list[dict[Any, Any]] | None = None


class IntEnumOrNullObj(RootModel):
Expand Down

0 comments on commit 2ef2258

Please sign in to comment.