forked from loafle/openapi-generator-original
Adds ability to turn inline model resolver on or off and uses it in python-experimental (#12198)
* Adds getUseInlineModelResolver and uses it * Regenerates python-exp samples * Regenerates docs * Samples regenerated * Moves codegenProperty.complexType setting * Fixes python-experimental tests * Reverts vesion file change * Improves type setting code for python-exp * Fixes AnyType type hint * Samples regenerated
This commit is contained in:
parent
20c37b5a96
commit
c456de40c0
@ -27,6 +27,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
||||
|packageVersion|python package version.| |1.0.0|
|
||||
|projectName|python project name in setup.py (e.g. petstore-api).| |null|
|
||||
|recursionLimit|Set the recursion limit. If not set, use the system default value.| |null|
|
||||
|useInlineModelResolver|use the inline model resolver, if true inline complex models will be extracted into components and $refs to them will be used| |false|
|
||||
|useNose|use the nose test framework| |false|
|
||||
|
||||
## IMPORT MAPPING
|
||||
|
@ -319,4 +319,6 @@ public interface CodegenConfig {
|
||||
String generatorLanguageVersion();
|
||||
|
||||
List<VendorExtension> getSupportedVendorExtensions();
|
||||
|
||||
boolean getUseInlineModelResolver();
|
||||
}
|
||||
|
@ -4713,12 +4713,12 @@ public class DefaultCodegen implements CodegenConfig {
|
||||
String parameterDataType = this.getParameterDataType(parameter, parameterSchema);
|
||||
if (parameterDataType != null) {
|
||||
codegenParameter.dataType = parameterDataType;
|
||||
} else {
|
||||
codegenParameter.dataType = codegenProperty.dataType;
|
||||
}
|
||||
if (ModelUtils.isObjectSchema(parameterSchema)) {
|
||||
codegenProperty.complexType = codegenParameter.dataType;
|
||||
}
|
||||
} else {
|
||||
codegenParameter.dataType = codegenProperty.dataType;
|
||||
}
|
||||
if (ModelUtils.isSet(parameterSchema)) {
|
||||
imports.add(codegenProperty.baseType);
|
||||
}
|
||||
@ -7429,4 +7429,7 @@ public class DefaultCodegen implements CodegenConfig {
|
||||
public List<VendorExtension> getSupportedVendorExtensions() {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getUseInlineModelResolver() { return true; }
|
||||
}
|
||||
|
@ -872,8 +872,10 @@ public class DefaultGenerator implements Generator {
|
||||
}
|
||||
|
||||
// resolve inline models
|
||||
if (config.getUseInlineModelResolver()) {
|
||||
InlineModelResolver inlineModelResolver = new InlineModelResolver();
|
||||
inlineModelResolver.flatten(openAPI);
|
||||
}
|
||||
|
||||
configureGeneratorProperties();
|
||||
configureOpenAPIInfo();
|
||||
|
@ -70,11 +70,13 @@ public class PythonExperimentalClientCodegen extends AbstractPythonCodegen {
|
||||
// nose is a python testing framework, we use pytest if USE_NOSE is unset
|
||||
public static final String USE_NOSE = "useNose";
|
||||
public static final String RECURSION_LIMIT = "recursionLimit";
|
||||
public static final String USE_INLINE_MODEL_RESOLVER = "useInlineModelResolver";
|
||||
|
||||
protected String packageUrl;
|
||||
protected String apiDocPath = "docs/";
|
||||
protected String modelDocPath = "docs/";
|
||||
protected boolean useNose = Boolean.FALSE;
|
||||
protected boolean useNose = false;
|
||||
protected boolean useInlineModelResolver = false;
|
||||
|
||||
protected Map<Character, String> regexModifiers;
|
||||
|
||||
@ -192,6 +194,8 @@ public class PythonExperimentalClientCodegen extends AbstractPythonCodegen {
|
||||
cliOptions.add(CliOption.newBoolean(USE_NOSE, "use the nose test framework").
|
||||
defaultValue(Boolean.FALSE.toString()));
|
||||
cliOptions.add(new CliOption(RECURSION_LIMIT, "Set the recursion limit. If not set, use the system default value."));
|
||||
cliOptions.add(CliOption.newBoolean(USE_INLINE_MODEL_RESOLVER, "use the inline model resolver, if true inline complex models will be extracted into components and $refs to them will be used").
|
||||
defaultValue(Boolean.FALSE.toString()));
|
||||
|
||||
supportedLibraries.put("urllib3", "urllib3-based client");
|
||||
CliOption libraryOption = new CliOption(CodegenConstants.LIBRARY, "library template (sub-template) to use: urllib3");
|
||||
@ -321,6 +325,10 @@ public class PythonExperimentalClientCodegen extends AbstractPythonCodegen {
|
||||
setUseNose((String) additionalProperties.get(USE_NOSE));
|
||||
}
|
||||
|
||||
if (additionalProperties.containsKey(USE_INLINE_MODEL_RESOLVER)) {
|
||||
setUseInlineModelResolver((String) additionalProperties.get(USE_INLINE_MODEL_RESOLVER));
|
||||
}
|
||||
|
||||
// check to see if setRecursionLimit is set and whether it's an integer
|
||||
if (additionalProperties.containsKey(RECURSION_LIMIT)) {
|
||||
try {
|
||||
@ -1254,20 +1262,31 @@ public class PythonExperimentalClientCodegen extends AbstractPythonCodegen {
|
||||
return prefix + modelName + fullSuffix;
|
||||
}
|
||||
}
|
||||
if (isAnyTypeSchema(p)) {
|
||||
if (ModelUtils.isAnyType(p)) {
|
||||
return prefix + "bool, date, datetime, dict, float, int, list, str, none_type" + suffix;
|
||||
}
|
||||
// Resolve $ref because ModelUtils.isXYZ methods do not automatically resolve references.
|
||||
if (ModelUtils.isNullable(ModelUtils.getReferencedSchema(this.openAPI, p))) {
|
||||
fullSuffix = ", none_type" + suffix;
|
||||
}
|
||||
if (isFreeFormObject(p) && getAdditionalProperties(p) == null) {
|
||||
return prefix + "bool, date, datetime, dict, float, int, list, str" + fullSuffix;
|
||||
} else if (ModelUtils.isNumberSchema(p)) {
|
||||
if (ModelUtils.isNumberSchema(p)) {
|
||||
return prefix + "int, float" + fullSuffix;
|
||||
} else if ((ModelUtils.isMapSchema(p) || "object".equals(p.getType())) && getAdditionalProperties(p) != null) {
|
||||
} else if (ModelUtils.isTypeObjectSchema(p)) {
|
||||
if (p.getAdditionalProperties() != null && p.getAdditionalProperties().equals(false)) {
|
||||
if (p.getProperties() == null) {
|
||||
// type object with no properties and additionalProperties = false, empty dict only
|
||||
return prefix + "{str: typing.Any}" + fullSuffix;
|
||||
} else {
|
||||
// properties only
|
||||
// TODO add type hints for those properties only as values
|
||||
return prefix + "{str: typing.Any}" + fullSuffix;
|
||||
}
|
||||
} else {
|
||||
// additionalProperties exists
|
||||
Schema inner = getAdditionalProperties(p);
|
||||
return prefix + "{str: " + getTypeString(inner, "(", ")", referencedModelNames) + "}" + fullSuffix;
|
||||
// TODO add code here to add property values too if they exist
|
||||
}
|
||||
} else if (ModelUtils.isArraySchema(p)) {
|
||||
ArraySchema ap = (ArraySchema) p;
|
||||
Schema inner = ap.getItems();
|
||||
@ -1284,8 +1303,7 @@ public class PythonExperimentalClientCodegen extends AbstractPythonCodegen {
|
||||
} else {
|
||||
return prefix + getTypeString(inner, "[", "]", referencedModelNames) + fullSuffix;
|
||||
}
|
||||
}
|
||||
if (ModelUtils.isFileSchema(p)) {
|
||||
} else if (ModelUtils.isFileSchema(p)) {
|
||||
return prefix + "file_type" + fullSuffix;
|
||||
}
|
||||
String baseType = getSchemaType(p);
|
||||
@ -1302,7 +1320,7 @@ public class PythonExperimentalClientCodegen extends AbstractPythonCodegen {
|
||||
public String getTypeDeclaration(Schema p) {
|
||||
// this is used to set dataType, which defines a python tuple of classes
|
||||
// in Python we will wrap this in () to make it a tuple but here we
|
||||
// will omit the parens so the generated documentaion will not include
|
||||
// will omit the parens so the generated documentation will not include
|
||||
// them
|
||||
return getTypeString(p, "", "", null);
|
||||
}
|
||||
@ -2237,6 +2255,13 @@ public class PythonExperimentalClientCodegen extends AbstractPythonCodegen {
|
||||
this.useNose = Boolean.parseBoolean(val);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getUseInlineModelResolver() { return useInlineModelResolver; }
|
||||
|
||||
public void setUseInlineModelResolver(String val) {
|
||||
this.useInlineModelResolver = Boolean.parseBoolean(val);
|
||||
}
|
||||
|
||||
public void setPackageUrl(String packageUrl) {
|
||||
this.packageUrl = packageUrl;
|
||||
}
|
||||
|
@ -7,6 +7,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
{{#with operation}}
|
||||
{{#or headerParams bodyParam produces}}
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
@ -5,6 +5,7 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import functools # noqa: F401
|
||||
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
@classmethod
|
||||
@property
|
||||
@functools.cache
|
||||
def _composed_schemas(cls):
|
||||
# we need this here to make our import statements work
|
||||
# we must store _composed_schemas in here so the code is only run
|
||||
|
@ -26,14 +26,11 @@ docs/Boolean.md
|
||||
docs/BooleanEnum.md
|
||||
docs/Capitalization.md
|
||||
docs/Cat.md
|
||||
docs/CatAllOf.md
|
||||
docs/Category.md
|
||||
docs/ChildCat.md
|
||||
docs/ChildCatAllOf.md
|
||||
docs/ClassModel.md
|
||||
docs/Client.md
|
||||
docs/ComplexQuadrilateral.md
|
||||
docs/ComplexQuadrilateralAllOf.md
|
||||
docs/ComposedAnyOfDifferentTypesNoValidations.md
|
||||
docs/ComposedArray.md
|
||||
docs/ComposedBool.md
|
||||
@ -42,7 +39,6 @@ docs/ComposedNumber.md
|
||||
docs/ComposedObject.md
|
||||
docs/ComposedOneOfDifferentTypes.md
|
||||
docs/ComposedString.md
|
||||
docs/CompositionInProperty.md
|
||||
docs/Currency.md
|
||||
docs/DanishPig.md
|
||||
docs/DateTimeTest.md
|
||||
@ -51,13 +47,11 @@ docs/DateWithValidations.md
|
||||
docs/DecimalPayload.md
|
||||
docs/DefaultApi.md
|
||||
docs/Dog.md
|
||||
docs/DogAllOf.md
|
||||
docs/Drawing.md
|
||||
docs/EnumArrays.md
|
||||
docs/EnumClass.md
|
||||
docs/EnumTest.md
|
||||
docs/EquilateralTriangle.md
|
||||
docs/EquilateralTriangleAllOf.md
|
||||
docs/FakeApi.md
|
||||
docs/FakeClassnameTags123Api.md
|
||||
docs/File.md
|
||||
@ -70,7 +64,6 @@ docs/GmFruit.md
|
||||
docs/GrandparentAnimal.md
|
||||
docs/HasOnlyReadOnly.md
|
||||
docs/HealthCheckResult.md
|
||||
docs/InlineResponseDefault.md
|
||||
docs/IntegerEnum.md
|
||||
docs/IntegerEnumBig.md
|
||||
docs/IntegerEnumOneValue.md
|
||||
@ -78,9 +71,7 @@ docs/IntegerEnumWithDefaultValue.md
|
||||
docs/IntegerMax10.md
|
||||
docs/IntegerMin15.md
|
||||
docs/IsoscelesTriangle.md
|
||||
docs/IsoscelesTriangleAllOf.md
|
||||
docs/Mammal.md
|
||||
docs/MapBean.md
|
||||
docs/MapTest.md
|
||||
docs/MixedPropertiesAndAdditionalPropertiesClass.md
|
||||
docs/Model200Response.md
|
||||
@ -110,11 +101,9 @@ docs/Quadrilateral.md
|
||||
docs/QuadrilateralInterface.md
|
||||
docs/ReadOnlyFirst.md
|
||||
docs/ScaleneTriangle.md
|
||||
docs/ScaleneTriangleAllOf.md
|
||||
docs/Shape.md
|
||||
docs/ShapeOrNull.md
|
||||
docs/SimpleQuadrilateral.md
|
||||
docs/SimpleQuadrilateralAllOf.md
|
||||
docs/SomeObject.md
|
||||
docs/SpecialModelName.md
|
||||
docs/StoreApi.md
|
||||
@ -169,14 +158,11 @@ petstore_api/model/boolean.py
|
||||
petstore_api/model/boolean_enum.py
|
||||
petstore_api/model/capitalization.py
|
||||
petstore_api/model/cat.py
|
||||
petstore_api/model/cat_all_of.py
|
||||
petstore_api/model/category.py
|
||||
petstore_api/model/child_cat.py
|
||||
petstore_api/model/child_cat_all_of.py
|
||||
petstore_api/model/class_model.py
|
||||
petstore_api/model/client.py
|
||||
petstore_api/model/complex_quadrilateral.py
|
||||
petstore_api/model/complex_quadrilateral_all_of.py
|
||||
petstore_api/model/composed_any_of_different_types_no_validations.py
|
||||
petstore_api/model/composed_array.py
|
||||
petstore_api/model/composed_bool.py
|
||||
@ -185,7 +171,6 @@ petstore_api/model/composed_number.py
|
||||
petstore_api/model/composed_object.py
|
||||
petstore_api/model/composed_one_of_different_types.py
|
||||
petstore_api/model/composed_string.py
|
||||
petstore_api/model/composition_in_property.py
|
||||
petstore_api/model/currency.py
|
||||
petstore_api/model/danish_pig.py
|
||||
petstore_api/model/date_time_test.py
|
||||
@ -193,13 +178,11 @@ petstore_api/model/date_time_with_validations.py
|
||||
petstore_api/model/date_with_validations.py
|
||||
petstore_api/model/decimal_payload.py
|
||||
petstore_api/model/dog.py
|
||||
petstore_api/model/dog_all_of.py
|
||||
petstore_api/model/drawing.py
|
||||
petstore_api/model/enum_arrays.py
|
||||
petstore_api/model/enum_class.py
|
||||
petstore_api/model/enum_test.py
|
||||
petstore_api/model/equilateral_triangle.py
|
||||
petstore_api/model/equilateral_triangle_all_of.py
|
||||
petstore_api/model/file.py
|
||||
petstore_api/model/file_schema_test_class.py
|
||||
petstore_api/model/foo.py
|
||||
@ -210,7 +193,6 @@ petstore_api/model/gm_fruit.py
|
||||
petstore_api/model/grandparent_animal.py
|
||||
petstore_api/model/has_only_read_only.py
|
||||
petstore_api/model/health_check_result.py
|
||||
petstore_api/model/inline_response_default.py
|
||||
petstore_api/model/integer_enum.py
|
||||
petstore_api/model/integer_enum_big.py
|
||||
petstore_api/model/integer_enum_one_value.py
|
||||
@ -218,9 +200,7 @@ petstore_api/model/integer_enum_with_default_value.py
|
||||
petstore_api/model/integer_max10.py
|
||||
petstore_api/model/integer_min15.py
|
||||
petstore_api/model/isosceles_triangle.py
|
||||
petstore_api/model/isosceles_triangle_all_of.py
|
||||
petstore_api/model/mammal.py
|
||||
petstore_api/model/map_bean.py
|
||||
petstore_api/model/map_test.py
|
||||
petstore_api/model/mixed_properties_and_additional_properties_class.py
|
||||
petstore_api/model/model200_response.py
|
||||
@ -249,11 +229,9 @@ petstore_api/model/quadrilateral.py
|
||||
petstore_api/model/quadrilateral_interface.py
|
||||
petstore_api/model/read_only_first.py
|
||||
petstore_api/model/scalene_triangle.py
|
||||
petstore_api/model/scalene_triangle_all_of.py
|
||||
petstore_api/model/shape.py
|
||||
petstore_api/model/shape_or_null.py
|
||||
petstore_api/model/simple_quadrilateral.py
|
||||
petstore_api/model/simple_quadrilateral_all_of.py
|
||||
petstore_api/model/some_object.py
|
||||
petstore_api/model/special_model_name.py
|
||||
petstore_api/model/string.py
|
||||
|
@ -162,14 +162,11 @@ Class | Method | HTTP request | Description
|
||||
- [BooleanEnum](docs/BooleanEnum.md)
|
||||
- [Capitalization](docs/Capitalization.md)
|
||||
- [Cat](docs/Cat.md)
|
||||
- [CatAllOf](docs/CatAllOf.md)
|
||||
- [Category](docs/Category.md)
|
||||
- [ChildCat](docs/ChildCat.md)
|
||||
- [ChildCatAllOf](docs/ChildCatAllOf.md)
|
||||
- [ClassModel](docs/ClassModel.md)
|
||||
- [Client](docs/Client.md)
|
||||
- [ComplexQuadrilateral](docs/ComplexQuadrilateral.md)
|
||||
- [ComplexQuadrilateralAllOf](docs/ComplexQuadrilateralAllOf.md)
|
||||
- [ComposedAnyOfDifferentTypesNoValidations](docs/ComposedAnyOfDifferentTypesNoValidations.md)
|
||||
- [ComposedArray](docs/ComposedArray.md)
|
||||
- [ComposedBool](docs/ComposedBool.md)
|
||||
@ -178,7 +175,6 @@ Class | Method | HTTP request | Description
|
||||
- [ComposedObject](docs/ComposedObject.md)
|
||||
- [ComposedOneOfDifferentTypes](docs/ComposedOneOfDifferentTypes.md)
|
||||
- [ComposedString](docs/ComposedString.md)
|
||||
- [CompositionInProperty](docs/CompositionInProperty.md)
|
||||
- [Currency](docs/Currency.md)
|
||||
- [DanishPig](docs/DanishPig.md)
|
||||
- [DateTimeTest](docs/DateTimeTest.md)
|
||||
@ -186,13 +182,11 @@ Class | Method | HTTP request | Description
|
||||
- [DateWithValidations](docs/DateWithValidations.md)
|
||||
- [DecimalPayload](docs/DecimalPayload.md)
|
||||
- [Dog](docs/Dog.md)
|
||||
- [DogAllOf](docs/DogAllOf.md)
|
||||
- [Drawing](docs/Drawing.md)
|
||||
- [EnumArrays](docs/EnumArrays.md)
|
||||
- [EnumClass](docs/EnumClass.md)
|
||||
- [EnumTest](docs/EnumTest.md)
|
||||
- [EquilateralTriangle](docs/EquilateralTriangle.md)
|
||||
- [EquilateralTriangleAllOf](docs/EquilateralTriangleAllOf.md)
|
||||
- [File](docs/File.md)
|
||||
- [FileSchemaTestClass](docs/FileSchemaTestClass.md)
|
||||
- [Foo](docs/Foo.md)
|
||||
@ -203,7 +197,6 @@ Class | Method | HTTP request | Description
|
||||
- [GrandparentAnimal](docs/GrandparentAnimal.md)
|
||||
- [HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
|
||||
- [HealthCheckResult](docs/HealthCheckResult.md)
|
||||
- [InlineResponseDefault](docs/InlineResponseDefault.md)
|
||||
- [IntegerEnum](docs/IntegerEnum.md)
|
||||
- [IntegerEnumBig](docs/IntegerEnumBig.md)
|
||||
- [IntegerEnumOneValue](docs/IntegerEnumOneValue.md)
|
||||
@ -211,9 +204,7 @@ Class | Method | HTTP request | Description
|
||||
- [IntegerMax10](docs/IntegerMax10.md)
|
||||
- [IntegerMin15](docs/IntegerMin15.md)
|
||||
- [IsoscelesTriangle](docs/IsoscelesTriangle.md)
|
||||
- [IsoscelesTriangleAllOf](docs/IsoscelesTriangleAllOf.md)
|
||||
- [Mammal](docs/Mammal.md)
|
||||
- [MapBean](docs/MapBean.md)
|
||||
- [MapTest](docs/MapTest.md)
|
||||
- [MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||
- [Model200Response](docs/Model200Response.md)
|
||||
@ -242,11 +233,9 @@ Class | Method | HTTP request | Description
|
||||
- [QuadrilateralInterface](docs/QuadrilateralInterface.md)
|
||||
- [ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
||||
- [ScaleneTriangle](docs/ScaleneTriangle.md)
|
||||
- [ScaleneTriangleAllOf](docs/ScaleneTriangleAllOf.md)
|
||||
- [Shape](docs/Shape.md)
|
||||
- [ShapeOrNull](docs/ShapeOrNull.md)
|
||||
- [SimpleQuadrilateral](docs/SimpleQuadrilateral.md)
|
||||
- [SimpleQuadrilateralAllOf](docs/SimpleQuadrilateralAllOf.md)
|
||||
- [SomeObject](docs/SomeObject.md)
|
||||
- [SpecialModelName](docs/SpecialModelName.md)
|
||||
- [String](docs/String.md)
|
||||
|
@ -9,7 +9,7 @@ Name | Type | Description | Notes
|
||||
**map_with_undeclared_properties_anytype_1** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional]
|
||||
**map_with_undeclared_properties_anytype_2** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional]
|
||||
**map_with_undeclared_properties_anytype_3** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional]
|
||||
**empty_map** | **bool, date, datetime, dict, float, int, list, str** | an object with no declared properties and no undeclared properties, hence it's an empty map. | [optional]
|
||||
**empty_map** | **{str: typing.Any}** | an object with no declared properties and no undeclared properties, hence it's an empty map. | [optional]
|
||||
**map_with_undeclared_properties_string** | **{str: (str,)}** | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
|
@ -1,10 +0,0 @@
|
||||
# CatAllOf
|
||||
|
||||
#### Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**declawed** | **bool** | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
@ -1,10 +0,0 @@
|
||||
# ChildCatAllOf
|
||||
|
||||
#### Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | **str** | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
@ -1,10 +0,0 @@
|
||||
# ComplexQuadrilateralAllOf
|
||||
|
||||
#### Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**quadrilateralType** | **str** | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
@ -1,10 +0,0 @@
|
||||
# CompositionInProperty
|
||||
|
||||
#### Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**someProp** | **str** | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
@ -7,7 +7,7 @@ Method | HTTP request | Description
|
||||
[**foo_get**](DefaultApi.md#foo_get) | **GET** /foo |
|
||||
|
||||
# **foo_get**
|
||||
> InlineResponseDefault foo_get()
|
||||
> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} foo_get()
|
||||
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@ Method | HTTP request | Description
|
||||
```python
|
||||
import petstore_api
|
||||
from petstore_api.api import default_api
|
||||
from petstore_api.model.inline_response_default import InlineResponseDefault
|
||||
from petstore_api.model.foo import Foo
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
@ -54,13 +54,15 @@ body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | |
|
||||
headers | Unset | headers were not defined |
|
||||
|
||||
#### SchemaFor0ResponseBodyApplicationJson
|
||||
Type | Description | Notes
|
||||
------------- | ------------- | -------------
|
||||
[**InlineResponseDefault**](InlineResponseDefault.md) | |
|
||||
|
||||
#### Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**string** | [**Foo**](Foo.md) | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
|
||||
|
||||
[**InlineResponseDefault**](InlineResponseDefault.md)
|
||||
**{str: (bool, date, datetime, dict, float, int, list, str, none_type)}**
|
||||
|
||||
### Authorization
|
||||
|
||||
|
@ -1,10 +0,0 @@
|
||||
# DogAllOf
|
||||
|
||||
#### Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**breed** | **str** | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
@ -1,10 +0,0 @@
|
||||
# EquilateralTriangleAllOf
|
||||
|
||||
#### Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**triangleType** | **str** | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
@ -1413,7 +1413,7 @@ No authorization required
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **inline_composition**
|
||||
> object inline_composition()
|
||||
> bool, date, datetime, dict, float, int, list, str, none_type inline_composition()
|
||||
|
||||
testing composed schemas at inline locations
|
||||
|
||||
@ -1422,7 +1422,6 @@ testing composed schemas at inline locations
|
||||
```python
|
||||
import petstore_api
|
||||
from petstore_api.api import fake_api
|
||||
from petstore_api.model.composition_in_property import CompositionInProperty
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
@ -1439,7 +1438,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
query_params = {
|
||||
'compositionAtRoot': None,
|
||||
'compositionInProperty': dict(
|
||||
some_prop="some_prop_example",
|
||||
some_prop=None,
|
||||
),
|
||||
}
|
||||
body = None
|
||||
@ -1479,7 +1478,7 @@ Name | Type | Description | Notes
|
||||
#### Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**someProp** | **object** | | [optional]
|
||||
**someProp** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
### query_params
|
||||
@ -1499,10 +1498,12 @@ Name | Type | Description | Notes
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
#### CompositionInPropertySchema
|
||||
Type | Description | Notes
|
||||
------------- | ------------- | -------------
|
||||
[**{str: (bool, date, datetime, dict, float, int, list, str, none_type)}**](CompositionInProperty.md) | |
|
||||
|
||||
#### Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**someProp** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
### Return Types, Responses
|
||||
|
||||
@ -1530,11 +1531,11 @@ Name | Type | Description | Notes
|
||||
#### Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**someProp** | **object** | | [optional]
|
||||
**someProp** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
|
||||
**object**
|
||||
**bool, date, datetime, dict, float, int, list, str, none_type**
|
||||
|
||||
### Authorization
|
||||
|
||||
@ -1882,7 +1883,6 @@ user list
|
||||
```python
|
||||
import petstore_api
|
||||
from petstore_api.api import fake_api
|
||||
from petstore_api.model.map_bean import MapBean
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
@ -1927,10 +1927,12 @@ mapBean | MapBeanSchema | | optional
|
||||
|
||||
|
||||
#### MapBeanSchema
|
||||
Type | Description | Notes
|
||||
------------- | ------------- | -------------
|
||||
[**{str: (bool, date, datetime, dict, float, int, list, str, none_type)}**](MapBean.md) | |
|
||||
|
||||
#### Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**keyword** | **str** | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
### Return Types, Responses
|
||||
|
||||
|
@ -1,10 +0,0 @@
|
||||
# InlineResponseDefault
|
||||
|
||||
#### Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**string** | [**Foo**](Foo.md) | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
@ -1,10 +0,0 @@
|
||||
# IsoscelesTriangleAllOf
|
||||
|
||||
#### Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**triangleType** | **str** | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
@ -1,10 +0,0 @@
|
||||
# MapBean
|
||||
|
||||
#### Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**keyword** | **str** | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
@ -1,13 +0,0 @@
|
||||
# Model_200Response
|
||||
|
||||
model with an invalid class name for python, starts with a number
|
||||
|
||||
#### Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | **int** | | [optional]
|
||||
**class** | **str** | this is a reserved python keyword | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
@ -1,12 +0,0 @@
|
||||
# Model_Return
|
||||
|
||||
Model for testing reserved words
|
||||
|
||||
#### Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**return** | **int** | this is a reserved python keyword | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
@ -3,7 +3,7 @@
|
||||
#### Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**someProp** | **str** | | [optional]
|
||||
**someProp** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
@ -1,9 +0,0 @@
|
||||
# ObjectWithInlineCompositionPropertySomeProp
|
||||
|
||||
#### Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
@ -1,10 +0,0 @@
|
||||
# ScaleneTriangleAllOf
|
||||
|
||||
#### Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**triangleType** | **str** | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
@ -1,10 +0,0 @@
|
||||
# SimpleQuadrilateralAllOf
|
||||
|
||||
#### Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**quadrilateralType** | **str** | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
@ -14,7 +14,7 @@ Name | Type | Description | Notes
|
||||
**objectWithNoDeclaredProps** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | [optional]
|
||||
**objectWithNoDeclaredPropsNullable** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional]
|
||||
**anyTypeProp** | **bool, date, datetime, dict, float, int, list, str, none_type** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 | [optional]
|
||||
**anyTypeExceptNullProp** | **object** | any type except 'null' Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. | [optional]
|
||||
**anyTypeExceptNullProp** | **bool, date, datetime, dict, float, int, list, str, none_type** | any type except 'null' Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. | [optional]
|
||||
**anyTypePropNullable** | **bool, date, datetime, dict, float, int, list, str, none_type** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values. | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
@ -63,11 +64,36 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
_SchemaEnumMaker
|
||||
)
|
||||
|
||||
from petstore_api.model.inline_response_default import InlineResponseDefault
|
||||
from petstore_api.model.foo import Foo
|
||||
|
||||
_path = '/foo'
|
||||
_method = 'GET'
|
||||
SchemaFor0ResponseBodyApplicationJson = InlineResponseDefault
|
||||
|
||||
|
||||
class SchemaFor0ResponseBodyApplicationJson(
|
||||
DictSchema
|
||||
):
|
||||
|
||||
@classmethod
|
||||
@property
|
||||
def string(cls) -> typing.Type['Foo']:
|
||||
return Foo
|
||||
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
string: typing.Union['Foo', Unset] = unset,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'SchemaFor0ResponseBodyApplicationJson':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
string=string,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
@dataclass
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
import decimal # noqa: F401
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
@ -63,8 +64,6 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
_SchemaEnumMaker
|
||||
)
|
||||
|
||||
from petstore_api.model.composition_in_property import CompositionInProperty
|
||||
|
||||
# query params
|
||||
|
||||
|
||||
@ -74,6 +73,7 @@ class CompositionAtRootSchema(
|
||||
|
||||
@classmethod
|
||||
@property
|
||||
@functools.cache
|
||||
def _composed_schemas(cls):
|
||||
# we need this here to make our import statements work
|
||||
# we must store _composed_schemas in here so the code is only run
|
||||
@ -123,12 +123,53 @@ class CompositionInPropertySchema(
|
||||
|
||||
|
||||
class someProp(
|
||||
ComposedSchema
|
||||
):
|
||||
|
||||
@classmethod
|
||||
@property
|
||||
@functools.cache
|
||||
def _composed_schemas(cls):
|
||||
# we need this here to make our import statements work
|
||||
# we must store _composed_schemas in here so the code is only run
|
||||
# when we invoke this method. If we kept this at the class
|
||||
# level we would get an error because the class level
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
|
||||
|
||||
class allOf_0(
|
||||
_SchemaValidator(
|
||||
min_length=1,
|
||||
),
|
||||
StrSchema
|
||||
):
|
||||
pass
|
||||
return {
|
||||
'allOf': [
|
||||
allOf_0,
|
||||
],
|
||||
'oneOf': [
|
||||
],
|
||||
'anyOf': [
|
||||
],
|
||||
'not':
|
||||
None
|
||||
}
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'someProp':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
def __new__(
|
||||
@ -185,6 +226,7 @@ class SchemaForRequestBodyApplicationJson(
|
||||
|
||||
@classmethod
|
||||
@property
|
||||
@functools.cache
|
||||
def _composed_schemas(cls):
|
||||
# we need this here to make our import statements work
|
||||
# we must store _composed_schemas in here so the code is only run
|
||||
@ -239,6 +281,7 @@ class SchemaForRequestBodyMultipartFormData(
|
||||
|
||||
@classmethod
|
||||
@property
|
||||
@functools.cache
|
||||
def _composed_schemas(cls):
|
||||
# we need this here to make our import statements work
|
||||
# we must store _composed_schemas in here so the code is only run
|
||||
@ -316,6 +359,7 @@ class SchemaFor200ResponseBodyApplicationJson(
|
||||
|
||||
@classmethod
|
||||
@property
|
||||
@functools.cache
|
||||
def _composed_schemas(cls):
|
||||
# we need this here to make our import statements work
|
||||
# we must store _composed_schemas in here so the code is only run
|
||||
@ -370,6 +414,7 @@ class SchemaFor200ResponseBodyMultipartFormData(
|
||||
|
||||
@classmethod
|
||||
@property
|
||||
@functools.cache
|
||||
def _composed_schemas(cls):
|
||||
# we need this here to make our import statements work
|
||||
# we must store _composed_schemas in here so the code is only run
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
import decimal # noqa: F401
|
||||
@ -62,8 +63,6 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
_SchemaEnumMaker
|
||||
)
|
||||
|
||||
from petstore_api.model.map_bean import MapBean
|
||||
|
||||
# query params
|
||||
|
||||
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
import decimal # noqa: F401
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
import decimal # noqa: F401
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
import decimal # noqa: F401
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
import decimal # noqa: F401
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
import decimal # noqa: F401
|
||||
|
@ -11,6 +11,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
import functools # noqa: F401
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
|
@ -12,6 +12,7 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import functools # noqa: F401
|
||||
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
|
@ -12,6 +12,7 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import functools # noqa: F401
|
||||
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
|
@ -12,6 +12,7 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import functools # noqa: F401
|
||||
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
|
@ -12,6 +12,7 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import functools # noqa: F401
|
||||
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
|
@ -12,6 +12,7 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import functools # noqa: F401
|
||||
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
|
@ -12,6 +12,7 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import functools # noqa: F401
|
||||
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
@ -76,6 +77,7 @@ class AnyTypeNotString(
|
||||
|
||||
@classmethod
|
||||
@property
|
||||
@functools.cache
|
||||
def _composed_schemas(cls):
|
||||
# we need this here to make our import statements work
|
||||
# we must store _composed_schemas in here so the code is only run
|
||||
|
@ -12,6 +12,7 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import functools # noqa: F401
|
||||
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
|
@ -12,6 +12,7 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import functools # noqa: F401
|
||||
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
|
@ -12,6 +12,7 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import functools # noqa: F401
|
||||
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
|
@ -12,6 +12,7 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import functools # noqa: F401
|
||||
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
|
@ -12,6 +12,7 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import functools # noqa: F401
|
||||
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
|
@ -12,6 +12,7 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import functools # noqa: F401
|
||||
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
|
@ -12,6 +12,7 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import functools # noqa: F401
|
||||
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
|
@ -12,6 +12,7 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import functools # noqa: F401
|
||||
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
|
@ -12,6 +12,7 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import functools # noqa: F401
|
||||
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
|
@ -12,6 +12,7 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import functools # noqa: F401
|
||||
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
|
@ -12,6 +12,7 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import functools # noqa: F401
|
||||
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user