From eb98f3c94128eebee9839ceaf0b5acce2437e77c Mon Sep 17 00:00:00 2001 From: Wiebren Braakman Date: Tue, 8 Sep 2026 10:11:03 +0200 Subject: [PATCH 1/3] [java] fix: the okhttp-gson additionalProperties bag breaks every allOf child With disallowAdditionalPropertiesIfNotPresent=false every model declares private Map additionalProperties - so an allOf child declares the field twice, once itself and once inherited, and gson refuses the class before the model's own TypeAdapterFactory can run: IllegalArgumentException: Class Child declares multiple JSON fields named 'additionalProperties' Every allOf child model is undeserializable (and unserializable). Mark the field transient: the custom TypeAdapterFactory already reads and writes the bag explicitly around the reflective delegate - on write it even removes the additionalProperties key the delegate emitted - so hiding it from gson's reflection changes nothing for flat models and unbreaks the children. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01GcwZ1arjLZNpetHz2a3TJz --- .../additional_properties.mustache | 6 +++- .../codegen/java/JavaClientCodegenTest.java | 30 +++++++++++++++++++ .../client/model/AllOfSimpleModel.java | 6 +++- .../org/openapitools/client/model/Animal.java | 6 +++- .../client/model/AnyTypeTest.java | 6 +++- .../client/model/ArrayOfSameRef.java | 6 +++- .../org/openapitools/client/model/Cat.java | 6 +++- .../openapitools/client/model/Category.java | 6 +++- .../client/model/CircularReference1.java | 6 +++- .../client/model/CircularReference2.java | 6 +++- .../client/model/CircularReference3.java | 6 +++- .../org/openapitools/client/model/Dog.java | 6 +++- ...FakeWebhooksSourcesDeletedPostRequest.java | 6 +++- ...ebhooksSourcesDeletedPostRequestEvent.java | 6 +++- .../client/model/ModelApiResponse.java | 6 +++- .../org/openapitools/client/model/Order.java | 6 +++- .../org/openapitools/client/model/Pet.java | 6 +++- .../model/PetWithTypesObjectNullAndRef.java | 6 +++- .../SelfReferenceAdditionalProperties.java | 6 +++- .../model/SimpleModelWithArrayProperty.java | 6 +++- .../org/openapitools/client/model/Tag.java | 6 +++- .../org/openapitools/client/model/User.java | 6 +++- .../openapitools/client/model/Category.java | 6 +++- .../client/model/ModelApiResponse.java | 6 +++- .../org/openapitools/client/model/Order.java | 6 +++- .../org/openapitools/client/model/Pet.java | 6 +++- .../org/openapitools/client/model/Tag.java | 6 +++- .../org/openapitools/client/model/User.java | 6 +++- .../model/AdditionalPropertiesAnyType.java | 6 +++- .../model/AdditionalPropertiesArray.java | 6 +++- .../model/AdditionalPropertiesBoolean.java | 6 +++- .../model/AdditionalPropertiesInteger.java | 6 +++- .../model/AdditionalPropertiesNumber.java | 6 +++- .../model/AdditionalPropertiesObject.java | 6 +++- .../model/AdditionalPropertiesString.java | 6 +++- .../openapitools/client/model/Category.java | 6 +++- .../client/model/ModelApiResponse.java | 6 +++- .../org/openapitools/client/model/Order.java | 6 +++- .../org/openapitools/client/model/Pet.java | 6 +++- .../org/openapitools/client/model/Tag.java | 6 +++- .../org/openapitools/client/model/User.java | 6 +++- .../openapitools/client/model/Category.java | 6 +++- .../client/model/ModelApiResponse.java | 6 +++- .../org/openapitools/client/model/Order.java | 6 +++- .../org/openapitools/client/model/Pet.java | 6 +++- .../model/PetWithRequiredNullableCases1.java | 6 +++- .../model/PetWithRequiredNullableCases2.java | 6 +++- .../org/openapitools/client/model/Tag.java | 6 +++- .../org/openapitools/client/model/User.java | 6 +++- .../model/AdditionalPropertiesAnyType.java | 6 +++- .../model/AdditionalPropertiesArray.java | 6 +++- .../model/AdditionalPropertiesBoolean.java | 6 +++- .../model/AdditionalPropertiesInteger.java | 6 +++- .../model/AdditionalPropertiesNumber.java | 6 +++- .../model/AdditionalPropertiesObject.java | 6 +++- .../model/AdditionalPropertiesString.java | 6 +++- .../openapitools/client/model/Category.java | 6 +++- .../client/model/ModelApiResponse.java | 6 +++- .../org/openapitools/client/model/Order.java | 6 +++- .../org/openapitools/client/model/Pet.java | 6 +++- .../org/openapitools/client/model/Tag.java | 6 +++- .../org/openapitools/client/model/User.java | 6 +++- .../openapitools/client/model/Category.java | 6 +++- .../client/model/ModelApiResponse.java | 6 +++- .../org/openapitools/client/model/Order.java | 6 +++- .../org/openapitools/client/model/Pet.java | 6 +++- .../org/openapitools/client/model/Tag.java | 6 +++- .../org/openapitools/client/model/User.java | 6 +++- .../model/AdditionalPropertiesClass.java | 6 +++- .../client/model/AllOfModelArrayAnyOf.java | 6 +++- .../AllOfModelArrayAnyOfAllOfAttributes.java | 6 +++- ...OfModelArrayAnyOfAllOfLinkListColumn1.java | 6 +++- .../client/model/AllOfRefToDouble.java | 6 +++- .../client/model/AllOfRefToFloat.java | 6 +++- .../client/model/AllOfRefToLong.java | 6 +++- .../org/openapitools/client/model/Animal.java | 6 +++- .../org/openapitools/client/model/Apple.java | 6 +++- .../client/model/ArrayDefault.java | 6 +++- .../model/ArrayOfArrayOfNumberOnly.java | 6 +++- .../client/model/ArrayOfInlineAllOf.java | 6 +++- ...InlineAllOfArrayAllofDogPropertyInner.java | 6 +++- .../client/model/ArrayOfNumberOnly.java | 6 +++- .../openapitools/client/model/ArrayTest.java | 6 +++- .../org/openapitools/client/model/Banana.java | 6 +++- .../openapitools/client/model/BasquePig.java | 6 +++- .../client/model/Capitalization.java | 6 +++- .../org/openapitools/client/model/Cat.java | 6 +++- .../openapitools/client/model/Category.java | 6 +++- .../openapitools/client/model/ClassModel.java | 6 +++- .../org/openapitools/client/model/Client.java | 6 +++- .../client/model/ComplexQuadrilateral.java | 6 +++- .../openapitools/client/model/DanishPig.java | 6 +++- .../client/model/DeprecatedObject.java | 6 +++- .../org/openapitools/client/model/Dog.java | 6 +++- .../openapitools/client/model/Drawing.java | 6 +++- .../openapitools/client/model/EnumArrays.java | 6 +++- .../client/model/EnumStringDiscriminator.java | 6 +++- .../openapitools/client/model/EnumTest.java | 6 +++- .../client/model/EquilateralTriangle.java | 6 +++- .../client/model/FileSchemaTestClass.java | 6 +++- .../org/openapitools/client/model/Foo.java | 6 +++- .../client/model/FooGetDefaultResponse.java | 6 +++- .../openapitools/client/model/FormatTest.java | 6 +++- .../client/model/FreeFormObjectTestClass.java | 6 +++- .../client/model/GrandparentAnimal.java | 6 +++- .../client/model/HasOnlyReadOnly.java | 6 +++- .../client/model/HealthCheckResult.java | 6 +++- .../openapitools/client/model/MapTest.java | 6 +++- ...ropertiesAndAdditionalPropertiesClass.java | 6 +++- .../client/model/Model200Response.java | 6 +++- .../client/model/ModelApiResponse.java | 6 +++- .../openapitools/client/model/ModelFile.java | 6 +++- .../openapitools/client/model/ModelList.java | 6 +++- .../client/model/ModelReturn.java | 6 +++- .../model/ModelWithOneOfAnyOfProperties.java | 6 +++- .../org/openapitools/client/model/Name.java | 6 +++- .../model/NestedArrayWithDefaultValues.java | 6 +++- .../org/openapitools/client/model/NewPet.java | 6 +++- .../model/NewPetCategoryInlineAllof.java | 6 +++- ...etCategoryInlineAllofAllOfCategoryTag.java | 6 +++- .../client/model/NullableClass.java | 6 +++- .../client/model/NullableFieldsValue.java | 6 +++- .../openapitools/client/model/NumberOnly.java | 6 +++- .../model/ObjectWithDeprecatedFields.java | 6 +++- .../org/openapitools/client/model/Order.java | 6 +++- .../client/model/OuterComposite.java | 6 +++- .../openapitools/client/model/ParentPet.java | 6 +++- .../org/openapitools/client/model/Pet.java | 6 +++- .../client/model/PetComposition.java | 6 +++- .../org/openapitools/client/model/PetRef.java | 6 +++- .../client/model/PetUsingAllOf.java | 6 +++- .../client/model/PetWithRequiredTags.java | 6 +++- .../client/model/PropertyNameCollision.java | 6 +++- .../client/model/QuadrilateralInterface.java | 6 +++- .../client/model/ReadOnlyFirst.java | 6 +++- .../client/model/RequiredNullableBody.java | 6 +++- .../client/model/ScaleneTriangle.java | 6 +++- .../client/model/ShapeInterface.java | 6 +++- .../client/model/SimpleQuadrilateral.java | 6 +++- .../client/model/SpecialModelName.java | 6 +++- .../org/openapitools/client/model/Tag.java | 6 +++- ...neFreeformAdditionalPropertiesRequest.java | 6 +++- .../client/model/TriangleInterface.java | 6 +++- .../org/openapitools/client/model/User.java | 6 +++- .../openapitools/client/model/Variable.java | 6 +++- .../org/openapitools/client/model/Whale.java | 6 +++- .../org/openapitools/client/model/Zebra.java | 6 +++- 147 files changed, 760 insertions(+), 146 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/additional_properties.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/additional_properties.mustache index bca54f84d575..bc7ab6bcc49f 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/additional_properties.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/additional_properties.mustache @@ -3,8 +3,12 @@ * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaClientCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaClientCodegenTest.java index e2cf0bac4cc4..e5cbdffa725f 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaClientCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaClientCodegenTest.java @@ -2024,6 +2024,36 @@ public void testJdkHttpClientWithAndWithoutParentExtension() { .content().contains("public class AnotherChild {"); } + @Test + public void testAdditionalPropertiesFieldIsTransientForGson() { + final Path output = newTempFolder(); + final CodegenConfigurator configurator = new CodegenConfigurator() + .setGeneratorName(JAVA_GENERATOR) + // use default `okhttp-gson` + .addAdditionalProperty(CodegenConstants.API_PACKAGE, "xyz.abcdef.api") + .addAdditionalProperty(CodegenConstants.MODEL_PACKAGE, "xyz.abcdef.model") + .addAdditionalProperty(CodegenConstants.INVOKER_PACKAGE, "xyz.abcdef.invoker") + .addAdditionalProperty("disallowAdditionalPropertiesIfNotPresent", "false") + .setInputSpec("src/test/resources/3_0/allOf_extension_parent.yaml") + .setOutputDir(output.toString().replace("\\", "/")); + + DefaultGenerator generator = new DefaultGenerator(); + generator.setGeneratorPropertyDefault(CodegenConstants.MODELS, "true"); + generator.opts(configurator.toClientOptInput()).generate(); + + // gson's reflective adapter refuses a class with two JSON fields of one name; without + // `transient` an allOf child declares additionalProperties itself and inherits it too, + // making it undeserializable ("declares multiple JSON fields named + // 'additionalProperties'"). The bag is read and written by the model's own + // TypeAdapterFactory, never by gson reflection, so hiding the field changes nothing else. + assertThat(output.resolve("src/main/java/xyz/abcdef/model/Child.java")) + .content() + .contains("public class Child extends Person {") + .contains("private transient Map additionalProperties;"); + assertThat(output.resolve("src/main/java/xyz/abcdef/model/Person.java")) + .content().contains("private transient Map additionalProperties;"); + } + @Test public void allOfWithSeveralRefsAndRefAsParentInAllOfNormalizationIsTrue() { final Path output = newTempFolder(); diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AllOfSimpleModel.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AllOfSimpleModel.java index 915278259da2..5d4fe2d2cbc5 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AllOfSimpleModel.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AllOfSimpleModel.java @@ -91,8 +91,12 @@ public void setArrayOfStrings(@javax.annotation.Nonnull List arrayOfStri * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Animal.java index eb5e7b249db1..e56a38fef62a 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Animal.java @@ -106,8 +106,12 @@ public void setColor(@javax.annotation.Nullable String color) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AnyTypeTest.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AnyTypeTest.java index 634c6d56d771..225929587c5d 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AnyTypeTest.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AnyTypeTest.java @@ -148,8 +148,12 @@ public void setRefArrayPrefixItems(@javax.annotation.Nullable List refAr * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ArrayOfSameRef.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ArrayOfSameRef.java index 2cf1cc790a34..68a4c60ebfc4 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ArrayOfSameRef.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ArrayOfSameRef.java @@ -156,8 +156,12 @@ public void setArrayFooThree(@javax.annotation.Nullable List arrayFooThree) * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Cat.java index 0300276dbb47..da720a5cc023 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Cat.java @@ -83,8 +83,12 @@ public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Category.java index e550e50d7464..459b4d7b0738 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Category.java @@ -105,8 +105,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference1.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference1.java index a5896d057fa0..611eb3485ffd 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference1.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference1.java @@ -82,8 +82,12 @@ public void setProp1(@javax.annotation.Nullable CircularReference2 prop1) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference2.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference2.java index 568935f7d488..1ea2cf33ea89 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference2.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference2.java @@ -82,8 +82,12 @@ public void setProp1(@javax.annotation.Nullable CircularReference3 prop1) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference3.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference3.java index bf8992608e09..c54edc1577b3 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference3.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference3.java @@ -82,8 +82,12 @@ public void setProp1(@javax.annotation.Nullable CircularReference1 prop1) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Dog.java index 84fda067106f..b17a40b433dd 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Dog.java @@ -83,8 +83,12 @@ public void setBreed(@javax.annotation.Nullable String breed) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/FakeWebhooksSourcesDeletedPostRequest.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/FakeWebhooksSourcesDeletedPostRequest.java index e3103770d3bf..fdca837d59e6 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/FakeWebhooksSourcesDeletedPostRequest.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/FakeWebhooksSourcesDeletedPostRequest.java @@ -131,8 +131,12 @@ public void setEvent(@javax.annotation.Nonnull FakeWebhooksSourcesDeletedPostReq * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/FakeWebhooksSourcesDeletedPostRequestEvent.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/FakeWebhooksSourcesDeletedPostRequestEvent.java index de5622ae466c..3ced5fb22393 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/FakeWebhooksSourcesDeletedPostRequestEvent.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/FakeWebhooksSourcesDeletedPostRequestEvent.java @@ -81,8 +81,12 @@ public void setEventId(@javax.annotation.Nonnull String eventId) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 8459615500e1..f8c026e6e65c 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -129,8 +129,12 @@ public void setMessage(@javax.annotation.Nullable String message) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Order.java index 07bb953b318f..6df39352acd2 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Order.java @@ -256,8 +256,12 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Pet.java index d1e6eb1d1b5e..e9a3ccbf125b 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Pet.java @@ -280,8 +280,12 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/PetWithTypesObjectNullAndRef.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/PetWithTypesObjectNullAndRef.java index 86dc5f1aca47..78130537b697 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/PetWithTypesObjectNullAndRef.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/PetWithTypesObjectNullAndRef.java @@ -107,8 +107,12 @@ public void setSecondProperty(@javax.annotation.Nullable Object secondProperty) * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceAdditionalProperties.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceAdditionalProperties.java index 8055f50a98f5..c3f78f6260fa 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceAdditionalProperties.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceAdditionalProperties.java @@ -81,8 +81,12 @@ public void setDummy(@javax.annotation.Nullable String dummy) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SimpleModelWithArrayProperty.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SimpleModelWithArrayProperty.java index 8410c482e88f..8270f89787ae 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SimpleModelWithArrayProperty.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SimpleModelWithArrayProperty.java @@ -91,8 +91,12 @@ public void setArrayOfStrings(@javax.annotation.Nonnull List arrayOfStri * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Tag.java index 460c5fecbb28..46c248fc8886 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Tag.java @@ -105,8 +105,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/User.java index 4b3a5a45e5e1..6c96cfe6f0a1 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/User.java @@ -249,8 +249,12 @@ public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Category.java index e550e50d7464..459b4d7b0738 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Category.java @@ -105,8 +105,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 8459615500e1..f8c026e6e65c 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -129,8 +129,12 @@ public void setMessage(@javax.annotation.Nullable String message) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Order.java index 07bb953b318f..6df39352acd2 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Order.java @@ -256,8 +256,12 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Pet.java index d1e6eb1d1b5e..e9a3ccbf125b 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Pet.java @@ -280,8 +280,12 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Tag.java index 460c5fecbb28..46c248fc8886 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Tag.java @@ -105,8 +105,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/User.java index 4b3a5a45e5e1..6c96cfe6f0a1 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/User.java @@ -249,8 +249,12 @@ public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index c10b67150980..9876c7aa755b 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -81,8 +81,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index a73a42bd9b10..304d7a3f9bf1 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -82,8 +82,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 33fbdf5051b4..5807c91fd8ef 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -81,8 +81,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 34ebbf32fcbb..b45606dc3434 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -81,8 +81,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index cebd9acecdbd..a7a6dfd5d109 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -82,8 +82,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index a81671bb4e9a..a034f5ab4eb8 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -82,8 +82,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 42682dd2f2fb..cd4230aaacbc 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -81,8 +81,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Category.java index e550e50d7464..459b4d7b0738 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Category.java @@ -105,8 +105,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 8459615500e1..f8c026e6e65c 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -129,8 +129,12 @@ public void setMessage(@javax.annotation.Nullable String message) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Order.java index 07bb953b318f..6df39352acd2 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Order.java @@ -256,8 +256,12 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Pet.java index d1e6eb1d1b5e..e9a3ccbf125b 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Pet.java @@ -280,8 +280,12 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Tag.java index 460c5fecbb28..46c248fc8886 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Tag.java @@ -105,8 +105,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/User.java index 4b3a5a45e5e1..6c96cfe6f0a1 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/User.java @@ -249,8 +249,12 @@ public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Category.java index e550e50d7464..459b4d7b0738 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Category.java @@ -105,8 +105,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 8459615500e1..f8c026e6e65c 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -129,8 +129,12 @@ public void setMessage(@javax.annotation.Nullable String message) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Order.java index 07bb953b318f..6df39352acd2 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Order.java @@ -256,8 +256,12 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Pet.java index d1e6eb1d1b5e..e9a3ccbf125b 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Pet.java @@ -280,8 +280,12 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases1.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases1.java index 131535a4032d..b587dad3e0af 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases1.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases1.java @@ -281,8 +281,12 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases2.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases2.java index 34aaeb40d214..9e91cf40351b 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases2.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases2.java @@ -280,8 +280,12 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Tag.java index 460c5fecbb28..46c248fc8886 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Tag.java @@ -105,8 +105,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/User.java index 4b3a5a45e5e1..6c96cfe6f0a1 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/User.java @@ -249,8 +249,12 @@ public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 4a671e808e15..ca33f710428b 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -83,8 +83,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 87ba0cb66570..ee004af7c5ed 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -84,8 +84,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 96a37361ba11..1e1351b418b4 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -83,8 +83,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 6ec1d638a28b..c896456d007a 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -83,8 +83,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 744f7095a9af..ededc4878db1 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -84,8 +84,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index c5748606be63..903698c69200 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -84,8 +84,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index be6e9030997c..9ea234e34cf7 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -83,8 +83,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Category.java index 6866f49ae715..56843a3561f2 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Category.java @@ -110,8 +110,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 0163287f1edd..bf51d0d88f70 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -135,8 +135,12 @@ public void setMessage(@javax.annotation.Nullable String message) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Order.java index 28736d75d5cb..53480a05aaa9 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Order.java @@ -265,8 +265,12 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Pet.java index acc68e1aad6c..7b1af2bce7ca 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Pet.java @@ -289,8 +289,12 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Tag.java index 64675ff89080..0640087d8806 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Tag.java @@ -110,8 +110,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/User.java index b456431877aa..a61f2898ca9a 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/User.java @@ -260,8 +260,12 @@ public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Category.java index a7780ba6026b..f52f561f4ced 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Category.java @@ -109,8 +109,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 8488bb9fd160..0c025b968f86 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -134,8 +134,12 @@ public void setMessage(@javax.annotation.Nullable String message) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Order.java index 0daac011eecc..a543c0264cd8 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Order.java @@ -264,8 +264,12 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Pet.java index b1451730d628..5b296794baf2 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Pet.java @@ -288,8 +288,12 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Tag.java index dd27432ba026..98f8c53e7d32 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Tag.java @@ -109,8 +109,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/User.java index c226e52999aa..1adc9928bc1d 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/User.java @@ -259,8 +259,12 @@ public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 38220ff74447..cf8873f0b1c4 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -284,8 +284,12 @@ public void setMapWithUndeclaredPropertiesString(@javax.annotation.Nullable Map< * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOf.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOf.java index f1bb01f291b9..d768d1368e51 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOf.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOf.java @@ -155,8 +155,12 @@ public void setAttributes(@javax.annotation.Nullable AllOfModelArrayAnyOfAllOfAt * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfAttributes.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfAttributes.java index 4cabc4d8f5cb..d455cb80e3e6 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfAttributes.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfAttributes.java @@ -82,8 +82,12 @@ public void setC(@javax.annotation.Nullable AllOfModelArrayAnyOfAllOfAttributesC * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfLinkListColumn1.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfLinkListColumn1.java index 73d2c95e6ec7..f4438640931c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfLinkListColumn1.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfLinkListColumn1.java @@ -92,8 +92,12 @@ public void setValue(@javax.annotation.Nonnull List additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToDouble.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToDouble.java index 990751832ed1..d072ee2b5879 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToDouble.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToDouble.java @@ -81,8 +81,12 @@ public void setHeight(@javax.annotation.Nullable Double height) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToFloat.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToFloat.java index 290226984412..ebf3bde9530d 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToFloat.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToFloat.java @@ -81,8 +81,12 @@ public void setWeight(@javax.annotation.Nullable Float weight) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToLong.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToLong.java index bdf1189c9d80..ab64e0c00d04 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToLong.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToLong.java @@ -81,8 +81,12 @@ public void setId(@javax.annotation.Nullable Long id) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Animal.java index efabbbf15ea0..116f8d0373e7 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Animal.java @@ -106,8 +106,12 @@ public void setColor(@javax.annotation.Nullable String color) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Apple.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Apple.java index 99eb8bab3e41..39dbf71e4fcb 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Apple.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Apple.java @@ -105,8 +105,12 @@ public void setOrigin(@javax.annotation.Nullable String origin) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayDefault.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayDefault.java index 904ad3511139..c4006d6844f4 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayDefault.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayDefault.java @@ -123,8 +123,12 @@ public void setWithoutDefault(@javax.annotation.Nullable List withoutDef * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 6c1320db6cc5..9ca9f1b9f236 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -92,8 +92,12 @@ public void setArrayArrayNumber(@javax.annotation.Nullable List * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOf.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOf.java index 215f5780891a..816a707891bb 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOf.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOf.java @@ -140,8 +140,12 @@ public void setArrayAllofDogProperty(@javax.annotation.Nullable List additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOfArrayAllofDogPropertyInner.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOfArrayAllofDogPropertyInner.java index 5b8e6c156814..133d609c3ef9 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOfArrayAllofDogPropertyInner.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOfArrayAllofDogPropertyInner.java @@ -105,8 +105,12 @@ public void setColor(@javax.annotation.Nullable String color) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index ba4cd96b41b4..e1630721266f 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -92,8 +92,12 @@ public void setArrayNumber(@javax.annotation.Nullable List arrayNumb * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayTest.java index c29ee8aeb09b..ae5caade1d7f 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -156,8 +156,12 @@ public void setArrayArrayOfModel(@javax.annotation.Nullable List additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Banana.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Banana.java index 96c7850dc9fa..a030b0367e0c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Banana.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Banana.java @@ -82,8 +82,12 @@ public void setLengthCm(@javax.annotation.Nullable BigDecimal lengthCm) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BasquePig.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BasquePig.java index ee270bfa2b8d..5d2cb329ea47 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BasquePig.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BasquePig.java @@ -81,8 +81,12 @@ public void setClassName(@javax.annotation.Nonnull String className) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Capitalization.java index 4565940418cf..67c8fac302a2 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Capitalization.java @@ -201,8 +201,12 @@ public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Cat.java index e393b16c03fd..ab37ebf5ced2 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Cat.java @@ -84,8 +84,12 @@ public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java index e47d6e1dd690..23eaf304eb4a 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java @@ -105,8 +105,12 @@ public void setName(@javax.annotation.Nonnull String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ClassModel.java index ab01da3967ee..1b7a342f182e 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ClassModel.java @@ -81,8 +81,12 @@ public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Client.java index ae82c951233f..d939955b247e 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Client.java @@ -81,8 +81,12 @@ public void setClient(@javax.annotation.Nullable String client) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java index d2c03e88a5b1..22bc55405e8b 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java @@ -105,8 +105,12 @@ public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralT * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DanishPig.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DanishPig.java index f7ad2cec303d..0d90bddab417 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DanishPig.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DanishPig.java @@ -81,8 +81,12 @@ public void setClassName(@javax.annotation.Nonnull String className) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DeprecatedObject.java index f58daf4a3af6..14afe777b948 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -83,8 +83,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Dog.java index d0a09fb3fbea..6ad858a80e1f 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Dog.java @@ -83,8 +83,12 @@ public void setBreed(@javax.annotation.Nullable String breed) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Drawing.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Drawing.java index c238c548f594..94f82be37594 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Drawing.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Drawing.java @@ -168,8 +168,12 @@ public void setShapes(@javax.annotation.Nullable List shapes) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java index 7711c391b4d1..9d987a2fde44 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -219,8 +219,12 @@ public void setArrayEnum(@javax.annotation.Nullable List arrayEnu * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumStringDiscriminator.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumStringDiscriminator.java index 5a08fd11069c..f0ea27f45c23 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumStringDiscriminator.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumStringDiscriminator.java @@ -134,8 +134,12 @@ public void setEnumStrType(@javax.annotation.Nonnull EnumStrTypeEnum enumStrType * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java index d1ce406ef6f3..0f804dabea69 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java @@ -547,8 +547,12 @@ public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnum * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EquilateralTriangle.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EquilateralTriangle.java index 402ba2e2337f..f6724a1e620d 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EquilateralTriangle.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EquilateralTriangle.java @@ -105,8 +105,12 @@ public void setTriangleType(@javax.annotation.Nonnull String triangleType) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 4cd28fa6b419..7dca5e670833 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -116,8 +116,12 @@ public void setFiles(@javax.annotation.Nullable List files) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Foo.java index e05595bfd10c..f8ee86073c32 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Foo.java @@ -81,8 +81,12 @@ public void setBar(@javax.annotation.Nullable String bar) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index f99707f65896..9d93dc9dc699 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -82,8 +82,12 @@ public void setString(@javax.annotation.Nullable Foo string) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java index 6c0f4ca14f16..71af73f37fe2 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java @@ -480,8 +480,12 @@ public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String p * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FreeFormObjectTestClass.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FreeFormObjectTestClass.java index cf330a162e6b..81c4dcb120b3 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FreeFormObjectTestClass.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FreeFormObjectTestClass.java @@ -106,8 +106,12 @@ public void setProperties(@javax.annotation.Nullable FreeFormObjectTestClassProp * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/GrandparentAnimal.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/GrandparentAnimal.java index 3a4e2602ea8c..69b97a36b038 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/GrandparentAnimal.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/GrandparentAnimal.java @@ -82,8 +82,12 @@ public void setPetType(@javax.annotation.Nonnull String petType) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index d708eb1fbe8b..3acee04481b3 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -98,8 +98,12 @@ public String getFoo() { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HealthCheckResult.java index c630f5be8890..79f8b2ea5ff7 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -82,8 +82,12 @@ public void setNullableMessage(@javax.annotation.Nullable String nullableMessage * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java index a3254fca77f8..4a3f4201dbff 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java @@ -239,8 +239,12 @@ public void setIndirectMap(@javax.annotation.Nullable Map indir * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index c562240b9e04..a2dbbcfb5347 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -142,8 +142,12 @@ public void setMap(@javax.annotation.Nullable Map map) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Model200Response.java index 897b5dd77593..023fc659eb8c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Model200Response.java @@ -105,8 +105,12 @@ public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 2ba923858c27..e5346bd42b58 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -129,8 +129,12 @@ public void setMessage(@javax.annotation.Nullable String message) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelFile.java index fd267cc5832f..b11a6ff79b61 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelFile.java @@ -81,8 +81,12 @@ public void setSourceURI(@javax.annotation.Nullable String sourceURI) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelList.java index 706fc9c89941..4f0821a1c3e7 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelList.java @@ -81,8 +81,12 @@ public void set123list(@javax.annotation.Nullable String _123list) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelReturn.java index fc766fc773f3..645dfe05b2d0 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -81,8 +81,12 @@ public void setReturn(@javax.annotation.Nullable Integer _return) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelWithOneOfAnyOfProperties.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelWithOneOfAnyOfProperties.java index 693e75bd1033..5c89ba224605 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelWithOneOfAnyOfProperties.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelWithOneOfAnyOfProperties.java @@ -107,8 +107,12 @@ public void setAnyofProp(@javax.annotation.Nullable ArrayAnyOf anyofProp) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Name.java index f8fab499afee..20c67908d74e 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Name.java @@ -146,8 +146,12 @@ public Integer get123number() { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NestedArrayWithDefaultValues.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NestedArrayWithDefaultValues.java index a2eb060cb495..f135c4e53b58 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NestedArrayWithDefaultValues.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NestedArrayWithDefaultValues.java @@ -91,8 +91,12 @@ public void setNestedArray(@javax.annotation.Nullable List> nestedA * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPet.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPet.java index 13cb1ab43a97..382498eefbba 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPet.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPet.java @@ -347,8 +347,12 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllof.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllof.java index db956d40b98b..5db17378d8dd 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllof.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllof.java @@ -130,8 +130,12 @@ public void setCategoryTag(@javax.annotation.Nullable NewPetCategoryInlineAllofA * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllofAllOfCategoryTag.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllofAllOfCategoryTag.java index 5cba8caee92e..aa07226bcd8d 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllofAllOfCategoryTag.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllofAllOfCategoryTag.java @@ -105,8 +105,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableClass.java index 8ce75d46a2b3..bebb71438345 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableClass.java @@ -401,8 +401,12 @@ public void setObjectItemsNullable(@javax.annotation.Nullable Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableFieldsValue.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableFieldsValue.java index ac04332beab1..32a210d5b7ac 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableFieldsValue.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableFieldsValue.java @@ -105,8 +105,12 @@ public void setAfter(@javax.annotation.Nullable String after) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberOnly.java index 7634cbac976e..47afcda20f64 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -82,8 +82,12 @@ public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index baf7c0cb9b1a..83516730f88f 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -180,8 +180,12 @@ public void setBars(@javax.annotation.Nullable List bars) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java index 2f43c3162315..330cd0f11412 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java @@ -256,8 +256,12 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/OuterComposite.java index adc22d797f1c..280130d25f5c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -130,8 +130,12 @@ public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ParentPet.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ParentPet.java index 281f4083faac..6f9154f2aae6 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ParentPet.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ParentPet.java @@ -59,8 +59,12 @@ public ParentPet() { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java index c4c6e0308e47..d5d5ebfdf103 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java @@ -275,8 +275,12 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetComposition.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetComposition.java index 4bb0bee26298..c7bcd35671a8 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetComposition.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetComposition.java @@ -275,8 +275,12 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetRef.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetRef.java index f0f3ca7864f2..deca2dbc4e06 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetRef.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetRef.java @@ -275,8 +275,12 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetUsingAllOf.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetUsingAllOf.java index 55db581ae0c2..64ebfde420a0 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetUsingAllOf.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetUsingAllOf.java @@ -275,8 +275,12 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetWithRequiredTags.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetWithRequiredTags.java index 87b42de274bc..35a525bb4a42 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetWithRequiredTags.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetWithRequiredTags.java @@ -275,8 +275,12 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PropertyNameCollision.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PropertyNameCollision.java index 58025299dffc..c05a019629ac 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PropertyNameCollision.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PropertyNameCollision.java @@ -129,8 +129,12 @@ public void setTypeWithUnderscore(@javax.annotation.Nullable String typeWithUnde * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java index 2b70e7229f13..5fc588799c07 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java @@ -81,8 +81,12 @@ public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralT * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 3f48f2485a10..1c8cf941c513 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -104,8 +104,12 @@ public void setBaz(@javax.annotation.Nullable String baz) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/RequiredNullableBody.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/RequiredNullableBody.java index d8894a3e8e25..243edfaef15d 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/RequiredNullableBody.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/RequiredNullableBody.java @@ -499,8 +499,12 @@ public void setCustomEnum(@javax.annotation.Nullable CustomEnumEnum customEnum) * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ScaleneTriangle.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ScaleneTriangle.java index 31f4cf507507..c43d705ad41a 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ScaleneTriangle.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ScaleneTriangle.java @@ -105,8 +105,12 @@ public void setTriangleType(@javax.annotation.Nonnull String triangleType) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeInterface.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeInterface.java index 2c78d7a8f8b0..8088ff25091d 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeInterface.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeInterface.java @@ -81,8 +81,12 @@ public void setShapeType(@javax.annotation.Nonnull String shapeType) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java index eb3d55daa895..eab1fc509440 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java @@ -105,8 +105,12 @@ public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralT * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SpecialModelName.java index 5e38c84a6132..d164198f031a 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -105,8 +105,12 @@ public void setSpecialModelName(@javax.annotation.Nullable String specialModelNa * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java index fdc02279d383..908c00b2e6c2 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java @@ -105,8 +105,12 @@ public void setName(@javax.annotation.Nullable String name) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index ab2bf7e62483..f7fd49338978 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -81,8 +81,12 @@ public void setSomeProperty(@javax.annotation.Nullable String someProperty) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TriangleInterface.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TriangleInterface.java index c4a614eec44f..367ec8f3b301 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TriangleInterface.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TriangleInterface.java @@ -81,8 +81,12 @@ public void setTriangleType(@javax.annotation.Nonnull String triangleType) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/User.java index 336da869bbbc..6ab1e78eadc1 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/User.java @@ -346,8 +346,12 @@ public void setAnyTypePropNullable(@javax.annotation.Nullable Object anyTypeProp * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Variable.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Variable.java index 234f23cf6f7e..01dcf1fb8d38 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Variable.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Variable.java @@ -106,8 +106,12 @@ public void setValue(@javax.annotation.Nonnull Value value) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Whale.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Whale.java index 6541a14f1f56..8b0f020e19aa 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Whale.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Whale.java @@ -129,8 +129,12 @@ public void setClassName(@javax.annotation.Nonnull String className) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Zebra.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Zebra.java index 908b216dc8d8..32894f88080d 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Zebra.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Zebra.java @@ -159,8 +159,12 @@ public void setClassName(@javax.annotation.Nonnull String className) { * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. + * + * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding + * it from gson's reflection keeps an allOf child (which also inherits the field from its + * parent) from declaring two JSON fields of one name. */ - private Map additionalProperties; + private transient Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. From 20b5c480f9b9cdfbd765b5efeac4f0b7ddb2efb3 Mon Sep 17 00:00:00 2001 From: Wiebren Braakman Date: Tue, 8 Sep 2026 11:40:18 +0200 Subject: [PATCH 2/3] [java] fix: keep the bag visible on parents that have no adapter of their own Review caught that models with children get no CustomTypeAdapterFactory ({{^hasChildren}} in pojo.mustache), so a transient field on such a parent silently dropped its bag - reflection was its only carrier. The transient modifier is now gated the same way the factory is: parents with children keep the field visible (their reflective round-trip is unchanged), and an allOf child's transient declaration shadows it, so the duplicate-field conflict still cannot arise. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01GcwZ1arjLZNpetHz2a3TJz --- .../okhttp-gson/additional_properties.mustache | 10 ++++++---- .../codegen/java/JavaClientCodegenTest.java | 11 ++++++++--- .../openapitools/client/model/AllOfSimpleModel.java | 8 +++++--- .../java/org/openapitools/client/model/Animal.java | 10 ++++++---- .../org/openapitools/client/model/AnyTypeTest.java | 8 +++++--- .../org/openapitools/client/model/ArrayOfSameRef.java | 8 +++++--- .../main/java/org/openapitools/client/model/Cat.java | 8 +++++--- .../java/org/openapitools/client/model/Category.java | 8 +++++--- .../openapitools/client/model/CircularReference1.java | 8 +++++--- .../openapitools/client/model/CircularReference2.java | 8 +++++--- .../openapitools/client/model/CircularReference3.java | 8 +++++--- .../main/java/org/openapitools/client/model/Dog.java | 8 +++++--- .../model/FakeWebhooksSourcesDeletedPostRequest.java | 8 +++++--- .../FakeWebhooksSourcesDeletedPostRequestEvent.java | 8 +++++--- .../openapitools/client/model/ModelApiResponse.java | 8 +++++--- .../java/org/openapitools/client/model/Order.java | 8 +++++--- .../main/java/org/openapitools/client/model/Pet.java | 8 +++++--- .../client/model/PetWithTypesObjectNullAndRef.java | 8 +++++--- .../model/SelfReferenceAdditionalProperties.java | 8 +++++--- .../client/model/SimpleModelWithArrayProperty.java | 8 +++++--- .../main/java/org/openapitools/client/model/Tag.java | 8 +++++--- .../main/java/org/openapitools/client/model/User.java | 8 +++++--- .../java/org/openapitools/client/model/Category.java | 8 +++++--- .../openapitools/client/model/ModelApiResponse.java | 8 +++++--- .../java/org/openapitools/client/model/Order.java | 8 +++++--- .../main/java/org/openapitools/client/model/Pet.java | 8 +++++--- .../main/java/org/openapitools/client/model/Tag.java | 8 +++++--- .../main/java/org/openapitools/client/model/User.java | 8 +++++--- .../client/model/AdditionalPropertiesAnyType.java | 8 +++++--- .../client/model/AdditionalPropertiesArray.java | 8 +++++--- .../client/model/AdditionalPropertiesBoolean.java | 8 +++++--- .../client/model/AdditionalPropertiesInteger.java | 8 +++++--- .../client/model/AdditionalPropertiesNumber.java | 8 +++++--- .../client/model/AdditionalPropertiesObject.java | 8 +++++--- .../client/model/AdditionalPropertiesString.java | 8 +++++--- .../java/org/openapitools/client/model/Category.java | 8 +++++--- .../openapitools/client/model/ModelApiResponse.java | 8 +++++--- .../java/org/openapitools/client/model/Order.java | 8 +++++--- .../main/java/org/openapitools/client/model/Pet.java | 8 +++++--- .../main/java/org/openapitools/client/model/Tag.java | 8 +++++--- .../main/java/org/openapitools/client/model/User.java | 8 +++++--- .../java/org/openapitools/client/model/Category.java | 8 +++++--- .../openapitools/client/model/ModelApiResponse.java | 8 +++++--- .../java/org/openapitools/client/model/Order.java | 8 +++++--- .../main/java/org/openapitools/client/model/Pet.java | 8 +++++--- .../client/model/PetWithRequiredNullableCases1.java | 8 +++++--- .../client/model/PetWithRequiredNullableCases2.java | 8 +++++--- .../main/java/org/openapitools/client/model/Tag.java | 8 +++++--- .../main/java/org/openapitools/client/model/User.java | 8 +++++--- .../client/model/AdditionalPropertiesAnyType.java | 8 +++++--- .../client/model/AdditionalPropertiesArray.java | 8 +++++--- .../client/model/AdditionalPropertiesBoolean.java | 8 +++++--- .../client/model/AdditionalPropertiesInteger.java | 8 +++++--- .../client/model/AdditionalPropertiesNumber.java | 8 +++++--- .../client/model/AdditionalPropertiesObject.java | 8 +++++--- .../client/model/AdditionalPropertiesString.java | 8 +++++--- .../java/org/openapitools/client/model/Category.java | 8 +++++--- .../openapitools/client/model/ModelApiResponse.java | 8 +++++--- .../java/org/openapitools/client/model/Order.java | 8 +++++--- .../main/java/org/openapitools/client/model/Pet.java | 8 +++++--- .../main/java/org/openapitools/client/model/Tag.java | 8 +++++--- .../main/java/org/openapitools/client/model/User.java | 8 +++++--- .../java/org/openapitools/client/model/Category.java | 8 +++++--- .../openapitools/client/model/ModelApiResponse.java | 8 +++++--- .../java/org/openapitools/client/model/Order.java | 8 +++++--- .../main/java/org/openapitools/client/model/Pet.java | 8 +++++--- .../main/java/org/openapitools/client/model/Tag.java | 8 +++++--- .../main/java/org/openapitools/client/model/User.java | 8 +++++--- .../client/model/AdditionalPropertiesClass.java | 8 +++++--- .../client/model/AllOfModelArrayAnyOf.java | 8 +++++--- .../model/AllOfModelArrayAnyOfAllOfAttributes.java | 8 +++++--- .../AllOfModelArrayAnyOfAllOfLinkListColumn1.java | 8 +++++--- .../openapitools/client/model/AllOfRefToDouble.java | 8 +++++--- .../openapitools/client/model/AllOfRefToFloat.java | 8 +++++--- .../org/openapitools/client/model/AllOfRefToLong.java | 8 +++++--- .../java/org/openapitools/client/model/Animal.java | 10 ++++++---- .../java/org/openapitools/client/model/Apple.java | 8 +++++--- .../org/openapitools/client/model/ArrayDefault.java | 8 +++++--- .../client/model/ArrayOfArrayOfNumberOnly.java | 8 +++++--- .../openapitools/client/model/ArrayOfInlineAllOf.java | 8 +++++--- .../ArrayOfInlineAllOfArrayAllofDogPropertyInner.java | 8 +++++--- .../openapitools/client/model/ArrayOfNumberOnly.java | 8 +++++--- .../java/org/openapitools/client/model/ArrayTest.java | 8 +++++--- .../java/org/openapitools/client/model/Banana.java | 8 +++++--- .../java/org/openapitools/client/model/BasquePig.java | 8 +++++--- .../org/openapitools/client/model/Capitalization.java | 8 +++++--- .../main/java/org/openapitools/client/model/Cat.java | 8 +++++--- .../java/org/openapitools/client/model/Category.java | 8 +++++--- .../org/openapitools/client/model/ClassModel.java | 8 +++++--- .../java/org/openapitools/client/model/Client.java | 8 +++++--- .../client/model/ComplexQuadrilateral.java | 8 +++++--- .../java/org/openapitools/client/model/DanishPig.java | 8 +++++--- .../openapitools/client/model/DeprecatedObject.java | 8 +++++--- .../main/java/org/openapitools/client/model/Dog.java | 8 +++++--- .../java/org/openapitools/client/model/Drawing.java | 8 +++++--- .../org/openapitools/client/model/EnumArrays.java | 8 +++++--- .../client/model/EnumStringDiscriminator.java | 8 +++++--- .../java/org/openapitools/client/model/EnumTest.java | 8 +++++--- .../client/model/EquilateralTriangle.java | 8 +++++--- .../client/model/FileSchemaTestClass.java | 8 +++++--- .../main/java/org/openapitools/client/model/Foo.java | 8 +++++--- .../client/model/FooGetDefaultResponse.java | 8 +++++--- .../org/openapitools/client/model/FormatTest.java | 8 +++++--- .../client/model/FreeFormObjectTestClass.java | 8 +++++--- .../openapitools/client/model/GrandparentAnimal.java | 10 ++++++---- .../openapitools/client/model/HasOnlyReadOnly.java | 8 +++++--- .../openapitools/client/model/HealthCheckResult.java | 8 +++++--- .../java/org/openapitools/client/model/MapTest.java | 8 +++++--- .../MixedPropertiesAndAdditionalPropertiesClass.java | 8 +++++--- .../openapitools/client/model/Model200Response.java | 8 +++++--- .../openapitools/client/model/ModelApiResponse.java | 8 +++++--- .../java/org/openapitools/client/model/ModelFile.java | 8 +++++--- .../java/org/openapitools/client/model/ModelList.java | 8 +++++--- .../org/openapitools/client/model/ModelReturn.java | 8 +++++--- .../client/model/ModelWithOneOfAnyOfProperties.java | 8 +++++--- .../main/java/org/openapitools/client/model/Name.java | 8 +++++--- .../client/model/NestedArrayWithDefaultValues.java | 8 +++++--- .../java/org/openapitools/client/model/NewPet.java | 8 +++++--- .../client/model/NewPetCategoryInlineAllof.java | 8 +++++--- .../NewPetCategoryInlineAllofAllOfCategoryTag.java | 8 +++++--- .../org/openapitools/client/model/NullableClass.java | 8 +++++--- .../client/model/NullableFieldsValue.java | 8 +++++--- .../org/openapitools/client/model/NumberOnly.java | 8 +++++--- .../client/model/ObjectWithDeprecatedFields.java | 8 +++++--- .../java/org/openapitools/client/model/Order.java | 8 +++++--- .../org/openapitools/client/model/OuterComposite.java | 8 +++++--- .../java/org/openapitools/client/model/ParentPet.java | 8 +++++--- .../main/java/org/openapitools/client/model/Pet.java | 8 +++++--- .../org/openapitools/client/model/PetComposition.java | 8 +++++--- .../java/org/openapitools/client/model/PetRef.java | 8 +++++--- .../org/openapitools/client/model/PetUsingAllOf.java | 8 +++++--- .../client/model/PetWithRequiredTags.java | 8 +++++--- .../client/model/PropertyNameCollision.java | 8 +++++--- .../client/model/QuadrilateralInterface.java | 8 +++++--- .../org/openapitools/client/model/ReadOnlyFirst.java | 8 +++++--- .../client/model/RequiredNullableBody.java | 8 +++++--- .../openapitools/client/model/ScaleneTriangle.java | 8 +++++--- .../org/openapitools/client/model/ShapeInterface.java | 8 +++++--- .../client/model/SimpleQuadrilateral.java | 8 +++++--- .../openapitools/client/model/SpecialModelName.java | 8 +++++--- .../main/java/org/openapitools/client/model/Tag.java | 8 +++++--- ...TestInlineFreeformAdditionalPropertiesRequest.java | 8 +++++--- .../openapitools/client/model/TriangleInterface.java | 8 +++++--- .../main/java/org/openapitools/client/model/User.java | 8 +++++--- .../java/org/openapitools/client/model/Variable.java | 8 +++++--- .../java/org/openapitools/client/model/Whale.java | 8 +++++--- .../java/org/openapitools/client/model/Zebra.java | 8 +++++--- 147 files changed, 742 insertions(+), 445 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/additional_properties.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/additional_properties.mustache index bc7ab6bcc49f..ff36d2a78376 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/additional_properties.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/additional_properties.mustache @@ -4,11 +4,13 @@ * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ - private transient Map additionalProperties; + private {{^hasChildren}}transient {{/hasChildren}}Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaClientCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaClientCodegenTest.java index e5cbdffa725f..59ea21cac2b6 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaClientCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaClientCodegenTest.java @@ -2044,14 +2044,19 @@ public void testAdditionalPropertiesFieldIsTransientForGson() { // gson's reflective adapter refuses a class with two JSON fields of one name; without // `transient` an allOf child declares additionalProperties itself and inherits it too, // making it undeserializable ("declares multiple JSON fields named - // 'additionalProperties'"). The bag is read and written by the model's own - // TypeAdapterFactory, never by gson reflection, so hiding the field changes nothing else. + // 'additionalProperties'"). The child's bag is read and written by its own + // TypeAdapterFactory, so hiding the field from reflection changes nothing else. assertThat(output.resolve("src/main/java/xyz/abcdef/model/Child.java")) .content() .contains("public class Child extends Person {") .contains("private transient Map additionalProperties;"); + // a parent with children gets no TypeAdapterFactory of its own ({{^hasChildren}} in + // pojo.mustache), so its field stays visible to reflection - the child's transient + // declaration shadows it, and no duplicate JSON field arises assertThat(output.resolve("src/main/java/xyz/abcdef/model/Person.java")) - .content().contains("private transient Map additionalProperties;"); + .content().contains("private Map additionalProperties;"); + assertThat(output.resolve("src/main/java/xyz/abcdef/model/Person.java")) + .content().doesNotContain("private transient Map additionalProperties;"); } @Test diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AllOfSimpleModel.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AllOfSimpleModel.java index 5d4fe2d2cbc5..c34f2e2222b6 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AllOfSimpleModel.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AllOfSimpleModel.java @@ -92,9 +92,11 @@ public void setArrayOfStrings(@javax.annotation.Nonnull List arrayOfStri * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Animal.java index e56a38fef62a..5f14caf7f41c 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Animal.java @@ -107,11 +107,13 @@ public void setColor(@javax.annotation.Nullable String color) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ - private transient Map additionalProperties; + private Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AnyTypeTest.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AnyTypeTest.java index 225929587c5d..b4a189cd5e51 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AnyTypeTest.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AnyTypeTest.java @@ -149,9 +149,11 @@ public void setRefArrayPrefixItems(@javax.annotation.Nullable List refAr * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ArrayOfSameRef.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ArrayOfSameRef.java index 68a4c60ebfc4..5c97ecb380d2 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ArrayOfSameRef.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ArrayOfSameRef.java @@ -157,9 +157,11 @@ public void setArrayFooThree(@javax.annotation.Nullable List arrayFooThree) * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Cat.java index da720a5cc023..2158a1d6457e 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Cat.java @@ -84,9 +84,11 @@ public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Category.java index 459b4d7b0738..dd60cba63fa6 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Category.java @@ -106,9 +106,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference1.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference1.java index 611eb3485ffd..597356059272 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference1.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference1.java @@ -83,9 +83,11 @@ public void setProp1(@javax.annotation.Nullable CircularReference2 prop1) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference2.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference2.java index 1ea2cf33ea89..5b1293626d34 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference2.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference2.java @@ -83,9 +83,11 @@ public void setProp1(@javax.annotation.Nullable CircularReference3 prop1) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference3.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference3.java index c54edc1577b3..3530d98fbbc6 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference3.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference3.java @@ -83,9 +83,11 @@ public void setProp1(@javax.annotation.Nullable CircularReference1 prop1) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Dog.java index b17a40b433dd..fffdb5c7a786 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Dog.java @@ -84,9 +84,11 @@ public void setBreed(@javax.annotation.Nullable String breed) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/FakeWebhooksSourcesDeletedPostRequest.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/FakeWebhooksSourcesDeletedPostRequest.java index fdca837d59e6..7b5865db10da 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/FakeWebhooksSourcesDeletedPostRequest.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/FakeWebhooksSourcesDeletedPostRequest.java @@ -132,9 +132,11 @@ public void setEvent(@javax.annotation.Nonnull FakeWebhooksSourcesDeletedPostReq * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/FakeWebhooksSourcesDeletedPostRequestEvent.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/FakeWebhooksSourcesDeletedPostRequestEvent.java index 3ced5fb22393..08a81a790809 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/FakeWebhooksSourcesDeletedPostRequestEvent.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/FakeWebhooksSourcesDeletedPostRequestEvent.java @@ -82,9 +82,11 @@ public void setEventId(@javax.annotation.Nonnull String eventId) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ModelApiResponse.java index f8c026e6e65c..ceee533075af 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -130,9 +130,11 @@ public void setMessage(@javax.annotation.Nullable String message) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Order.java index 6df39352acd2..a7cb9fd52427 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Order.java @@ -257,9 +257,11 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Pet.java index e9a3ccbf125b..bc86ac895264 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Pet.java @@ -281,9 +281,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/PetWithTypesObjectNullAndRef.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/PetWithTypesObjectNullAndRef.java index 78130537b697..2d90a97c5675 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/PetWithTypesObjectNullAndRef.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/PetWithTypesObjectNullAndRef.java @@ -108,9 +108,11 @@ public void setSecondProperty(@javax.annotation.Nullable Object secondProperty) * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceAdditionalProperties.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceAdditionalProperties.java index c3f78f6260fa..5afe307e0cf0 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceAdditionalProperties.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceAdditionalProperties.java @@ -82,9 +82,11 @@ public void setDummy(@javax.annotation.Nullable String dummy) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SimpleModelWithArrayProperty.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SimpleModelWithArrayProperty.java index 8270f89787ae..2a914115702e 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SimpleModelWithArrayProperty.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SimpleModelWithArrayProperty.java @@ -92,9 +92,11 @@ public void setArrayOfStrings(@javax.annotation.Nonnull List arrayOfStri * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Tag.java index 46c248fc8886..3c35fe9b713c 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Tag.java @@ -106,9 +106,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/User.java index 6c96cfe6f0a1..6a14a829f359 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/User.java @@ -250,9 +250,11 @@ public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Category.java index 459b4d7b0738..dd60cba63fa6 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Category.java @@ -106,9 +106,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/ModelApiResponse.java index f8c026e6e65c..ceee533075af 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -130,9 +130,11 @@ public void setMessage(@javax.annotation.Nullable String message) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Order.java index 6df39352acd2..a7cb9fd52427 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Order.java @@ -257,9 +257,11 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Pet.java index e9a3ccbf125b..bc86ac895264 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Pet.java @@ -281,9 +281,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Tag.java index 46c248fc8886..3c35fe9b713c 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Tag.java @@ -106,9 +106,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/User.java index 6c96cfe6f0a1..6a14a829f359 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/User.java @@ -250,9 +250,11 @@ public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 9876c7aa755b..0340f9e3c080 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -82,9 +82,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 304d7a3f9bf1..ec99898bae06 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -83,9 +83,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 5807c91fd8ef..91a4c6743225 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -82,9 +82,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index b45606dc3434..0b7c2694e0a4 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -82,9 +82,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index a7a6dfd5d109..df5f5b5de05f 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -83,9 +83,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index a034f5ab4eb8..8eb44fea5800 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -83,9 +83,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index cd4230aaacbc..c94ffda35e26 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -82,9 +82,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Category.java index 459b4d7b0738..dd60cba63fa6 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Category.java @@ -106,9 +106,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java index f8c026e6e65c..ceee533075af 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -130,9 +130,11 @@ public void setMessage(@javax.annotation.Nullable String message) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Order.java index 6df39352acd2..a7cb9fd52427 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Order.java @@ -257,9 +257,11 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Pet.java index e9a3ccbf125b..bc86ac895264 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Pet.java @@ -281,9 +281,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Tag.java index 46c248fc8886..3c35fe9b713c 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Tag.java @@ -106,9 +106,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/User.java index 6c96cfe6f0a1..6a14a829f359 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/User.java @@ -250,9 +250,11 @@ public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Category.java index 459b4d7b0738..dd60cba63fa6 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Category.java @@ -106,9 +106,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/ModelApiResponse.java index f8c026e6e65c..ceee533075af 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -130,9 +130,11 @@ public void setMessage(@javax.annotation.Nullable String message) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Order.java index 6df39352acd2..a7cb9fd52427 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Order.java @@ -257,9 +257,11 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Pet.java index e9a3ccbf125b..bc86ac895264 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Pet.java @@ -281,9 +281,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases1.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases1.java index b587dad3e0af..fdca1d47361b 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases1.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases1.java @@ -282,9 +282,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases2.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases2.java index 9e91cf40351b..34214110665c 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases2.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases2.java @@ -281,9 +281,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Tag.java index 46c248fc8886..3c35fe9b713c 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Tag.java @@ -106,9 +106,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/User.java index 6c96cfe6f0a1..6a14a829f359 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/User.java @@ -250,9 +250,11 @@ public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index ca33f710428b..c1d8ede19dbe 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -84,9 +84,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index ee004af7c5ed..f28b5bb003f4 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -85,9 +85,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 1e1351b418b4..d217051d708f 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -84,9 +84,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index c896456d007a..7709024e8941 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -84,9 +84,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index ededc4878db1..58a44141a226 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -85,9 +85,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 903698c69200..45e555e048cf 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -85,9 +85,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 9ea234e34cf7..7e746cea9750 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -84,9 +84,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Category.java index 56843a3561f2..768d95929022 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Category.java @@ -111,9 +111,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java index bf51d0d88f70..aa7221b37d47 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -136,9 +136,11 @@ public void setMessage(@javax.annotation.Nullable String message) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Order.java index 53480a05aaa9..2c865558e2a5 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Order.java @@ -266,9 +266,11 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Pet.java index 7b1af2bce7ca..ff1129918f42 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Pet.java @@ -290,9 +290,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Tag.java index 0640087d8806..8c77f5fbaeea 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Tag.java @@ -111,9 +111,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/User.java index a61f2898ca9a..e352432535ef 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/User.java @@ -261,9 +261,11 @@ public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Category.java index f52f561f4ced..582c8342b1a2 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Category.java @@ -110,9 +110,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 0c025b968f86..199e098924c6 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -135,9 +135,11 @@ public void setMessage(@javax.annotation.Nullable String message) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Order.java index a543c0264cd8..ca93963c1fbe 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Order.java @@ -265,9 +265,11 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Pet.java index 5b296794baf2..421a270a01eb 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Pet.java @@ -289,9 +289,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Tag.java index 98f8c53e7d32..4210fec5b81c 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Tag.java @@ -110,9 +110,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/User.java index 1adc9928bc1d..6e1e4dd9a16c 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/User.java @@ -260,9 +260,11 @@ public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index cf8873f0b1c4..c821207673f6 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -285,9 +285,11 @@ public void setMapWithUndeclaredPropertiesString(@javax.annotation.Nullable Map< * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOf.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOf.java index d768d1368e51..b95a7cce3106 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOf.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOf.java @@ -156,9 +156,11 @@ public void setAttributes(@javax.annotation.Nullable AllOfModelArrayAnyOfAllOfAt * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfAttributes.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfAttributes.java index d455cb80e3e6..e827f0df8a95 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfAttributes.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfAttributes.java @@ -83,9 +83,11 @@ public void setC(@javax.annotation.Nullable AllOfModelArrayAnyOfAllOfAttributesC * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfLinkListColumn1.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfLinkListColumn1.java index f4438640931c..9781cab6a31e 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfLinkListColumn1.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfLinkListColumn1.java @@ -93,9 +93,11 @@ public void setValue(@javax.annotation.Nonnull List additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToDouble.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToDouble.java index d072ee2b5879..d439c3017d6b 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToDouble.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToDouble.java @@ -82,9 +82,11 @@ public void setHeight(@javax.annotation.Nullable Double height) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToFloat.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToFloat.java index ebf3bde9530d..8b4bf3d0bd54 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToFloat.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToFloat.java @@ -82,9 +82,11 @@ public void setWeight(@javax.annotation.Nullable Float weight) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToLong.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToLong.java index ab64e0c00d04..97b134d9be63 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToLong.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToLong.java @@ -82,9 +82,11 @@ public void setId(@javax.annotation.Nullable Long id) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Animal.java index 116f8d0373e7..6030ad017475 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Animal.java @@ -107,11 +107,13 @@ public void setColor(@javax.annotation.Nullable String color) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ - private transient Map additionalProperties; + private Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Apple.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Apple.java index 39dbf71e4fcb..4289fbac3191 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Apple.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Apple.java @@ -106,9 +106,11 @@ public void setOrigin(@javax.annotation.Nullable String origin) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayDefault.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayDefault.java index c4006d6844f4..8e5932c9d9fc 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayDefault.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayDefault.java @@ -124,9 +124,11 @@ public void setWithoutDefault(@javax.annotation.Nullable List withoutDef * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 9ca9f1b9f236..3772a69023f9 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -93,9 +93,11 @@ public void setArrayArrayNumber(@javax.annotation.Nullable List * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOf.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOf.java index 816a707891bb..3ccce06bd6ee 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOf.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOf.java @@ -141,9 +141,11 @@ public void setArrayAllofDogProperty(@javax.annotation.Nullable List additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOfArrayAllofDogPropertyInner.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOfArrayAllofDogPropertyInner.java index 133d609c3ef9..a5b699445c1b 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOfArrayAllofDogPropertyInner.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOfArrayAllofDogPropertyInner.java @@ -106,9 +106,11 @@ public void setColor(@javax.annotation.Nullable String color) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index e1630721266f..d29bd493dbbb 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -93,9 +93,11 @@ public void setArrayNumber(@javax.annotation.Nullable List arrayNumb * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayTest.java index ae5caade1d7f..465a0d74f41b 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -157,9 +157,11 @@ public void setArrayArrayOfModel(@javax.annotation.Nullable List additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Banana.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Banana.java index a030b0367e0c..365a8e0c1762 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Banana.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Banana.java @@ -83,9 +83,11 @@ public void setLengthCm(@javax.annotation.Nullable BigDecimal lengthCm) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BasquePig.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BasquePig.java index 5d2cb329ea47..bb7e341aa34d 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BasquePig.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BasquePig.java @@ -82,9 +82,11 @@ public void setClassName(@javax.annotation.Nonnull String className) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Capitalization.java index 67c8fac302a2..c2a5845a4b71 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Capitalization.java @@ -202,9 +202,11 @@ public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Cat.java index ab37ebf5ced2..9c3bf7c68501 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Cat.java @@ -85,9 +85,11 @@ public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java index 23eaf304eb4a..5d5a92d97196 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java @@ -106,9 +106,11 @@ public void setName(@javax.annotation.Nonnull String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ClassModel.java index 1b7a342f182e..58b068f75bb4 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ClassModel.java @@ -82,9 +82,11 @@ public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Client.java index d939955b247e..a2aa92ef56f1 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Client.java @@ -82,9 +82,11 @@ public void setClient(@javax.annotation.Nullable String client) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java index 22bc55405e8b..89e357987c82 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java @@ -106,9 +106,11 @@ public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralT * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DanishPig.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DanishPig.java index 0d90bddab417..3f0c45063464 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DanishPig.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DanishPig.java @@ -82,9 +82,11 @@ public void setClassName(@javax.annotation.Nonnull String className) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 14afe777b948..7e6c7e34df5f 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -84,9 +84,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Dog.java index 6ad858a80e1f..9e1901af1390 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Dog.java @@ -84,9 +84,11 @@ public void setBreed(@javax.annotation.Nullable String breed) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Drawing.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Drawing.java index 94f82be37594..4a144a15cfd7 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Drawing.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Drawing.java @@ -169,9 +169,11 @@ public void setShapes(@javax.annotation.Nullable List shapes) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java index 9d987a2fde44..267ad6529565 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -220,9 +220,11 @@ public void setArrayEnum(@javax.annotation.Nullable List arrayEnu * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumStringDiscriminator.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumStringDiscriminator.java index f0ea27f45c23..9320830f0b83 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumStringDiscriminator.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumStringDiscriminator.java @@ -135,9 +135,11 @@ public void setEnumStrType(@javax.annotation.Nonnull EnumStrTypeEnum enumStrType * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java index 0f804dabea69..5702a07257fe 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java @@ -548,9 +548,11 @@ public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnum * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EquilateralTriangle.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EquilateralTriangle.java index f6724a1e620d..acdd79317521 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EquilateralTriangle.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EquilateralTriangle.java @@ -106,9 +106,11 @@ public void setTriangleType(@javax.annotation.Nonnull String triangleType) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 7dca5e670833..903f7a9f2280 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -117,9 +117,11 @@ public void setFiles(@javax.annotation.Nullable List files) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Foo.java index f8ee86073c32..7921b469c249 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Foo.java @@ -82,9 +82,11 @@ public void setBar(@javax.annotation.Nullable String bar) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 9d93dc9dc699..1abb98a1bced 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -83,9 +83,11 @@ public void setString(@javax.annotation.Nullable Foo string) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java index 71af73f37fe2..d47d3fac4967 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java @@ -481,9 +481,11 @@ public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String p * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FreeFormObjectTestClass.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FreeFormObjectTestClass.java index 81c4dcb120b3..83c29da2df00 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FreeFormObjectTestClass.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FreeFormObjectTestClass.java @@ -107,9 +107,11 @@ public void setProperties(@javax.annotation.Nullable FreeFormObjectTestClassProp * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/GrandparentAnimal.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/GrandparentAnimal.java index 69b97a36b038..8143f51d14af 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/GrandparentAnimal.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/GrandparentAnimal.java @@ -83,11 +83,13 @@ public void setPetType(@javax.annotation.Nonnull String petType) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ - private transient Map additionalProperties; + private Map additionalProperties; /** * Set the additional (undeclared) property with the specified name and value. diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 3acee04481b3..2c1bbbc9b8ed 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -99,9 +99,11 @@ public String getFoo() { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 79f8b2ea5ff7..336db036cf6e 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -83,9 +83,11 @@ public void setNullableMessage(@javax.annotation.Nullable String nullableMessage * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java index 4a3f4201dbff..de82a1343e6d 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java @@ -240,9 +240,11 @@ public void setIndirectMap(@javax.annotation.Nullable Map indir * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index a2dbbcfb5347..ec2fe8a5f6bd 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -143,9 +143,11 @@ public void setMap(@javax.annotation.Nullable Map map) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Model200Response.java index 023fc659eb8c..7949f6da3802 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Model200Response.java @@ -106,9 +106,11 @@ public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelApiResponse.java index e5346bd42b58..13460a16a894 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -130,9 +130,11 @@ public void setMessage(@javax.annotation.Nullable String message) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelFile.java index b11a6ff79b61..68bd359adf51 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelFile.java @@ -82,9 +82,11 @@ public void setSourceURI(@javax.annotation.Nullable String sourceURI) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelList.java index 4f0821a1c3e7..5492197ec093 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelList.java @@ -82,9 +82,11 @@ public void set123list(@javax.annotation.Nullable String _123list) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelReturn.java index 645dfe05b2d0..883fbdf5434b 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -82,9 +82,11 @@ public void setReturn(@javax.annotation.Nullable Integer _return) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelWithOneOfAnyOfProperties.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelWithOneOfAnyOfProperties.java index 5c89ba224605..78281cb91d6f 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelWithOneOfAnyOfProperties.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelWithOneOfAnyOfProperties.java @@ -108,9 +108,11 @@ public void setAnyofProp(@javax.annotation.Nullable ArrayAnyOf anyofProp) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Name.java index 20c67908d74e..6d4247875f7b 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Name.java @@ -147,9 +147,11 @@ public Integer get123number() { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NestedArrayWithDefaultValues.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NestedArrayWithDefaultValues.java index f135c4e53b58..b30ec7b0c166 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NestedArrayWithDefaultValues.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NestedArrayWithDefaultValues.java @@ -92,9 +92,11 @@ public void setNestedArray(@javax.annotation.Nullable List> nestedA * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPet.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPet.java index 382498eefbba..e90a1d5638ca 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPet.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPet.java @@ -348,9 +348,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllof.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllof.java index 5db17378d8dd..694707bb0fdb 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllof.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllof.java @@ -131,9 +131,11 @@ public void setCategoryTag(@javax.annotation.Nullable NewPetCategoryInlineAllofA * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllofAllOfCategoryTag.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllofAllOfCategoryTag.java index aa07226bcd8d..0d1a17fe2485 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllofAllOfCategoryTag.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllofAllOfCategoryTag.java @@ -106,9 +106,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableClass.java index bebb71438345..3cc26a15bf7b 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableClass.java @@ -402,9 +402,11 @@ public void setObjectItemsNullable(@javax.annotation.Nullable Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableFieldsValue.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableFieldsValue.java index 32a210d5b7ac..2fccc5f735d7 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableFieldsValue.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableFieldsValue.java @@ -106,9 +106,11 @@ public void setAfter(@javax.annotation.Nullable String after) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberOnly.java index 47afcda20f64..197ed8b7c332 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -83,9 +83,11 @@ public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 83516730f88f..4c20e4aae635 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -181,9 +181,11 @@ public void setBars(@javax.annotation.Nullable List bars) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java index 330cd0f11412..c0c6e64fcd17 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java @@ -257,9 +257,11 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/OuterComposite.java index 280130d25f5c..2d395d3f2d0f 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -131,9 +131,11 @@ public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ParentPet.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ParentPet.java index 6f9154f2aae6..1a56885c7094 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ParentPet.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ParentPet.java @@ -60,9 +60,11 @@ public ParentPet() { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java index d5d5ebfdf103..8841da942e08 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java @@ -276,9 +276,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetComposition.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetComposition.java index c7bcd35671a8..8ea4e1e5da3a 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetComposition.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetComposition.java @@ -276,9 +276,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetRef.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetRef.java index deca2dbc4e06..b413fbd12a84 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetRef.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetRef.java @@ -276,9 +276,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetUsingAllOf.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetUsingAllOf.java index 64ebfde420a0..69081d10172a 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetUsingAllOf.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetUsingAllOf.java @@ -276,9 +276,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetWithRequiredTags.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetWithRequiredTags.java index 35a525bb4a42..08cb7e160223 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetWithRequiredTags.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetWithRequiredTags.java @@ -276,9 +276,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PropertyNameCollision.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PropertyNameCollision.java index c05a019629ac..ffe2275abd3c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PropertyNameCollision.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PropertyNameCollision.java @@ -130,9 +130,11 @@ public void setTypeWithUnderscore(@javax.annotation.Nullable String typeWithUnde * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java index 5fc588799c07..4dde202f62ef 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java @@ -82,9 +82,11 @@ public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralT * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 1c8cf941c513..a43a477584fd 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -105,9 +105,11 @@ public void setBaz(@javax.annotation.Nullable String baz) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/RequiredNullableBody.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/RequiredNullableBody.java index 243edfaef15d..15791e2e79fd 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/RequiredNullableBody.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/RequiredNullableBody.java @@ -500,9 +500,11 @@ public void setCustomEnum(@javax.annotation.Nullable CustomEnumEnum customEnum) * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ScaleneTriangle.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ScaleneTriangle.java index c43d705ad41a..2acd9b493426 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ScaleneTriangle.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ScaleneTriangle.java @@ -106,9 +106,11 @@ public void setTriangleType(@javax.annotation.Nonnull String triangleType) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeInterface.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeInterface.java index 8088ff25091d..b5eed4c2d839 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeInterface.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeInterface.java @@ -82,9 +82,11 @@ public void setShapeType(@javax.annotation.Nonnull String shapeType) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java index eab1fc509440..8fc8bc5801ed 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java @@ -106,9 +106,11 @@ public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralT * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SpecialModelName.java index d164198f031a..5059df246702 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -106,9 +106,11 @@ public void setSpecialModelName(@javax.annotation.Nullable String specialModelNa * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java index 908c00b2e6c2..57a8124ce08e 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java @@ -106,9 +106,11 @@ public void setName(@javax.annotation.Nullable String name) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index f7fd49338978..d527dd11fb35 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -82,9 +82,11 @@ public void setSomeProperty(@javax.annotation.Nullable String someProperty) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TriangleInterface.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TriangleInterface.java index 367ec8f3b301..49ca55d060d4 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TriangleInterface.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TriangleInterface.java @@ -82,9 +82,11 @@ public void setTriangleType(@javax.annotation.Nonnull String triangleType) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/User.java index 6ab1e78eadc1..263ac7cdb991 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/User.java @@ -347,9 +347,11 @@ public void setAnyTypePropNullable(@javax.annotation.Nullable Object anyTypeProp * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Variable.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Variable.java index 01dcf1fb8d38..c7c47aa851ae 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Variable.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Variable.java @@ -107,9 +107,11 @@ public void setValue(@javax.annotation.Nonnull Value value) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Whale.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Whale.java index 8b0f020e19aa..91db89e1a15e 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Whale.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Whale.java @@ -130,9 +130,11 @@ public void setClassName(@javax.annotation.Nonnull String className) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Zebra.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Zebra.java index 32894f88080d..47eb7feba622 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Zebra.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Zebra.java @@ -160,9 +160,11 @@ public void setClassName(@javax.annotation.Nonnull String className) { * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. * - * Transient: the bag is read and written by this model's TypeAdapterFactory, and hiding - * it from gson's reflection keeps an allOf child (which also inherits the field from its - * parent) from declaring two JSON fields of one name. + * Transient (on models without children): the bag is read and written by this model's + * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which + * also inherits the field from its parent) from declaring two JSON fields of one name. + * A parent with children has no factory of its own and keeps the field visible, which + * the child's transient declaration shadows. */ private transient Map additionalProperties; From 2b160d64622fad9d0e2ccd51a74dbbefb9be6616 Mon Sep 17 00:00:00 2001 From: Wiebren Braakman Date: Wed, 9 Sep 2026 08:59:51 +0200 Subject: [PATCH 3/3] [java] docs: describe gson's field binding accurately Gson does not use Java field-hiding semantics: it collects the declared fields of each class in the hierarchy and refuses two bound to one JSON name, so the child's transient declaration excludes its own copy rather than hiding the parent's. Same behaviour, correct description - the comment ships into every generated model. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01GcwZ1arjLZNpetHz2a3TJz --- .../libraries/okhttp-gson/additional_properties.mustache | 9 +++++---- .../org/openapitools/client/model/AllOfSimpleModel.java | 9 +++++---- .../main/java/org/openapitools/client/model/Animal.java | 9 +++++---- .../java/org/openapitools/client/model/AnyTypeTest.java | 9 +++++---- .../org/openapitools/client/model/ArrayOfSameRef.java | 9 +++++---- .../src/main/java/org/openapitools/client/model/Cat.java | 9 +++++---- .../java/org/openapitools/client/model/Category.java | 9 +++++---- .../openapitools/client/model/CircularReference1.java | 9 +++++---- .../openapitools/client/model/CircularReference2.java | 9 +++++---- .../openapitools/client/model/CircularReference3.java | 9 +++++---- .../src/main/java/org/openapitools/client/model/Dog.java | 9 +++++---- .../model/FakeWebhooksSourcesDeletedPostRequest.java | 9 +++++---- .../FakeWebhooksSourcesDeletedPostRequestEvent.java | 9 +++++---- .../org/openapitools/client/model/ModelApiResponse.java | 9 +++++---- .../main/java/org/openapitools/client/model/Order.java | 9 +++++---- .../src/main/java/org/openapitools/client/model/Pet.java | 9 +++++---- .../client/model/PetWithTypesObjectNullAndRef.java | 9 +++++---- .../client/model/SelfReferenceAdditionalProperties.java | 9 +++++---- .../client/model/SimpleModelWithArrayProperty.java | 9 +++++---- .../src/main/java/org/openapitools/client/model/Tag.java | 9 +++++---- .../main/java/org/openapitools/client/model/User.java | 9 +++++---- .../java/org/openapitools/client/model/Category.java | 9 +++++---- .../org/openapitools/client/model/ModelApiResponse.java | 9 +++++---- .../main/java/org/openapitools/client/model/Order.java | 9 +++++---- .../src/main/java/org/openapitools/client/model/Pet.java | 9 +++++---- .../src/main/java/org/openapitools/client/model/Tag.java | 9 +++++---- .../main/java/org/openapitools/client/model/User.java | 9 +++++---- .../client/model/AdditionalPropertiesAnyType.java | 9 +++++---- .../client/model/AdditionalPropertiesArray.java | 9 +++++---- .../client/model/AdditionalPropertiesBoolean.java | 9 +++++---- .../client/model/AdditionalPropertiesInteger.java | 9 +++++---- .../client/model/AdditionalPropertiesNumber.java | 9 +++++---- .../client/model/AdditionalPropertiesObject.java | 9 +++++---- .../client/model/AdditionalPropertiesString.java | 9 +++++---- .../java/org/openapitools/client/model/Category.java | 9 +++++---- .../org/openapitools/client/model/ModelApiResponse.java | 9 +++++---- .../main/java/org/openapitools/client/model/Order.java | 9 +++++---- .../src/main/java/org/openapitools/client/model/Pet.java | 9 +++++---- .../src/main/java/org/openapitools/client/model/Tag.java | 9 +++++---- .../main/java/org/openapitools/client/model/User.java | 9 +++++---- .../java/org/openapitools/client/model/Category.java | 9 +++++---- .../org/openapitools/client/model/ModelApiResponse.java | 9 +++++---- .../main/java/org/openapitools/client/model/Order.java | 9 +++++---- .../src/main/java/org/openapitools/client/model/Pet.java | 9 +++++---- .../client/model/PetWithRequiredNullableCases1.java | 9 +++++---- .../client/model/PetWithRequiredNullableCases2.java | 9 +++++---- .../src/main/java/org/openapitools/client/model/Tag.java | 9 +++++---- .../main/java/org/openapitools/client/model/User.java | 9 +++++---- .../client/model/AdditionalPropertiesAnyType.java | 9 +++++---- .../client/model/AdditionalPropertiesArray.java | 9 +++++---- .../client/model/AdditionalPropertiesBoolean.java | 9 +++++---- .../client/model/AdditionalPropertiesInteger.java | 9 +++++---- .../client/model/AdditionalPropertiesNumber.java | 9 +++++---- .../client/model/AdditionalPropertiesObject.java | 9 +++++---- .../client/model/AdditionalPropertiesString.java | 9 +++++---- .../java/org/openapitools/client/model/Category.java | 9 +++++---- .../org/openapitools/client/model/ModelApiResponse.java | 9 +++++---- .../main/java/org/openapitools/client/model/Order.java | 9 +++++---- .../src/main/java/org/openapitools/client/model/Pet.java | 9 +++++---- .../src/main/java/org/openapitools/client/model/Tag.java | 9 +++++---- .../main/java/org/openapitools/client/model/User.java | 9 +++++---- .../java/org/openapitools/client/model/Category.java | 9 +++++---- .../org/openapitools/client/model/ModelApiResponse.java | 9 +++++---- .../main/java/org/openapitools/client/model/Order.java | 9 +++++---- .../src/main/java/org/openapitools/client/model/Pet.java | 9 +++++---- .../src/main/java/org/openapitools/client/model/Tag.java | 9 +++++---- .../main/java/org/openapitools/client/model/User.java | 9 +++++---- .../client/model/AdditionalPropertiesClass.java | 9 +++++---- .../openapitools/client/model/AllOfModelArrayAnyOf.java | 9 +++++---- .../model/AllOfModelArrayAnyOfAllOfAttributes.java | 9 +++++---- .../model/AllOfModelArrayAnyOfAllOfLinkListColumn1.java | 9 +++++---- .../org/openapitools/client/model/AllOfRefToDouble.java | 9 +++++---- .../org/openapitools/client/model/AllOfRefToFloat.java | 9 +++++---- .../org/openapitools/client/model/AllOfRefToLong.java | 9 +++++---- .../main/java/org/openapitools/client/model/Animal.java | 9 +++++---- .../main/java/org/openapitools/client/model/Apple.java | 9 +++++---- .../java/org/openapitools/client/model/ArrayDefault.java | 9 +++++---- .../client/model/ArrayOfArrayOfNumberOnly.java | 9 +++++---- .../openapitools/client/model/ArrayOfInlineAllOf.java | 9 +++++---- .../ArrayOfInlineAllOfArrayAllofDogPropertyInner.java | 9 +++++---- .../org/openapitools/client/model/ArrayOfNumberOnly.java | 9 +++++---- .../java/org/openapitools/client/model/ArrayTest.java | 9 +++++---- .../main/java/org/openapitools/client/model/Banana.java | 9 +++++---- .../java/org/openapitools/client/model/BasquePig.java | 9 +++++---- .../org/openapitools/client/model/Capitalization.java | 9 +++++---- .../src/main/java/org/openapitools/client/model/Cat.java | 9 +++++---- .../java/org/openapitools/client/model/Category.java | 9 +++++---- .../java/org/openapitools/client/model/ClassModel.java | 9 +++++---- .../main/java/org/openapitools/client/model/Client.java | 9 +++++---- .../openapitools/client/model/ComplexQuadrilateral.java | 9 +++++---- .../java/org/openapitools/client/model/DanishPig.java | 9 +++++---- .../org/openapitools/client/model/DeprecatedObject.java | 9 +++++---- .../src/main/java/org/openapitools/client/model/Dog.java | 9 +++++---- .../main/java/org/openapitools/client/model/Drawing.java | 9 +++++---- .../java/org/openapitools/client/model/EnumArrays.java | 9 +++++---- .../client/model/EnumStringDiscriminator.java | 9 +++++---- .../java/org/openapitools/client/model/EnumTest.java | 9 +++++---- .../openapitools/client/model/EquilateralTriangle.java | 9 +++++---- .../openapitools/client/model/FileSchemaTestClass.java | 9 +++++---- .../src/main/java/org/openapitools/client/model/Foo.java | 9 +++++---- .../openapitools/client/model/FooGetDefaultResponse.java | 9 +++++---- .../java/org/openapitools/client/model/FormatTest.java | 9 +++++---- .../client/model/FreeFormObjectTestClass.java | 9 +++++---- .../org/openapitools/client/model/GrandparentAnimal.java | 9 +++++---- .../org/openapitools/client/model/HasOnlyReadOnly.java | 9 +++++---- .../org/openapitools/client/model/HealthCheckResult.java | 9 +++++---- .../main/java/org/openapitools/client/model/MapTest.java | 9 +++++---- .../MixedPropertiesAndAdditionalPropertiesClass.java | 9 +++++---- .../org/openapitools/client/model/Model200Response.java | 9 +++++---- .../org/openapitools/client/model/ModelApiResponse.java | 9 +++++---- .../java/org/openapitools/client/model/ModelFile.java | 9 +++++---- .../java/org/openapitools/client/model/ModelList.java | 9 +++++---- .../java/org/openapitools/client/model/ModelReturn.java | 9 +++++---- .../client/model/ModelWithOneOfAnyOfProperties.java | 9 +++++---- .../main/java/org/openapitools/client/model/Name.java | 9 +++++---- .../client/model/NestedArrayWithDefaultValues.java | 9 +++++---- .../main/java/org/openapitools/client/model/NewPet.java | 9 +++++---- .../client/model/NewPetCategoryInlineAllof.java | 9 +++++---- .../model/NewPetCategoryInlineAllofAllOfCategoryTag.java | 9 +++++---- .../org/openapitools/client/model/NullableClass.java | 9 +++++---- .../openapitools/client/model/NullableFieldsValue.java | 9 +++++---- .../java/org/openapitools/client/model/NumberOnly.java | 9 +++++---- .../client/model/ObjectWithDeprecatedFields.java | 9 +++++---- .../main/java/org/openapitools/client/model/Order.java | 9 +++++---- .../org/openapitools/client/model/OuterComposite.java | 9 +++++---- .../java/org/openapitools/client/model/ParentPet.java | 9 +++++---- .../src/main/java/org/openapitools/client/model/Pet.java | 9 +++++---- .../org/openapitools/client/model/PetComposition.java | 9 +++++---- .../main/java/org/openapitools/client/model/PetRef.java | 9 +++++---- .../org/openapitools/client/model/PetUsingAllOf.java | 9 +++++---- .../openapitools/client/model/PetWithRequiredTags.java | 9 +++++---- .../openapitools/client/model/PropertyNameCollision.java | 9 +++++---- .../client/model/QuadrilateralInterface.java | 9 +++++---- .../org/openapitools/client/model/ReadOnlyFirst.java | 9 +++++---- .../openapitools/client/model/RequiredNullableBody.java | 9 +++++---- .../org/openapitools/client/model/ScaleneTriangle.java | 9 +++++---- .../org/openapitools/client/model/ShapeInterface.java | 9 +++++---- .../openapitools/client/model/SimpleQuadrilateral.java | 9 +++++---- .../org/openapitools/client/model/SpecialModelName.java | 9 +++++---- .../src/main/java/org/openapitools/client/model/Tag.java | 9 +++++---- .../TestInlineFreeformAdditionalPropertiesRequest.java | 9 +++++---- .../org/openapitools/client/model/TriangleInterface.java | 9 +++++---- .../main/java/org/openapitools/client/model/User.java | 9 +++++---- .../java/org/openapitools/client/model/Variable.java | 9 +++++---- .../main/java/org/openapitools/client/model/Whale.java | 9 +++++---- .../main/java/org/openapitools/client/model/Zebra.java | 9 +++++---- 146 files changed, 730 insertions(+), 584 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/additional_properties.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/additional_properties.mustache index ff36d2a78376..c448667d74b9 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/additional_properties.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/additional_properties.mustache @@ -5,10 +5,11 @@ * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private {{^hasChildren}}transient {{/hasChildren}}Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AllOfSimpleModel.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AllOfSimpleModel.java index c34f2e2222b6..121a382b8ef0 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AllOfSimpleModel.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AllOfSimpleModel.java @@ -93,10 +93,11 @@ public void setArrayOfStrings(@javax.annotation.Nonnull List arrayOfStri * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Animal.java index 5f14caf7f41c..4322e94521cb 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Animal.java @@ -108,10 +108,11 @@ public void setColor(@javax.annotation.Nullable String color) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AnyTypeTest.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AnyTypeTest.java index b4a189cd5e51..bc14540e0e93 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AnyTypeTest.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AnyTypeTest.java @@ -150,10 +150,11 @@ public void setRefArrayPrefixItems(@javax.annotation.Nullable List refAr * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ArrayOfSameRef.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ArrayOfSameRef.java index 5c97ecb380d2..82c900abe9c4 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ArrayOfSameRef.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ArrayOfSameRef.java @@ -158,10 +158,11 @@ public void setArrayFooThree(@javax.annotation.Nullable List arrayFooThree) * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Cat.java index 2158a1d6457e..732075b475cb 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Cat.java @@ -85,10 +85,11 @@ public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Category.java index dd60cba63fa6..5c279fd9caae 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Category.java @@ -107,10 +107,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference1.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference1.java index 597356059272..8fde5bf916a6 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference1.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference1.java @@ -84,10 +84,11 @@ public void setProp1(@javax.annotation.Nullable CircularReference2 prop1) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference2.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference2.java index 5b1293626d34..a036c247a18b 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference2.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference2.java @@ -84,10 +84,11 @@ public void setProp1(@javax.annotation.Nullable CircularReference3 prop1) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference3.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference3.java index 3530d98fbbc6..dfc71197d818 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference3.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference3.java @@ -84,10 +84,11 @@ public void setProp1(@javax.annotation.Nullable CircularReference1 prop1) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Dog.java index fffdb5c7a786..db2437f5a8f3 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Dog.java @@ -85,10 +85,11 @@ public void setBreed(@javax.annotation.Nullable String breed) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/FakeWebhooksSourcesDeletedPostRequest.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/FakeWebhooksSourcesDeletedPostRequest.java index 7b5865db10da..da1e7876e72c 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/FakeWebhooksSourcesDeletedPostRequest.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/FakeWebhooksSourcesDeletedPostRequest.java @@ -133,10 +133,11 @@ public void setEvent(@javax.annotation.Nonnull FakeWebhooksSourcesDeletedPostReq * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/FakeWebhooksSourcesDeletedPostRequestEvent.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/FakeWebhooksSourcesDeletedPostRequestEvent.java index 08a81a790809..f1b4010a800c 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/FakeWebhooksSourcesDeletedPostRequestEvent.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/FakeWebhooksSourcesDeletedPostRequestEvent.java @@ -83,10 +83,11 @@ public void setEventId(@javax.annotation.Nonnull String eventId) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ModelApiResponse.java index ceee533075af..7e4c0079b39c 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -131,10 +131,11 @@ public void setMessage(@javax.annotation.Nullable String message) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Order.java index a7cb9fd52427..0212fa719092 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Order.java @@ -258,10 +258,11 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Pet.java index bc86ac895264..356dcc285659 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Pet.java @@ -282,10 +282,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/PetWithTypesObjectNullAndRef.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/PetWithTypesObjectNullAndRef.java index 2d90a97c5675..322383693e1a 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/PetWithTypesObjectNullAndRef.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/PetWithTypesObjectNullAndRef.java @@ -109,10 +109,11 @@ public void setSecondProperty(@javax.annotation.Nullable Object secondProperty) * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceAdditionalProperties.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceAdditionalProperties.java index 5afe307e0cf0..174371ea9993 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceAdditionalProperties.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceAdditionalProperties.java @@ -83,10 +83,11 @@ public void setDummy(@javax.annotation.Nullable String dummy) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SimpleModelWithArrayProperty.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SimpleModelWithArrayProperty.java index 2a914115702e..5a7d8e0e8c5c 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SimpleModelWithArrayProperty.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SimpleModelWithArrayProperty.java @@ -93,10 +93,11 @@ public void setArrayOfStrings(@javax.annotation.Nonnull List arrayOfStri * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Tag.java index 3c35fe9b713c..8e2814a4fbae 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Tag.java @@ -107,10 +107,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/User.java index 6a14a829f359..9de227257ffc 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/User.java @@ -251,10 +251,11 @@ public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Category.java index dd60cba63fa6..5c279fd9caae 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Category.java @@ -107,10 +107,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/ModelApiResponse.java index ceee533075af..7e4c0079b39c 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -131,10 +131,11 @@ public void setMessage(@javax.annotation.Nullable String message) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Order.java index a7cb9fd52427..0212fa719092 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Order.java @@ -258,10 +258,11 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Pet.java index bc86ac895264..356dcc285659 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Pet.java @@ -282,10 +282,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Tag.java index 3c35fe9b713c..8e2814a4fbae 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Tag.java @@ -107,10 +107,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/User.java index 6a14a829f359..9de227257ffc 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/User.java @@ -251,10 +251,11 @@ public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 0340f9e3c080..250738fee1cf 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -83,10 +83,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index ec99898bae06..4ede6db8dc2f 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -84,10 +84,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 91a4c6743225..c34b64f6ffe0 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -83,10 +83,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 0b7c2694e0a4..562d74265176 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -83,10 +83,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index df5f5b5de05f..bdadf56d5926 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -84,10 +84,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 8eb44fea5800..aa346999b42b 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -84,10 +84,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index c94ffda35e26..bec379ab3146 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -83,10 +83,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Category.java index dd60cba63fa6..5c279fd9caae 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Category.java @@ -107,10 +107,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java index ceee533075af..7e4c0079b39c 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -131,10 +131,11 @@ public void setMessage(@javax.annotation.Nullable String message) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Order.java index a7cb9fd52427..0212fa719092 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Order.java @@ -258,10 +258,11 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Pet.java index bc86ac895264..356dcc285659 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Pet.java @@ -282,10 +282,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Tag.java index 3c35fe9b713c..8e2814a4fbae 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Tag.java @@ -107,10 +107,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/User.java index 6a14a829f359..9de227257ffc 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/User.java @@ -251,10 +251,11 @@ public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Category.java index dd60cba63fa6..5c279fd9caae 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Category.java @@ -107,10 +107,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/ModelApiResponse.java index ceee533075af..7e4c0079b39c 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -131,10 +131,11 @@ public void setMessage(@javax.annotation.Nullable String message) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Order.java index a7cb9fd52427..0212fa719092 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Order.java @@ -258,10 +258,11 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Pet.java index bc86ac895264..356dcc285659 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Pet.java @@ -282,10 +282,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases1.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases1.java index fdca1d47361b..ce8c2a243bd1 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases1.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases1.java @@ -283,10 +283,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases2.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases2.java index 34214110665c..7f8189d60e82 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases2.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases2.java @@ -282,10 +282,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Tag.java index 3c35fe9b713c..8e2814a4fbae 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Tag.java @@ -107,10 +107,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/User.java index 6a14a829f359..9de227257ffc 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/User.java @@ -251,10 +251,11 @@ public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index c1d8ede19dbe..99173a208403 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -85,10 +85,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index f28b5bb003f4..6480c87fa525 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -86,10 +86,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index d217051d708f..21d8d277839a 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -85,10 +85,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 7709024e8941..d17724bf4609 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -85,10 +85,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 58a44141a226..b666480d4b00 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -86,10 +86,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 45e555e048cf..d1296070451b 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -86,10 +86,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 7e746cea9750..1099a8ee736f 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -85,10 +85,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Category.java index 768d95929022..c37725e82fb3 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Category.java @@ -112,10 +112,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java index aa7221b37d47..72ca1d8ef9e4 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -137,10 +137,11 @@ public void setMessage(@javax.annotation.Nullable String message) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Order.java index 2c865558e2a5..480b2a95c6ba 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Order.java @@ -267,10 +267,11 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Pet.java index ff1129918f42..6c75cee4bbed 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Pet.java @@ -291,10 +291,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Tag.java index 8c77f5fbaeea..2aa570c44fec 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Tag.java @@ -112,10 +112,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/User.java index e352432535ef..71b25aa8f19f 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/User.java @@ -262,10 +262,11 @@ public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Category.java index 582c8342b1a2..9042d78e9c01 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Category.java @@ -111,10 +111,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 199e098924c6..79aabe3b22c6 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -136,10 +136,11 @@ public void setMessage(@javax.annotation.Nullable String message) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Order.java index ca93963c1fbe..ef9f3bdc0b2a 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Order.java @@ -266,10 +266,11 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Pet.java index 421a270a01eb..4f34bae7b82d 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Pet.java @@ -290,10 +290,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Tag.java index 4210fec5b81c..c6f0e26c6131 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Tag.java @@ -111,10 +111,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/User.java index 6e1e4dd9a16c..1344b4f2f5df 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/User.java @@ -261,10 +261,11 @@ public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index c821207673f6..c0f57ec6bba9 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -286,10 +286,11 @@ public void setMapWithUndeclaredPropertiesString(@javax.annotation.Nullable Map< * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOf.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOf.java index b95a7cce3106..f0b878399bf7 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOf.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOf.java @@ -157,10 +157,11 @@ public void setAttributes(@javax.annotation.Nullable AllOfModelArrayAnyOfAllOfAt * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfAttributes.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfAttributes.java index e827f0df8a95..26b3d2d66e49 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfAttributes.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfAttributes.java @@ -84,10 +84,11 @@ public void setC(@javax.annotation.Nullable AllOfModelArrayAnyOfAllOfAttributesC * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfLinkListColumn1.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfLinkListColumn1.java index 9781cab6a31e..8153defffed0 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfLinkListColumn1.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfLinkListColumn1.java @@ -94,10 +94,11 @@ public void setValue(@javax.annotation.Nonnull List additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToDouble.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToDouble.java index d439c3017d6b..c320f25475f6 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToDouble.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToDouble.java @@ -83,10 +83,11 @@ public void setHeight(@javax.annotation.Nullable Double height) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToFloat.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToFloat.java index 8b4bf3d0bd54..d17614725919 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToFloat.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToFloat.java @@ -83,10 +83,11 @@ public void setWeight(@javax.annotation.Nullable Float weight) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToLong.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToLong.java index 97b134d9be63..bf82ba1654ec 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToLong.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfRefToLong.java @@ -83,10 +83,11 @@ public void setId(@javax.annotation.Nullable Long id) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Animal.java index 6030ad017475..9c353259beaf 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Animal.java @@ -108,10 +108,11 @@ public void setColor(@javax.annotation.Nullable String color) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Apple.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Apple.java index 4289fbac3191..1217c652f1c6 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Apple.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Apple.java @@ -107,10 +107,11 @@ public void setOrigin(@javax.annotation.Nullable String origin) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayDefault.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayDefault.java index 8e5932c9d9fc..a1391964d879 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayDefault.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayDefault.java @@ -125,10 +125,11 @@ public void setWithoutDefault(@javax.annotation.Nullable List withoutDef * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 3772a69023f9..25df12f31482 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -94,10 +94,11 @@ public void setArrayArrayNumber(@javax.annotation.Nullable List * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOf.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOf.java index 3ccce06bd6ee..852ad5b7c23a 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOf.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOf.java @@ -142,10 +142,11 @@ public void setArrayAllofDogProperty(@javax.annotation.Nullable List additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOfArrayAllofDogPropertyInner.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOfArrayAllofDogPropertyInner.java index a5b699445c1b..9e6ced80f2ea 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOfArrayAllofDogPropertyInner.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOfArrayAllofDogPropertyInner.java @@ -107,10 +107,11 @@ public void setColor(@javax.annotation.Nullable String color) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index d29bd493dbbb..c2b914aed5ab 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -94,10 +94,11 @@ public void setArrayNumber(@javax.annotation.Nullable List arrayNumb * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayTest.java index 465a0d74f41b..1e6e82486cf5 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -158,10 +158,11 @@ public void setArrayArrayOfModel(@javax.annotation.Nullable List additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Banana.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Banana.java index 365a8e0c1762..5371c897fb98 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Banana.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Banana.java @@ -84,10 +84,11 @@ public void setLengthCm(@javax.annotation.Nullable BigDecimal lengthCm) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BasquePig.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BasquePig.java index bb7e341aa34d..4ababe2205bf 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BasquePig.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BasquePig.java @@ -83,10 +83,11 @@ public void setClassName(@javax.annotation.Nonnull String className) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Capitalization.java index c2a5845a4b71..11f10a41060e 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Capitalization.java @@ -203,10 +203,11 @@ public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Cat.java index 9c3bf7c68501..36f98becb2f5 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Cat.java @@ -86,10 +86,11 @@ public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java index 5d5a92d97196..f37741bee72c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java @@ -107,10 +107,11 @@ public void setName(@javax.annotation.Nonnull String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ClassModel.java index 58b068f75bb4..4ee32996e68b 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ClassModel.java @@ -83,10 +83,11 @@ public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Client.java index a2aa92ef56f1..6af93ab781dd 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Client.java @@ -83,10 +83,11 @@ public void setClient(@javax.annotation.Nullable String client) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java index 89e357987c82..134ce1bf3b94 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java @@ -107,10 +107,11 @@ public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralT * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DanishPig.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DanishPig.java index 3f0c45063464..c8da1fba30c0 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DanishPig.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DanishPig.java @@ -83,10 +83,11 @@ public void setClassName(@javax.annotation.Nonnull String className) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 7e6c7e34df5f..d540b3009035 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -85,10 +85,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Dog.java index 9e1901af1390..f90c702f41e9 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Dog.java @@ -85,10 +85,11 @@ public void setBreed(@javax.annotation.Nullable String breed) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Drawing.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Drawing.java index 4a144a15cfd7..d619881478fe 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Drawing.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Drawing.java @@ -170,10 +170,11 @@ public void setShapes(@javax.annotation.Nullable List shapes) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java index 267ad6529565..aa749278cd77 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -221,10 +221,11 @@ public void setArrayEnum(@javax.annotation.Nullable List arrayEnu * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumStringDiscriminator.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumStringDiscriminator.java index 9320830f0b83..a7501778b6d7 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumStringDiscriminator.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumStringDiscriminator.java @@ -136,10 +136,11 @@ public void setEnumStrType(@javax.annotation.Nonnull EnumStrTypeEnum enumStrType * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java index 5702a07257fe..4c916ee2f428 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java @@ -549,10 +549,11 @@ public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnum * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EquilateralTriangle.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EquilateralTriangle.java index acdd79317521..f194dd9a6c41 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EquilateralTriangle.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EquilateralTriangle.java @@ -107,10 +107,11 @@ public void setTriangleType(@javax.annotation.Nonnull String triangleType) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 903f7a9f2280..1bca6e0a7a71 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -118,10 +118,11 @@ public void setFiles(@javax.annotation.Nullable List files) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Foo.java index 7921b469c249..61f858df7660 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Foo.java @@ -83,10 +83,11 @@ public void setBar(@javax.annotation.Nullable String bar) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 1abb98a1bced..9fda9d7385e1 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -84,10 +84,11 @@ public void setString(@javax.annotation.Nullable Foo string) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java index d47d3fac4967..85a21da0df5c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java @@ -482,10 +482,11 @@ public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String p * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FreeFormObjectTestClass.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FreeFormObjectTestClass.java index 83c29da2df00..b3c1f9496293 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FreeFormObjectTestClass.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FreeFormObjectTestClass.java @@ -108,10 +108,11 @@ public void setProperties(@javax.annotation.Nullable FreeFormObjectTestClassProp * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/GrandparentAnimal.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/GrandparentAnimal.java index 8143f51d14af..13478fde6fbf 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/GrandparentAnimal.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/GrandparentAnimal.java @@ -84,10 +84,11 @@ public void setPetType(@javax.annotation.Nonnull String petType) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 2c1bbbc9b8ed..8f1ade59ad23 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -100,10 +100,11 @@ public String getFoo() { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 336db036cf6e..5c8df8410ab0 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -84,10 +84,11 @@ public void setNullableMessage(@javax.annotation.Nullable String nullableMessage * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java index de82a1343e6d..2491b27971c3 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java @@ -241,10 +241,11 @@ public void setIndirectMap(@javax.annotation.Nullable Map indir * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index ec2fe8a5f6bd..962f082d0556 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -144,10 +144,11 @@ public void setMap(@javax.annotation.Nullable Map map) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Model200Response.java index 7949f6da3802..756ff393ea27 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Model200Response.java @@ -107,10 +107,11 @@ public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 13460a16a894..d9592e8e01b1 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -131,10 +131,11 @@ public void setMessage(@javax.annotation.Nullable String message) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelFile.java index 68bd359adf51..feae87990282 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelFile.java @@ -83,10 +83,11 @@ public void setSourceURI(@javax.annotation.Nullable String sourceURI) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelList.java index 5492197ec093..f810e2765672 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelList.java @@ -83,10 +83,11 @@ public void set123list(@javax.annotation.Nullable String _123list) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelReturn.java index 883fbdf5434b..8fd33d033e00 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -83,10 +83,11 @@ public void setReturn(@javax.annotation.Nullable Integer _return) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelWithOneOfAnyOfProperties.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelWithOneOfAnyOfProperties.java index 78281cb91d6f..e11107bbc40d 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelWithOneOfAnyOfProperties.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelWithOneOfAnyOfProperties.java @@ -109,10 +109,11 @@ public void setAnyofProp(@javax.annotation.Nullable ArrayAnyOf anyofProp) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Name.java index 6d4247875f7b..c4db27b53211 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Name.java @@ -148,10 +148,11 @@ public Integer get123number() { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NestedArrayWithDefaultValues.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NestedArrayWithDefaultValues.java index b30ec7b0c166..894b4ffcf797 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NestedArrayWithDefaultValues.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NestedArrayWithDefaultValues.java @@ -93,10 +93,11 @@ public void setNestedArray(@javax.annotation.Nullable List> nestedA * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPet.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPet.java index e90a1d5638ca..922726e3e210 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPet.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPet.java @@ -349,10 +349,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllof.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllof.java index 694707bb0fdb..6a4b559af9c4 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllof.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllof.java @@ -132,10 +132,11 @@ public void setCategoryTag(@javax.annotation.Nullable NewPetCategoryInlineAllofA * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllofAllOfCategoryTag.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllofAllOfCategoryTag.java index 0d1a17fe2485..07314e83538c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllofAllOfCategoryTag.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllofAllOfCategoryTag.java @@ -107,10 +107,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableClass.java index 3cc26a15bf7b..322dd6c1713d 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableClass.java @@ -403,10 +403,11 @@ public void setObjectItemsNullable(@javax.annotation.Nullable Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableFieldsValue.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableFieldsValue.java index 2fccc5f735d7..9c8027a4e77c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableFieldsValue.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableFieldsValue.java @@ -107,10 +107,11 @@ public void setAfter(@javax.annotation.Nullable String after) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberOnly.java index 197ed8b7c332..ab32b883e2b2 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -84,10 +84,11 @@ public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 4c20e4aae635..dcf58987b1a5 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -182,10 +182,11 @@ public void setBars(@javax.annotation.Nullable List bars) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java index c0c6e64fcd17..33ee4ce80a22 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java @@ -258,10 +258,11 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/OuterComposite.java index 2d395d3f2d0f..51af65c352d4 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -132,10 +132,11 @@ public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ParentPet.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ParentPet.java index 1a56885c7094..281c87620d8b 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ParentPet.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ParentPet.java @@ -61,10 +61,11 @@ public ParentPet() { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java index 8841da942e08..54e25bd7aed8 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java @@ -277,10 +277,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetComposition.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetComposition.java index 8ea4e1e5da3a..e8b9edc9d432 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetComposition.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetComposition.java @@ -277,10 +277,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetRef.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetRef.java index b413fbd12a84..5a98495e2db3 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetRef.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetRef.java @@ -277,10 +277,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetUsingAllOf.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetUsingAllOf.java index 69081d10172a..354998f86ea5 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetUsingAllOf.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetUsingAllOf.java @@ -277,10 +277,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetWithRequiredTags.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetWithRequiredTags.java index 08cb7e160223..5d5e0f9ac95c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetWithRequiredTags.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetWithRequiredTags.java @@ -277,10 +277,11 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PropertyNameCollision.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PropertyNameCollision.java index ffe2275abd3c..207771e8fc57 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PropertyNameCollision.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PropertyNameCollision.java @@ -131,10 +131,11 @@ public void setTypeWithUnderscore(@javax.annotation.Nullable String typeWithUnde * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java index 4dde202f62ef..f9e3f732a182 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java @@ -83,10 +83,11 @@ public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralT * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index a43a477584fd..86d810cdd2a0 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -106,10 +106,11 @@ public void setBaz(@javax.annotation.Nullable String baz) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/RequiredNullableBody.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/RequiredNullableBody.java index 15791e2e79fd..66c294f4c50f 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/RequiredNullableBody.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/RequiredNullableBody.java @@ -501,10 +501,11 @@ public void setCustomEnum(@javax.annotation.Nullable CustomEnumEnum customEnum) * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ScaleneTriangle.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ScaleneTriangle.java index 2acd9b493426..e6e7a05583a1 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ScaleneTriangle.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ScaleneTriangle.java @@ -107,10 +107,11 @@ public void setTriangleType(@javax.annotation.Nonnull String triangleType) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeInterface.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeInterface.java index b5eed4c2d839..b4d64001a5f7 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeInterface.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeInterface.java @@ -83,10 +83,11 @@ public void setShapeType(@javax.annotation.Nonnull String shapeType) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java index 8fc8bc5801ed..96408cc6a6e5 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java @@ -107,10 +107,11 @@ public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralT * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SpecialModelName.java index 5059df246702..b6a871588870 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -107,10 +107,11 @@ public void setSpecialModelName(@javax.annotation.Nullable String specialModelNa * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java index 57a8124ce08e..8a351a5d2c12 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java @@ -107,10 +107,11 @@ public void setName(@javax.annotation.Nullable String name) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index d527dd11fb35..f60d8382831d 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -83,10 +83,11 @@ public void setSomeProperty(@javax.annotation.Nullable String someProperty) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TriangleInterface.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TriangleInterface.java index 49ca55d060d4..f2d2943be5ba 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TriangleInterface.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TriangleInterface.java @@ -83,10 +83,11 @@ public void setTriangleType(@javax.annotation.Nonnull String triangleType) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/User.java index 263ac7cdb991..1e46aff7d03b 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/User.java @@ -348,10 +348,11 @@ public void setAnyTypePropNullable(@javax.annotation.Nullable Object anyTypeProp * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Variable.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Variable.java index c7c47aa851ae..35daeecdb09c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Variable.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Variable.java @@ -108,10 +108,11 @@ public void setValue(@javax.annotation.Nonnull Value value) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Whale.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Whale.java index 91db89e1a15e..f24b491dbee9 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Whale.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Whale.java @@ -131,10 +131,11 @@ public void setClassName(@javax.annotation.Nonnull String className) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Zebra.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Zebra.java index 47eb7feba622..bb38d3c4b7d0 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Zebra.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Zebra.java @@ -161,10 +161,11 @@ public void setClassName(@javax.annotation.Nonnull String className) { * the 'additionalProperties' keyword in the OAS document. * * Transient (on models without children): the bag is read and written by this model's - * TypeAdapterFactory, and hiding it from gson's reflection keeps an allOf child (which - * also inherits the field from its parent) from declaring two JSON fields of one name. - * A parent with children has no factory of its own and keeps the field visible, which - * the child's transient declaration shadows. + * TypeAdapterFactory, so gson's reflection does not need to see it. Gson collects the + * declared fields of every class in the hierarchy and rejects two bound to one JSON + * name, which is what an allOf child - declaring the field itself and inheriting it - + * used to hit. A parent with children has no factory of its own, so it keeps the field + * bound for reflection; the child excludes only its own copy, leaving exactly one. */ private transient Map additionalProperties;