mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-19 03:57:08 +00:00
* [python-nextgen] fix #16010 circular refs lead to no imports Signed-off-by: ふぁ <yuki@yuki0311.com> * [python-nextgen] update samples Signed-off-by: ふぁ <yuki@yuki0311.com> * [python-nextgen] remove unnecessary Postponed annotations Signed-off-by: ふぁ <yuki@yuki0311.com> * [python-nextgen] update samples Signed-off-by: ふぁ <yuki@yuki0311.com> * [python-nextgen] remove unnecessary Postponed annotations Signed-off-by: ふぁ <yuki@yuki0311.com> * [python-nextgen] update samples Signed-off-by: ふぁ <yuki@yuki0311.com> * [python-nextgen] update samples Signed-off-by: ふぁ <yuki@yuki0311.com> --------- Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
@@ -47,6 +47,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -43,6 +43,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
|
||||
@@ -60,6 +60,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -122,6 +123,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -185,6 +187,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
@@ -313,6 +316,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -379,6 +383,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -444,6 +449,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -508,6 +514,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -572,6 +579,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -637,6 +645,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -699,6 +708,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -762,6 +772,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -824,6 +835,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -891,6 +903,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -952,6 +965,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -1041,6 +1055,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -1134,6 +1149,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -1202,6 +1218,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -1266,6 +1283,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -1335,6 +1353,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -58,6 +58,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -123,6 +123,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -195,6 +196,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -333,6 +335,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -470,6 +473,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -548,6 +552,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -684,6 +689,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -759,6 +765,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -837,6 +844,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -914,6 +922,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -47,6 +47,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -123,6 +124,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
@@ -186,6 +188,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -254,6 +257,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -52,6 +52,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -116,6 +117,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -180,6 +182,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -243,6 +246,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -310,6 +314,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -378,6 +383,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
@@ -442,6 +448,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
@@ -504,6 +511,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -82,3 +82,4 @@ class AdditionalPropertiesClass(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -83,3 +83,4 @@ class AllOfWithSingleRef(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -94,3 +94,4 @@ class Animal(BaseModel):
|
||||
json.dumps(obj) + ". Discriminator property name: " + cls.__discriminator_property_name +
|
||||
", mapping: " + json.dumps(cls.__discriminator_value_class_map))
|
||||
|
||||
|
||||
|
||||
@@ -152,3 +152,4 @@ class AnyOfColor(BaseModel):
|
||||
"""Returns the string representation of the actual instance"""
|
||||
return pprint.pformat(self.dict())
|
||||
|
||||
|
||||
|
||||
@@ -131,3 +131,4 @@ class AnyOfPig(BaseModel):
|
||||
"""Returns the string representation of the actual instance"""
|
||||
return pprint.pformat(self.dict())
|
||||
|
||||
|
||||
|
||||
@@ -84,3 +84,4 @@ class ApiResponse(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -93,3 +93,4 @@ class ArrayOfArrayOfModel(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -80,3 +80,4 @@ class ArrayOfArrayOfNumberOnly(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -80,3 +80,4 @@ class ArrayOfNumberOnly(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -97,3 +97,4 @@ class ArrayTest(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -82,3 +82,4 @@ class BasquePig(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -90,3 +90,4 @@ class Capitalization(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -83,3 +83,4 @@ class Cat(Animal):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -82,3 +82,4 @@ class Category(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -85,3 +85,6 @@ class CircularReferenceModel(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
from petstore_api.models.first_ref import FirstRef
|
||||
CircularReferenceModel.update_forward_refs()
|
||||
|
||||
|
||||
@@ -80,3 +80,4 @@ class ClassModel(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -80,3 +80,4 @@ class Client(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -167,3 +167,4 @@ class Color(BaseModel):
|
||||
"""Returns the string representation of the actual instance"""
|
||||
return pprint.pformat(self.dict())
|
||||
|
||||
|
||||
|
||||
@@ -82,3 +82,4 @@ class DanishPig(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -80,3 +80,4 @@ class DeprecatedObject(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -83,3 +83,4 @@ class Dog(Animal):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -85,3 +85,6 @@ class DummyModel(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
from petstore_api.models.self_reference_model import SelfReferenceModel
|
||||
DummyModel.update_forward_refs()
|
||||
|
||||
|
||||
@@ -103,3 +103,4 @@ class EnumArrays(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -152,3 +152,4 @@ class EnumTest(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -80,3 +80,4 @@ class File(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -93,3 +93,4 @@ class FileSchemaTestClass(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -85,3 +85,6 @@ class FirstRef(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
from petstore_api.models.second_ref import SecondRef
|
||||
FirstRef.update_forward_refs()
|
||||
|
||||
|
||||
@@ -80,3 +80,4 @@ class Foo(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -84,3 +84,4 @@ class FooGetDefaultResponse(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -152,3 +152,4 @@ class FormatTest(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -84,3 +84,4 @@ class HasOnlyReadOnly(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -85,3 +85,4 @@ class HealthCheckResult(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -80,3 +80,4 @@ class InnerDictWithProperty(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -144,3 +144,4 @@ class IntOrString(BaseModel):
|
||||
"""Returns the string representation of the actual instance"""
|
||||
return pprint.pformat(self.dict())
|
||||
|
||||
|
||||
|
||||
@@ -80,3 +80,4 @@ class List(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -97,3 +97,4 @@ class MapOfArrayOfModel(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -96,3 +96,4 @@ class MapTest(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -97,3 +97,4 @@ class MixedPropertiesAndAdditionalPropertiesClass(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -82,3 +82,4 @@ class Model200Response(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -80,3 +80,4 @@ class ModelReturn(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -88,3 +88,4 @@ class Name(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -147,3 +147,4 @@ class NullableClass(BaseModel):
|
||||
})
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -97,3 +97,4 @@ class NullableProperty(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -80,3 +80,4 @@ class NumberOnly(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -80,3 +80,4 @@ class ObjectToTestAdditionalProperties(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -90,3 +90,4 @@ class ObjectWithDeprecatedFields(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -138,3 +138,4 @@ class OneOfEnumString(BaseModel):
|
||||
"""Returns the string representation of the actual instance"""
|
||||
return pprint.pformat(self.dict())
|
||||
|
||||
|
||||
|
||||
@@ -100,3 +100,4 @@ class Order(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -84,3 +84,4 @@ class OuterComposite(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -89,3 +89,4 @@ class OuterObjectWithEnumProperty(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -93,3 +93,4 @@ class Parent(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -93,3 +93,4 @@ class ParentWithOptionalDict(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -112,3 +112,4 @@ class Pet(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -156,3 +156,4 @@ class Pig(BaseModel):
|
||||
"""Returns the string representation of the actual instance"""
|
||||
return pprint.pformat(self.dict())
|
||||
|
||||
|
||||
|
||||
@@ -84,3 +84,4 @@ class PropertyNameCollision(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -83,3 +83,4 @@ class ReadOnlyFirst(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -85,3 +85,6 @@ class SecondRef(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
from petstore_api.models.circular_reference_model import CircularReferenceModel
|
||||
SecondRef.update_forward_refs()
|
||||
|
||||
|
||||
@@ -85,3 +85,6 @@ class SelfReferenceModel(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
from petstore_api.models.dummy_model import DummyModel
|
||||
SelfReferenceModel.update_forward_refs()
|
||||
|
||||
|
||||
@@ -80,3 +80,4 @@ class SpecialModelName(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -98,3 +98,4 @@ class SpecialName(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -82,3 +82,4 @@ class Tag(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -94,3 +94,4 @@ class User(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
@@ -92,3 +92,4 @@ class WithNestedOneOf(BaseModel):
|
||||
|
||||
return _obj
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user