modules/openapi-generator/src
main
java/org/openapitools/codegen
utils
ModelUtils.java +1 -0
CodegenModel.java +15 -1
CodegenParameter.java +15 -1
CodegenProperty.java +14 -1
CodegenResponse.java +15 -1
DefaultCodegen.java +1 -1
IJsonSchemaValidationProperties.java +8 -0
resources/python-experimental
model_templates
composed_schemas.handlebars +8 -29
schema_composed_or_anytype.handlebars +9 -5
schema_dict.handlebars +5 -2
schema_list.handlebars +7 -4
schema_simple.handlebars +4 -3
validations.handlebars +13 -13
schemas.handlebars +88 -64
test/java/org/openapitools/codegen/java
JavaModelTest.java +1 -1
samples
openapi3/client
3_0_3_unit_test/…/unit_test_api
model
additionalproperties_should_not_look_in_applicators.py +37 -35
allof.py +64 -62
allof_combined_with_anyof_oneof.py +110 -99
allof_simple_types.py +60 -52
allof_with_base_schema.py +64 -62
allof_with_one_empty_schema.py +18 -16
allof_with_the_first_empty_schema.py +20 -18
allof_with_the_last_empty_schema.py +20 -18
allof_with_two_empty_schemas.py +20 -18
anyof.py +40 -35
anyof_complex_types.py +64 -62
anyof_with_base_schema.py +60 -52
anyof_with_one_empty_schema.py +20 -18
by_int.py +4 -1
by_number.py +4 -1
by_small_number.py +4 -1
forbidden_property.py +3 -16
invalid_instance_should_not_raise_error_when_float_division_inf.py +4 -2
invalid_string_value_for_default.py +4 -2
maximum_validation.py +4 -1
maximum_validation_with_unsigned_integer.py +4 -1
maxitems_validation.py +4 -1
maxlength_validation.py +4 -1
maxproperties0_means_the_object_is_empty.py +4 -1
maxproperties_validation.py +4 -1
minimum_validation.py +4 -1
minimum_validation_with_signed_integer.py +4 -1
minitems_validation.py +4 -1
minlength_validation.py +4 -1
minproperties_validation.py +4 -1
model_not.py +3 -16
nested_allof_to_check_validation_semantics.py +40 -36
nested_anyof_to_check_validation_semantics.py +40 -36
nested_oneof_to_check_validation_semantics.py +40 -36
not_more_complex_schema.py +23 -36
oneof.py +40 -35
oneof_complex_types.py +64 -62
oneof_with_base_schema.py +60 -52
oneof_with_empty_schema.py +20 -18
oneof_with_required.py +60 -58
pattern_is_not_anchored.py +6 -3
pattern_validation.py +6 -3
ref_in_allof.py +17 -15
ref_in_anyof.py +17 -15
ref_in_not.py +7 -15
ref_in_oneof.py +17 -15
the_default_keyword_does_not_do_anything_if_the_property_is_missing.py +4 -2
uniqueitems_false_validation.py +4 -0
uniqueitems_validation.py +4 -1
paths
request_body_post_not_more_complex_schema_request_body
post.py +23 -36
request_body_post_not_request_body
post.py +3 -16
request_body_post_ref_in_not_request_body
post.py +7 -15
response_body_post_not_more_complex_schema_response_body_for_content_types
post.py +23 -36
response_body_post_not_response_body_for_content_types
post.py +3 -16
response_body_post_ref_in_not_response_body_for_content_types
post.py +7 -15
schemas.py +88 -64
petstore/python-experimental
petstore_api
model
any_type_not_string.py +3 -16
apple.py +15 -11
array_with_validations_in_items.py +8 -3
cat.py +39 -37
child_cat.py +39 -37
complex_quadrilateral.py +49 -47
composed_any_of_different_types_no_validations.py +53 -51
composed_bool.py +18 -16
composed_none.py +18 -16
composed_number.py +18 -16
composed_object.py +18 -16
composed_one_of_different_types.py +70 -60
composed_string.py +18 -16
date_time_with_validations.py +6 -4
date_with_validations.py +6 -4
dog.py +39 -37
equilateral_triangle.py +49 -47
format_test.py +60 -39
fruit.py +18 -16
fruit_req.py +20 -18
gm_fruit.py +18 -16
integer_max10.py +4 -2
integer_min15.py +4 -2
isosceles_triangle.py +49 -47
mammal.py +19 -17
nullable_shape.py +20 -18
number_with_validations.py +5 -3
object_with_inline_composition_property.py +26 -22
object_with_validations.py +4 -1
parent_pet.py +17 -15
pig.py +18 -16
quadrilateral.py +18 -16
scalene_triangle.py +49 -47
shape.py +18 -16
shape_or_null.py +20 -18
simple_quadrilateral.py +49 -47
some_object.py +17 -15
string_with_validation.py +4 -2
triangle.py +19 -17
user.py +3 -16
uuid_string.py +4 -2
paths
fake_1
post.py +44 -28
fake_inline_composition_
post.py +156 -132
store_order_order_id_1
get.py +5 -3
schemas.py +88 -64
tests_manual
test_animal.py +4 -4
test_any_type_schema.py +50 -50
test_fruit.py +1 -2
test_fruit_req.py +5 -5
test_gm_fruit.py +2 -2
test_validate.py +20 -23
server/petstore/…/…/…/…/…/…/handler
PathHandlerInterface.java +2 -2
@@ -1677,6 +1677,7 @@ public class ModelUtils {
@@ -147,6 +147,7 @@ public class CodegenModel implements IJsonSchemaValidationProperties {
@@ -558,6 +559,16 @@ public class CodegenModel implements IJsonSchemaValidationProperties {
@@ -940,6 +951,7 @@ public class CodegenModel implements IJsonSchemaValidationProperties {
@@ -1014,7 +1026,8 @@ public class CodegenModel implements IJsonSchemaValidationProperties {
@@ -1089,6 +1102,7 @@ public class CodegenModel implements IJsonSchemaValidationProperties {
@@ -99,6 +99,7 @@ public class CodegenParameter implements IJsonSchemaValidationProperties {
@@ -148,6 +149,7 @@ public class CodegenParameter implements IJsonSchemaValidationProperties {
@@ -238,7 +240,7 @@ public class CodegenParameter implements IJsonSchemaValidationProperties {
return Objects.hash(isFormParam, isQueryParam, isPathParam, isHeaderParam, isCookieParam, isBodyParam, isContainer, isCollectionFormatMulti, isPrimitiveType, isModel, isExplode, baseName, paramName, dataType, datatypeWithEnum, dataFormat, collectionFormat, description, unescapedDescription, baseType, defaultValue, enumName, style, isDeepObject, isAllowEmptyValue, example, jsonSchema, isString, isNumeric, isInteger, isLong, isNumber, isFloat, isDouble, isDecimal, isByteArray, isBinary, isBoolean, isDate, isDateTime, isUuid, isUri, isEmail, isFreeFormObject, isAnyType, isArray, isMap, isFile, isEnum, _enum, allowableValues, items, mostInnerItems, additionalProperties, vars, requiredVars, vendorExtensions, hasValidation, getMaxProperties(), getMinProperties(), isNullable, isDeprecated, required, getMaximum(), getExclusiveMaximum(), getMinimum(), getExclusiveMinimum(), getMaxLength(), getMinLength(), getPattern(), getMaxItems(), getMinItems(), getUniqueItems(), contentType, multipleOf, isNull, additionalPropertiesIsAnyType, hasVars, hasRequired, isShort, isUnboundedInteger, hasDiscriminatorWithNonEmptyMapping, composedSchemas, hasMultipleTypes, schema, content, requiredVarsMap, ref);
return Objects.hash(isFormParam, isQueryParam, isPathParam, isHeaderParam, isCookieParam, isBodyParam, isContainer, isCollectionFormatMulti, isPrimitiveType, isModel, isExplode, baseName, paramName, dataType, datatypeWithEnum, dataFormat, collectionFormat, description, unescapedDescription, baseType, defaultValue, enumName, style, isDeepObject, isAllowEmptyValue, example, jsonSchema, isString, isNumeric, isInteger, isLong, isNumber, isFloat, isDouble, isDecimal, isByteArray, isBinary, isBoolean, isDate, isDateTime, isUuid, isUri, isEmail, isFreeFormObject, isAnyType, isArray, isMap, isFile, isEnum, _enum, allowableValues, items, mostInnerItems, additionalProperties, vars, requiredVars, vendorExtensions, hasValidation, getMaxProperties(), getMinProperties(), isNullable, isDeprecated, required, getMaximum(), getExclusiveMaximum(), getMinimum(), getExclusiveMinimum(), getMaxLength(), getMinLength(), getPattern(), getMaxItems(), getMinItems(), getUniqueItems(), contentType, multipleOf, isNull, additionalPropertiesIsAnyType, hasVars, hasRequired, isShort, isUnboundedInteger, hasDiscriminatorWithNonEmptyMapping, composedSchemas, hasMultipleTypes, schema, content, requiredVarsMap, ref, uniqueItemsBoolean);
@@ -294,6 +296,7 @@ public class CodegenParameter implements IJsonSchemaValidationProperties {
@@ -414,6 +417,7 @@ public class CodegenParameter implements IJsonSchemaValidationProperties {
@@ -531,6 +535,16 @@ public class CodegenParameter implements IJsonSchemaValidationProperties {
@@ -181,6 +181,7 @@ public class CodegenProperty implements Cloneable, IJsonSchemaValidationProperti
@@ -725,6 +726,16 @@ public class CodegenProperty implements Cloneable, IJsonSchemaValidationProperti
@@ -977,6 +988,7 @@ public class CodegenProperty implements Cloneable, IJsonSchemaValidationProperti
@@ -1050,6 +1062,7 @@ public class CodegenProperty implements Cloneable, IJsonSchemaValidationProperti
@@ -1116,6 +1129,6 @@ public class CodegenProperty implements Cloneable, IJsonSchemaValidationProperti
@@ -67,6 +67,7 @@ public class CodegenResponse implements IJsonSchemaValidationProperties {
@@ -103,7 +104,7 @@ public class CodegenResponse implements IJsonSchemaValidationProperties {
@@ -152,6 +153,7 @@ public class CodegenResponse implements IJsonSchemaValidationProperties {
@@ -301,6 +303,17 @@ public class CodegenResponse implements IJsonSchemaValidationProperties {
@@ -519,6 +532,7 @@ public class CodegenResponse implements IJsonSchemaValidationProperties {