From d759a98e4ad4fc27fc7062de42e3f9f704d0bb6c Mon Sep 17 00:00:00 2001 From: William Cheng Date: Mon, 2 Feb 2026 17:17:55 +0800 Subject: [PATCH] minor fix using jackson check --- .../Java/additional_properties.mustache | 2 ++ .../model/AdditionalPropertiesAnyType.java | 30 ------------------- .../model/AdditionalPropertiesArray.java | 30 ------------------- .../model/AdditionalPropertiesBoolean.java | 30 ------------------- .../model/AdditionalPropertiesInteger.java | 30 ------------------- .../model/AdditionalPropertiesNumber.java | 30 ------------------- .../model/AdditionalPropertiesObject.java | 30 ------------------- .../model/AdditionalPropertiesString.java | 30 ------------------- .../model/AdditionalPropertiesAnyType.java | 30 ------------------- .../model/AdditionalPropertiesArray.java | 30 ------------------- .../model/AdditionalPropertiesBoolean.java | 30 ------------------- .../model/AdditionalPropertiesInteger.java | 30 ------------------- .../model/AdditionalPropertiesNumber.java | 30 ------------------- .../model/AdditionalPropertiesObject.java | 30 ------------------- .../model/AdditionalPropertiesString.java | 30 ------------------- .../model/AdditionalPropertiesAnyType.java | 30 ------------------- .../model/AdditionalPropertiesArray.java | 30 ------------------- .../model/AdditionalPropertiesBoolean.java | 30 ------------------- .../model/AdditionalPropertiesInteger.java | 30 ------------------- .../model/AdditionalPropertiesNumber.java | 30 ------------------- .../model/AdditionalPropertiesObject.java | 30 ------------------- .../model/AdditionalPropertiesString.java | 30 ------------------- .../model/AdditionalPropertiesAnyType.java | 30 ------------------- .../model/AdditionalPropertiesArray.java | 30 ------------------- .../model/AdditionalPropertiesBoolean.java | 30 ------------------- .../model/AdditionalPropertiesInteger.java | 30 ------------------- .../model/AdditionalPropertiesNumber.java | 30 ------------------- .../model/AdditionalPropertiesObject.java | 30 ------------------- .../model/AdditionalPropertiesString.java | 30 ------------------- 29 files changed, 2 insertions(+), 840 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/Java/additional_properties.mustache b/modules/openapi-generator/src/main/resources/Java/additional_properties.mustache index 81af70c79ee0..04c226bcee67 100644 --- a/modules/openapi-generator/src/main/resources/Java/additional_properties.mustache +++ b/modules/openapi-generator/src/main/resources/Java/additional_properties.mustache @@ -1,3 +1,4 @@ +{{#jackson}} {{#additionalPropertiesType}} /** * Set the additional (undeclared) property with the specified name and value. @@ -30,3 +31,4 @@ return this.get(key); } {{/additionalPropertiesType}} +{{/jackson}} diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 012d8945e954..cc3ebc6d0171 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -63,36 +63,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesAnyType putAdditionalProperty(String key, Object value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public Object getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index e1c3d68b5319..f0ca64b0915f 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -64,36 +64,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesArray putAdditionalProperty(String key, List value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public List getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 5ad279495fd1..5c7914252579 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -63,36 +63,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesBoolean putAdditionalProperty(String key, Boolean value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public Boolean getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 647c257afbda..92bf37a60322 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -63,36 +63,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesInteger putAdditionalProperty(String key, Integer value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public Integer getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 1e9f76dfc5cf..418654d372e3 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -64,36 +64,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesNumber putAdditionalProperty(String key, BigDecimal value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public BigDecimal getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 32f8c9362aa6..4209e5754067 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -63,36 +63,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesObject putAdditionalProperty(String key, Map value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public Map getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 3c1c94c9e099..e6c10c020c9b 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -63,36 +63,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesString putAdditionalProperty(String key, String value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public String getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index bec8b89d738d..f78455af8bcc 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -59,36 +59,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesAnyType putAdditionalProperty(String key, Object value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public Object getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 98769437926f..fc8268bd07f0 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -60,36 +60,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesArray putAdditionalProperty(String key, List value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public List getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 494934e7f6e4..bc52c62b79b0 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -59,36 +59,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesBoolean putAdditionalProperty(String key, Boolean value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public Boolean getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 120d3fd9f6f4..6ccd010ea9b6 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -59,36 +59,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesInteger putAdditionalProperty(String key, Integer value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public Integer getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 0598cb56827f..67c2732c6792 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -60,36 +60,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesNumber putAdditionalProperty(String key, BigDecimal value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public BigDecimal getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 3221b493c335..99e0bd369375 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -59,36 +59,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesObject putAdditionalProperty(String key, Map value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public Map getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 593c8c898cf7..9e94d2250472 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -59,36 +59,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesString putAdditionalProperty(String key, String value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public String getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index bec8b89d738d..f78455af8bcc 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -59,36 +59,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesAnyType putAdditionalProperty(String key, Object value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public Object getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 98769437926f..fc8268bd07f0 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -60,36 +60,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesArray putAdditionalProperty(String key, List value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public List getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 494934e7f6e4..bc52c62b79b0 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -59,36 +59,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesBoolean putAdditionalProperty(String key, Boolean value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public Boolean getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 120d3fd9f6f4..6ccd010ea9b6 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -59,36 +59,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesInteger putAdditionalProperty(String key, Integer value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public Integer getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 0598cb56827f..67c2732c6792 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -60,36 +60,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesNumber putAdditionalProperty(String key, BigDecimal value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public BigDecimal getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 3221b493c335..99e0bd369375 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -59,36 +59,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesObject putAdditionalProperty(String key, Map value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public Map getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 593c8c898cf7..9e94d2250472 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -59,36 +59,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesString putAdditionalProperty(String key, String value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public String getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) { diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index bec8b89d738d..f78455af8bcc 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -59,36 +59,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesAnyType putAdditionalProperty(String key, Object value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public Object getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) { diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 98769437926f..fc8268bd07f0 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -60,36 +60,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesArray putAdditionalProperty(String key, List value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public List getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) { diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 494934e7f6e4..bc52c62b79b0 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -59,36 +59,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesBoolean putAdditionalProperty(String key, Boolean value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public Boolean getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) { diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 120d3fd9f6f4..6ccd010ea9b6 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -59,36 +59,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesInteger putAdditionalProperty(String key, Integer value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public Integer getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) { diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 0598cb56827f..67c2732c6792 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -60,36 +60,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesNumber putAdditionalProperty(String key, BigDecimal value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public BigDecimal getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) { diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 3221b493c335..99e0bd369375 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -59,36 +59,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesObject putAdditionalProperty(String key, Map value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public Map getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) { diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 593c8c898cf7..9e94d2250472 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -59,36 +59,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** - * Set the additional (undeclared) property with the specified name and value. - * Creates the property if it does not already exist, otherwise replaces it. - * @param key the name of the property - * @param value the value of the property - * @return self reference - */ - @JsonAnySetter - public AdditionalPropertiesString putAdditionalProperty(String key, String value) { - this.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) properties. - * @return the additional (undeclared) properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return this; - } - - /** - * Return the additional (undeclared) property with the specified name. - * @param key the name of the property - * @return the additional (undeclared) property with the specified name - */ - public String getAdditionalProperty(String key) { - return this.get(key); - } @Override public boolean equals(Object o) {