mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-09 09:36:13 +00:00
[python-experimental] Allow schema instances to be passed in and pass additional schema validations (#12758)
* Converts all schema instances back into primitives in cast_to_allowed_types, fixes test test_deserialize_oneof_reference * Updates type hint * Adds validated_path_to_schemas input * Adds debugging, storess validated schemas in validated_path_to_schemas * Adds __process_schema_classes * Simplifies class creation for enums, True/False/None * Removes unused methods * Fixes two tests * Removes unneeded method _enum_by_value * Adds and uses validation_ran_earlier * Skips running validation if already ran, base_classes changed to seen_classes * Adds and uses validation_ran_earlier * Simplifies __get_simple_class * Casts None/True/False into NoneClass and BoolClass instances to make tpye checking and unique items checking simpler * Always cast file input to FileIO, removes __get_simple_class * Moves type checking to separate class * Moves validation checking into a _validate method * Moves enum value checking into SchemaEnumMaker's _validate method * Fixes test_dict_validate_direct_instantiation_cast_item * Removes spy_decorator * Fixed test_dict_validate_direct_instantiation * Fixes test_list_validate_direct_instantiation_cast_item * Fixes test_list_validate_direct_instantiation * Fixes test_list_validate_from_openai_data_instantiation * Fixes test_dict_validate_from_openapi_data_instantiation * Fixes test_upload_files * Samples regenerated * Reverts version file
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
Type | Description | Notes
|
||||
------------- | ------------- | -------------
|
||||
**bool** | | must be one of [True, ]
|
||||
**bool** | | must be one of [BoolClass.TRUE, ]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -58,6 +58,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -58,6 +58,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -58,6 +58,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -58,6 +58,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -58,6 +58,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -58,6 +58,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -58,6 +58,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -58,6 +58,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -59,6 +59,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
@@ -67,7 +69,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
|
||||
|
||||
class Apple(
|
||||
_SchemaTypeChecker(typing.Union[frozendict, none_type, ]),
|
||||
_SchemaTypeChecker(typing.Union[frozendict, NoneClass, ]),
|
||||
DictBase,
|
||||
NoneBase,
|
||||
Schema
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
@@ -69,7 +71,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
class BooleanEnum(
|
||||
_SchemaEnumMaker(
|
||||
enum_value_to_name={
|
||||
True: "TRUE",
|
||||
BoolClass.TRUE: "TRUE",
|
||||
}
|
||||
),
|
||||
BoolSchema
|
||||
@@ -83,4 +85,4 @@ class BooleanEnum(
|
||||
@classmethod
|
||||
@property
|
||||
def TRUE(cls):
|
||||
return cls(True)
|
||||
return cls(BoolClass.TRUE)
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
@@ -60,6 +60,8 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BoolBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
NoneClass,
|
||||
BoolClass,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user