Skip to content

Commit d759a98

Browse files
committed
minor fix using jackson check
1 parent f3a21a8 commit d759a98

29 files changed

+2
-840
lines changed

modules/openapi-generator/src/main/resources/Java/additional_properties.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{#jackson}}
12
{{#additionalPropertiesType}}
23
/**
34
* Set the additional (undeclared) property with the specified name and value.
@@ -30,3 +31,4 @@
3031
return this.get(key);
3132
}
3233
{{/additionalPropertiesType}}
34+
{{/jackson}}

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -63,36 +63,6 @@ public void setName(@javax.annotation.Nullable String name) {
6363
this.name = name;
6464
}
6565

66-
/**
67-
* Set the additional (undeclared) property with the specified name and value.
68-
* Creates the property if it does not already exist, otherwise replaces it.
69-
* @param key the name of the property
70-
* @param value the value of the property
71-
* @return self reference
72-
*/
73-
@JsonAnySetter
74-
public AdditionalPropertiesAnyType putAdditionalProperty(String key, Object value) {
75-
this.put(key, value);
76-
return this;
77-
}
78-
79-
/**
80-
* Return the additional (undeclared) properties.
81-
* @return the additional (undeclared) properties
82-
*/
83-
@JsonAnyGetter
84-
public Map<String, Object> getAdditionalProperties() {
85-
return this;
86-
}
87-
88-
/**
89-
* Return the additional (undeclared) property with the specified name.
90-
* @param key the name of the property
91-
* @return the additional (undeclared) property with the specified name
92-
*/
93-
public Object getAdditionalProperty(String key) {
94-
return this.get(key);
95-
}
9666

9767
@Override
9868
public boolean equals(Object o) {

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -64,36 +64,6 @@ public void setName(@javax.annotation.Nullable String name) {
6464
this.name = name;
6565
}
6666

67-
/**
68-
* Set the additional (undeclared) property with the specified name and value.
69-
* Creates the property if it does not already exist, otherwise replaces it.
70-
* @param key the name of the property
71-
* @param value the value of the property
72-
* @return self reference
73-
*/
74-
@JsonAnySetter
75-
public AdditionalPropertiesArray putAdditionalProperty(String key, List value) {
76-
this.put(key, value);
77-
return this;
78-
}
79-
80-
/**
81-
* Return the additional (undeclared) properties.
82-
* @return the additional (undeclared) properties
83-
*/
84-
@JsonAnyGetter
85-
public Map<String, List> getAdditionalProperties() {
86-
return this;
87-
}
88-
89-
/**
90-
* Return the additional (undeclared) property with the specified name.
91-
* @param key the name of the property
92-
* @return the additional (undeclared) property with the specified name
93-
*/
94-
public List getAdditionalProperty(String key) {
95-
return this.get(key);
96-
}
9767

9868
@Override
9969
public boolean equals(Object o) {

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -63,36 +63,6 @@ public void setName(@javax.annotation.Nullable String name) {
6363
this.name = name;
6464
}
6565

66-
/**
67-
* Set the additional (undeclared) property with the specified name and value.
68-
* Creates the property if it does not already exist, otherwise replaces it.
69-
* @param key the name of the property
70-
* @param value the value of the property
71-
* @return self reference
72-
*/
73-
@JsonAnySetter
74-
public AdditionalPropertiesBoolean putAdditionalProperty(String key, Boolean value) {
75-
this.put(key, value);
76-
return this;
77-
}
78-
79-
/**
80-
* Return the additional (undeclared) properties.
81-
* @return the additional (undeclared) properties
82-
*/
83-
@JsonAnyGetter
84-
public Map<String, Boolean> getAdditionalProperties() {
85-
return this;
86-
}
87-
88-
/**
89-
* Return the additional (undeclared) property with the specified name.
90-
* @param key the name of the property
91-
* @return the additional (undeclared) property with the specified name
92-
*/
93-
public Boolean getAdditionalProperty(String key) {
94-
return this.get(key);
95-
}
9666

9767
@Override
9868
public boolean equals(Object o) {

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -63,36 +63,6 @@ public void setName(@javax.annotation.Nullable String name) {
6363
this.name = name;
6464
}
6565

66-
/**
67-
* Set the additional (undeclared) property with the specified name and value.
68-
* Creates the property if it does not already exist, otherwise replaces it.
69-
* @param key the name of the property
70-
* @param value the value of the property
71-
* @return self reference
72-
*/
73-
@JsonAnySetter
74-
public AdditionalPropertiesInteger putAdditionalProperty(String key, Integer value) {
75-
this.put(key, value);
76-
return this;
77-
}
78-
79-
/**
80-
* Return the additional (undeclared) properties.
81-
* @return the additional (undeclared) properties
82-
*/
83-
@JsonAnyGetter
84-
public Map<String, Integer> getAdditionalProperties() {
85-
return this;
86-
}
87-
88-
/**
89-
* Return the additional (undeclared) property with the specified name.
90-
* @param key the name of the property
91-
* @return the additional (undeclared) property with the specified name
92-
*/
93-
public Integer getAdditionalProperty(String key) {
94-
return this.get(key);
95-
}
9666

9767
@Override
9868
public boolean equals(Object o) {

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -64,36 +64,6 @@ public void setName(@javax.annotation.Nullable String name) {
6464
this.name = name;
6565
}
6666

67-
/**
68-
* Set the additional (undeclared) property with the specified name and value.
69-
* Creates the property if it does not already exist, otherwise replaces it.
70-
* @param key the name of the property
71-
* @param value the value of the property
72-
* @return self reference
73-
*/
74-
@JsonAnySetter
75-
public AdditionalPropertiesNumber putAdditionalProperty(String key, BigDecimal value) {
76-
this.put(key, value);
77-
return this;
78-
}
79-
80-
/**
81-
* Return the additional (undeclared) properties.
82-
* @return the additional (undeclared) properties
83-
*/
84-
@JsonAnyGetter
85-
public Map<String, BigDecimal> getAdditionalProperties() {
86-
return this;
87-
}
88-
89-
/**
90-
* Return the additional (undeclared) property with the specified name.
91-
* @param key the name of the property
92-
* @return the additional (undeclared) property with the specified name
93-
*/
94-
public BigDecimal getAdditionalProperty(String key) {
95-
return this.get(key);
96-
}
9767

9868
@Override
9969
public boolean equals(Object o) {

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -63,36 +63,6 @@ public void setName(@javax.annotation.Nullable String name) {
6363
this.name = name;
6464
}
6565

66-
/**
67-
* Set the additional (undeclared) property with the specified name and value.
68-
* Creates the property if it does not already exist, otherwise replaces it.
69-
* @param key the name of the property
70-
* @param value the value of the property
71-
* @return self reference
72-
*/
73-
@JsonAnySetter
74-
public AdditionalPropertiesObject putAdditionalProperty(String key, Map value) {
75-
this.put(key, value);
76-
return this;
77-
}
78-
79-
/**
80-
* Return the additional (undeclared) properties.
81-
* @return the additional (undeclared) properties
82-
*/
83-
@JsonAnyGetter
84-
public Map<String, Map> getAdditionalProperties() {
85-
return this;
86-
}
87-
88-
/**
89-
* Return the additional (undeclared) property with the specified name.
90-
* @param key the name of the property
91-
* @return the additional (undeclared) property with the specified name
92-
*/
93-
public Map getAdditionalProperty(String key) {
94-
return this.get(key);
95-
}
9666

9767
@Override
9868
public boolean equals(Object o) {

samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -63,36 +63,6 @@ public void setName(@javax.annotation.Nullable String name) {
6363
this.name = name;
6464
}
6565

66-
/**
67-
* Set the additional (undeclared) property with the specified name and value.
68-
* Creates the property if it does not already exist, otherwise replaces it.
69-
* @param key the name of the property
70-
* @param value the value of the property
71-
* @return self reference
72-
*/
73-
@JsonAnySetter
74-
public AdditionalPropertiesString putAdditionalProperty(String key, String value) {
75-
this.put(key, value);
76-
return this;
77-
}
78-
79-
/**
80-
* Return the additional (undeclared) properties.
81-
* @return the additional (undeclared) properties
82-
*/
83-
@JsonAnyGetter
84-
public Map<String, String> getAdditionalProperties() {
85-
return this;
86-
}
87-
88-
/**
89-
* Return the additional (undeclared) property with the specified name.
90-
* @param key the name of the property
91-
* @return the additional (undeclared) property with the specified name
92-
*/
93-
public String getAdditionalProperty(String key) {
94-
return this.get(key);
95-
}
9666

9767
@Override
9868
public boolean equals(Object o) {

samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -59,36 +59,6 @@ public void setName(@javax.annotation.Nullable String name) {
5959
this.name = name;
6060
}
6161

62-
/**
63-
* Set the additional (undeclared) property with the specified name and value.
64-
* Creates the property if it does not already exist, otherwise replaces it.
65-
* @param key the name of the property
66-
* @param value the value of the property
67-
* @return self reference
68-
*/
69-
@JsonAnySetter
70-
public AdditionalPropertiesAnyType putAdditionalProperty(String key, Object value) {
71-
this.put(key, value);
72-
return this;
73-
}
74-
75-
/**
76-
* Return the additional (undeclared) properties.
77-
* @return the additional (undeclared) properties
78-
*/
79-
@JsonAnyGetter
80-
public Map<String, Object> getAdditionalProperties() {
81-
return this;
82-
}
83-
84-
/**
85-
* Return the additional (undeclared) property with the specified name.
86-
* @param key the name of the property
87-
* @return the additional (undeclared) property with the specified name
88-
*/
89-
public Object getAdditionalProperty(String key) {
90-
return this.get(key);
91-
}
9262

9363
@Override
9464
public boolean equals(Object o) {

samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -60,36 +60,6 @@ public void setName(@javax.annotation.Nullable String name) {
6060
this.name = name;
6161
}
6262

63-
/**
64-
* Set the additional (undeclared) property with the specified name and value.
65-
* Creates the property if it does not already exist, otherwise replaces it.
66-
* @param key the name of the property
67-
* @param value the value of the property
68-
* @return self reference
69-
*/
70-
@JsonAnySetter
71-
public AdditionalPropertiesArray putAdditionalProperty(String key, List value) {
72-
this.put(key, value);
73-
return this;
74-
}
75-
76-
/**
77-
* Return the additional (undeclared) properties.
78-
* @return the additional (undeclared) properties
79-
*/
80-
@JsonAnyGetter
81-
public Map<String, List> getAdditionalProperties() {
82-
return this;
83-
}
84-
85-
/**
86-
* Return the additional (undeclared) property with the specified name.
87-
* @param key the name of the property
88-
* @return the additional (undeclared) property with the specified name
89-
*/
90-
public List getAdditionalProperty(String key) {
91-
return this.get(key);
92-
}
9363

9464
@Override
9565
public boolean equals(Object o) {

0 commit comments

Comments
 (0)