You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 25, 2024. It is now read-only.
* Validators made for all but 7 keywords
* Adds validate_required
* Fixes validator values and comparisons
* Adds validate_items
* Adds validate_properties
* Adds validate_additional_properties
* Updates schemas template file
* Adds JsonSchemaValidator as a base class to all MetaOapg
* More typo and bugfixes
* Embeds oneOf anyOf and allOf classes in subclesses like properties does
* Sample regenerated with composition class wrapper fix
* Fixes some validate tests
* Adds validate_one_of
* Adds anyOf validation
* Adds validate_all_of
* Fixes validate_additional_properties
* Speeds up Configuration property access
* Removes from_server info from ValidationMetadata
* Ensures that configuration is present in ValidationMetadata
* Fixes disabled_json_schema_keywords, updates configuration
* Fixes configuration test
* Fixes tests in test_any_type_schema
* Adds validate_not
* Fixes BinarySchema one_of definition
* Fixes int checking with no format
* Adds path_to_type dict
* Mfgs classes for unvalidated paths
* Fixes generation of bool and none classes on unvalidated paths
* Fixes more tests
* Fixes test_dict_validate
* Removes unest type checking
* Adds validate_discriminator
* Sample regen
* Fixes 3 tests
* Adds self handling for oneOf/anyOf/allOf validation, fixes last test
* Samples regenerated
* Fixes integer validation
* Removes Discriminable
* Removes ComposedBase + BinaryBase
* Removes Int32Base/Int64Base/Float32Base/Float64Base
* Adds int format for integers
* Removes EnumBase
* Replaces ComposedSchema with AnyTypeSchema, fixes two tests
* Fixes two tests, handles AnyType + InheritorOfAnyType + XSchema use case
* Adds template changes that allow nonCompliantUseDiscriminatorIfCompositionFails to work
* Sample regen
* Fixes test for nonCompliantUseDiscriminatorIfCompositionFails feature sample
* Samples regenerated
* Samples regenerate with UnsetAnyTypeSchema exclusion in cast_to_allowed..
Copy file name to clipboardExpand all lines: modules/openapi-json-schema-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java
Copy file name to clipboardExpand all lines: modules/openapi-json-schema-generator/src/main/resources/python/model_templates/composed_schemas.handlebars
Copy file name to clipboardExpand all lines: modules/openapi-json-schema-generator/src/main/resources/python/model_templates/schema_composed_or_anytype.handlebars
+3-10
Original file line number
Diff line number
Diff line change
@@ -5,18 +5,8 @@ class {{#if this.classname}}{{classname}}{{else}}{{#if nameInSnakeCase}}{{name}}
5
5
{{#ifgetFormat}}
6
6
{{>model_templates/format_base}}
7
7
{{/if}}
8
-
{{#ifcomposedSchemas}}
9
-
schemas.ComposedSchema,
10
-
{{else}}
11
8
schemas.AnyTypeSchema,
12
-
{{/if}}
13
9
{{else}}
14
-
{{#ifcomposedSchemas}}
15
-
schemas.ComposedBase,
16
-
{{/if}}
17
-
{{#ifisEnum}}
18
-
schemas.EnumBase,
19
-
{{/if}}
20
10
{{>model_templates/xbase_schema}}
21
11
{{/if}}
22
12
):
@@ -34,6 +24,9 @@ class {{#if this.classname}}{{classname}}{{else}}{{#if nameInSnakeCase}}{{name}}
0 commit comments