forked from loafle/openapi-generator-original
* Fixes additionalProperties values for models, updates docs, adds tag test of it, fixes frit and gmfruit tests * Moves this.setDisallowAdditionalPropertiesIfNotPresent higher * Makes setting additional_properties_model_instances contingent on the presence of addprosp in schema, updates sample spec composed schemas to remove addprops False form two * Fixes oneOf anyOf allOf instantiation logic * Removes Address from Cat definition * Adds required vars for apple and banana, removes required vars from composed schema init sig * Updates composed schema vars to be set on self and all composed instances * Removes get_unused_args, get_var_name_to_model_instances, and get_additional_properties_model_instances * Fixes fruit + deserilization tests, creates ComposedSchemaWithPropsAndNoAddProps * Fixes FruitReq tests * Fixes GmFruit tests * Fixes discard_unknown_keys tests * Samples updated * Removes additionalproperties False in Child * Samples updated * Improves handling of v2 and v3 specs for isFreeFormObject, v2 sample spec updated with link to bug * Adds cli option disallowAdditionalPropertiesIfNotPresent to python * Adds getAdditionalProperties method so the value for addProps will be correct * Reverts file * Reverts file * Updates python doc * Reverted anytype_3 definition * Updates test_deserialize_lizard * Updates test_deserialize_dict_str_dog * Updates testDog * Updates testChild * Adds v2 python_composition sample * Adds needed files for python testing * Adds existing tests into the new python sample * Fixes test_dog * Removes addProps false form Dog * Fixes testChild * Updates how additionalProperties are set * Fixes empty_map type * Type generation fixed for v2 and v3 specs * Refactors getTypeString, updates artifactids in pom.xml files * Adds new python sample to CI testing I think * Fixes artifactId collision, regenrates docs
1.5 KiB
1.5 KiB
AdditionalPropertiesClass
Properties
Name | Type | Description | Notes |
---|---|---|---|
map_string | {str: (str,)} | [optional] | |
map_number | {str: (float,)} | [optional] | |
map_integer | {str: (int,)} | [optional] | |
map_boolean | {str: (bool,)} | [optional] | |
map_array_integer | {str: ([int],)} | [optional] | |
map_array_anytype | {str: ([bool, date, datetime, dict, float, int, list, str, none_type],)} | [optional] | |
map_map_string | {str: ({str: (str,)},)} | [optional] | |
map_map_anytype | {str: ({str: (bool, date, datetime, dict, float, int, list, str, none_type,)},)} | [optional] | |
anytype_1 | bool, date, datetime, dict, float, int, list, str, none_type | [optional] | |
anytype_2 | bool, date, datetime, dict, float, int, list, str, none_type | no type is set for this | [optional] |
anytype_3 | bool, date, datetime, dict, float, int, list, str, none_type | because of a bug in swagger-parser, this should have values {str: (str, int, float...)} but instead we get any type. See https://github.com/swagger-api/swagger-parser/issues/1378 | [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] |