Skip to content

Commit 8b25a3a

Browse files
committed
regenerate samples after merge of master
1 parent 6a4db4c commit 8b25a3a

160 files changed

Lines changed: 804 additions & 641 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

bin/configs/spring-http-interface-bean-validation.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ additionalProperties:
1515
documentationProvider: "springdoc"
1616
# annotation provider should be ignored
1717
annotationLibrary: "swagger2"
18+
useSpringBoot3: "true"

bin/configs/spring-http-interface-reactive-bean-validation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ additionalProperties:
1414
documentationProvider: "springfox"
1515
# annotation provider should be ignored
1616
annotationLibrary: "swagger1"
17-
17+
useSpringBoot3: "true"

samples/client/petstore/spring-http-interface-bean-validation/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# OpenAPI generated API stub
22

3-
[Spring Framework 6.1 HTTP Interface](https://docs.spring.io/spring-framework/docs/6.1.0/reference/html/integration.html#rest-http-interface)
3+
[Spring Framework 6.1 HTTP Interface](https://docs.spring.io/spring-framework/reference/integration/rest-clients.html#rest-http-interface)
44

55

66
## Overview
@@ -14,8 +14,8 @@ To use auto-generated interfaces you have to create your own configuration which
1414
@Configuration
1515
public class MyConfiguration extends org.openapitools.configuration.HttpInterfacesAbstractConfigurator {
1616

17-
public MyConfiguration(RestClient client) {
18-
super(client);
17+
public MyConfiguration(RestClient myRestClient) { // separately created RestClient instance
18+
super(myRestClient);
1919
}
2020
}
2121
```

samples/client/petstore/spring-http-interface-bean-validation/src/main/java/org/openapitools/model/AdditionalPropertiesAnyTypeDto.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public AdditionalPropertiesAnyTypeDto name(@Nullable String name) {
4444
return name;
4545
}
4646

47+
@JsonProperty("name")
4748
public void setName(@Nullable String name) {
4849
this.name = name;
4950
}
@@ -119,10 +120,7 @@ public String toString() {
119120
* (except the first line).
120121
*/
121122
private String toIndentedString(@Nullable Object o) {
122-
if (o == null) {
123-
return "null";
124-
}
125-
return o.toString().replace("\n", "\n ");
123+
return o == null ? "null" : o.toString().replace("\n", "\n ");
126124
}
127125
}
128126

samples/client/petstore/spring-http-interface-bean-validation/src/main/java/org/openapitools/model/AdditionalPropertiesArrayDto.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public AdditionalPropertiesArrayDto name(@Nullable String name) {
4545
return name;
4646
}
4747

48+
@JsonProperty("name")
4849
public void setName(@Nullable String name) {
4950
this.name = name;
5051
}
@@ -120,10 +121,7 @@ public String toString() {
120121
* (except the first line).
121122
*/
122123
private String toIndentedString(@Nullable Object o) {
123-
if (o == null) {
124-
return "null";
125-
}
126-
return o.toString().replace("\n", "\n ");
124+
return o == null ? "null" : o.toString().replace("\n", "\n ");
127125
}
128126
}
129127

samples/client/petstore/spring-http-interface-bean-validation/src/main/java/org/openapitools/model/AdditionalPropertiesBooleanDto.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public AdditionalPropertiesBooleanDto name(@Nullable String name) {
4444
return name;
4545
}
4646

47+
@JsonProperty("name")
4748
public void setName(@Nullable String name) {
4849
this.name = name;
4950
}
@@ -119,10 +120,7 @@ public String toString() {
119120
* (except the first line).
120121
*/
121122
private String toIndentedString(@Nullable Object o) {
122-
if (o == null) {
123-
return "null";
124-
}
125-
return o.toString().replace("\n", "\n ");
123+
return o == null ? "null" : o.toString().replace("\n", "\n ");
126124
}
127125
}
128126

samples/client/petstore/spring-http-interface-bean-validation/src/main/java/org/openapitools/model/AdditionalPropertiesClassDto.java

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ public Map<String, String> getMapString() {
8383
return mapString;
8484
}
8585

86+
@JsonProperty("map_string")
8687
public void setMapString(Map<String, String> mapString) {
8788
this.mapString = mapString;
8889
}
@@ -110,6 +111,7 @@ public Map<String, BigDecimal> getMapNumber() {
110111
return mapNumber;
111112
}
112113

114+
@JsonProperty("map_number")
113115
public void setMapNumber(Map<String, BigDecimal> mapNumber) {
114116
this.mapNumber = mapNumber;
115117
}
@@ -137,6 +139,7 @@ public Map<String, Integer> getMapInteger() {
137139
return mapInteger;
138140
}
139141

142+
@JsonProperty("map_integer")
140143
public void setMapInteger(Map<String, Integer> mapInteger) {
141144
this.mapInteger = mapInteger;
142145
}
@@ -164,6 +167,7 @@ public Map<String, Boolean> getMapBoolean() {
164167
return mapBoolean;
165168
}
166169

170+
@JsonProperty("map_boolean")
167171
public void setMapBoolean(Map<String, Boolean> mapBoolean) {
168172
this.mapBoolean = mapBoolean;
169173
}
@@ -191,6 +195,7 @@ public Map<String, List<Integer>> getMapArrayInteger() {
191195
return mapArrayInteger;
192196
}
193197

198+
@JsonProperty("map_array_integer")
194199
public void setMapArrayInteger(Map<String, List<Integer>> mapArrayInteger) {
195200
this.mapArrayInteger = mapArrayInteger;
196201
}
@@ -218,6 +223,7 @@ public Map<String, List<Object>> getMapArrayAnytype() {
218223
return mapArrayAnytype;
219224
}
220225

226+
@JsonProperty("map_array_anytype")
221227
public void setMapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) {
222228
this.mapArrayAnytype = mapArrayAnytype;
223229
}
@@ -245,6 +251,7 @@ public Map<String, Map<String, String>> getMapMapString() {
245251
return mapMapString;
246252
}
247253

254+
@JsonProperty("map_map_string")
248255
public void setMapMapString(Map<String, Map<String, String>> mapMapString) {
249256
this.mapMapString = mapMapString;
250257
}
@@ -272,6 +279,7 @@ public Map<String, Map<String, Object>> getMapMapAnytype() {
272279
return mapMapAnytype;
273280
}
274281

282+
@JsonProperty("map_map_anytype")
275283
public void setMapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) {
276284
this.mapMapAnytype = mapMapAnytype;
277285
}
@@ -291,6 +299,7 @@ public AdditionalPropertiesClassDto anytype1(@Nullable Object anytype1) {
291299
return anytype1;
292300
}
293301

302+
@JsonProperty("anytype_1")
294303
public void setAnytype1(@Nullable Object anytype1) {
295304
this.anytype1 = anytype1;
296305
}
@@ -329,6 +338,7 @@ public AdditionalPropertiesClassDto anytype3(@Nullable Object anytype3) {
329338
return anytype3;
330339
}
331340

341+
@JsonProperty("anytype_3")
332342
public void setAnytype3(@Nullable Object anytype3) {
333343
this.anytype3 = anytype3;
334344
}
@@ -395,10 +405,7 @@ public String toString() {
395405
* (except the first line).
396406
*/
397407
private String toIndentedString(@Nullable Object o) {
398-
if (o == null) {
399-
return "null";
400-
}
401-
return o.toString().replace("\n", "\n ");
408+
return o == null ? "null" : o.toString().replace("\n", "\n ");
402409
}
403410
}
404411

samples/client/petstore/spring-http-interface-bean-validation/src/main/java/org/openapitools/model/AdditionalPropertiesIntegerDto.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public AdditionalPropertiesIntegerDto name(@Nullable String name) {
4444
return name;
4545
}
4646

47+
@JsonProperty("name")
4748
public void setName(@Nullable String name) {
4849
this.name = name;
4950
}
@@ -119,10 +120,7 @@ public String toString() {
119120
* (except the first line).
120121
*/
121122
private String toIndentedString(@Nullable Object o) {
122-
if (o == null) {
123-
return "null";
124-
}
125-
return o.toString().replace("\n", "\n ");
123+
return o == null ? "null" : o.toString().replace("\n", "\n ");
126124
}
127125
}
128126

samples/client/petstore/spring-http-interface-bean-validation/src/main/java/org/openapitools/model/AdditionalPropertiesNumberDto.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public AdditionalPropertiesNumberDto name(@Nullable String name) {
4545
return name;
4646
}
4747

48+
@JsonProperty("name")
4849
public void setName(@Nullable String name) {
4950
this.name = name;
5051
}
@@ -120,10 +121,7 @@ public String toString() {
120121
* (except the first line).
121122
*/
122123
private String toIndentedString(@Nullable Object o) {
123-
if (o == null) {
124-
return "null";
125-
}
126-
return o.toString().replace("\n", "\n ");
124+
return o == null ? "null" : o.toString().replace("\n", "\n ");
127125
}
128126
}
129127

samples/client/petstore/spring-http-interface-bean-validation/src/main/java/org/openapitools/model/AdditionalPropertiesObjectDto.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public AdditionalPropertiesObjectDto name(@Nullable String name) {
4545
return name;
4646
}
4747

48+
@JsonProperty("name")
4849
public void setName(@Nullable String name) {
4950
this.name = name;
5051
}
@@ -120,10 +121,7 @@ public String toString() {
120121
* (except the first line).
121122
*/
122123
private String toIndentedString(@Nullable Object o) {
123-
if (o == null) {
124-
return "null";
125-
}
126-
return o.toString().replace("\n", "\n ");
124+
return o == null ? "null" : o.toString().replace("\n", "\n ");
127125
}
128126
}
129127

0 commit comments

Comments
 (0)