Skip to content

Commit 4c2f091

Browse files
committed
Regenerate samples using library: spring-http-interface
1 parent 2be6901 commit 4c2f091

65 files changed

Lines changed: 632 additions & 472 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.

samples/client/petstore/spring-http-interface-noResponseEntity/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-reactive-noResponseEntity/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(WebClient client) {
18-
super(client);
17+
public MyConfiguration(WebClient myWebClient) { // separately created WebClient instance
18+
super(myWebClient);
1919
}
2020
}
2121
```

samples/client/petstore/spring-http-interface-reactive/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(WebClient client) {
18-
super(client);
17+
public MyConfiguration(WebClient myWebClient) { // separately created WebClient instance
18+
super(myWebClient);
1919
}
2020
}
2121
```

samples/client/petstore/spring-http-interface-springboot-4/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
```
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.13.0-SNAPSHOT
1+
7.21.0-SNAPSHOT

samples/client/petstore/spring-http-interface-useHttpServiceProxyFactoryInterfacesConfigurator/README.md

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

3-
[Spring Framework 6 HTTP Interface](https://docs.spring.io/spring-framework/docs/6.0.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

samples/client/petstore/spring-http-interface-useHttpServiceProxyFactoryInterfacesConfigurator/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<parent>
1313
<groupId>org.springframework.boot</groupId>
1414
<artifactId>spring-boot-starter-parent</artifactId>
15-
<version>3.1.3</version>
15+
<version>3.3.13</version>
1616
<relativePath/> <!-- lookup parent from repository -->
1717
</parent>
1818

@@ -46,7 +46,7 @@
4646
<dependencies>
4747
<dependency>
4848
<groupId>org.springframework.boot</groupId>
49-
<artifactId>spring-boot-starter-webflux</artifactId>
49+
<artifactId>spring-boot-starter-web</artifactId>
5050
</dependency>
5151
<!-- @Nullable annotation -->
5252
<dependency>
@@ -65,7 +65,7 @@
6565
<dependency>
6666
<groupId>org.openapitools</groupId>
6767
<artifactId>jackson-databind-nullable</artifactId>
68-
<version>0.2.6</version>
68+
<version>0.2.9</version>
6969
</dependency>
7070
<dependency>
7171
<groupId>org.springframework.boot</groupId>

samples/client/petstore/spring-http-interface-useHttpServiceProxyFactoryInterfacesConfigurator/src/main/java/org/openapitools/api/AnotherFakeApi.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (7.13.0-SNAPSHOT).
1+
/*
2+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (7.21.0-SNAPSHOT).
33
* https://openapi-generator.tech
44
* Do not edit the class manually.
55
*/
@@ -17,7 +17,7 @@
1717
import jakarta.annotation.Generated;
1818

1919

20-
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.13.0-SNAPSHOT")
20+
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.21.0-SNAPSHOT")
2121
public interface AnotherFakeApi {
2222

2323
/**

samples/client/petstore/spring-http-interface-useHttpServiceProxyFactoryInterfacesConfigurator/src/main/java/org/openapitools/api/FakeApi.java

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (7.13.0-SNAPSHOT).
1+
/*
2+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (7.21.0-SNAPSHOT).
33
* https://openapi-generator.tech
44
* Do not edit the class manually.
55
*/
@@ -12,6 +12,7 @@
1212
import org.openapitools.model.FileSchemaTestClass;
1313
import java.time.LocalDate;
1414
import java.util.Map;
15+
import org.springframework.lang.Nullable;
1516
import java.time.OffsetDateTime;
1617
import org.openapitools.model.OuterComposite;
1718
import org.openapitools.model.User;
@@ -27,7 +28,7 @@
2728
import jakarta.annotation.Generated;
2829

2930

30-
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.13.0-SNAPSHOT")
31+
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.21.0-SNAPSHOT")
3132
public interface FakeApi {
3233

3334
/**
@@ -62,7 +63,7 @@ ResponseEntity<Void> createXmlItem(
6263
contentType = "application/json"
6364
)
6465
ResponseEntity<Boolean> fakeOuterBooleanSerialize(
65-
@RequestBody(required = false) Boolean body
66+
@RequestBody(required = false) @Nullable Boolean body
6667
);
6768

6869

@@ -80,7 +81,7 @@ ResponseEntity<Boolean> fakeOuterBooleanSerialize(
8081
contentType = "application/json"
8182
)
8283
ResponseEntity<OuterComposite> fakeOuterCompositeSerialize(
83-
@RequestBody(required = false) OuterComposite outerComposite
84+
@RequestBody(required = false) @Nullable OuterComposite outerComposite
8485
);
8586

8687

@@ -98,7 +99,7 @@ ResponseEntity<OuterComposite> fakeOuterCompositeSerialize(
9899
contentType = "application/json"
99100
)
100101
ResponseEntity<BigDecimal> fakeOuterNumberSerialize(
101-
@RequestBody(required = false) BigDecimal body
102+
@RequestBody(required = false) @Nullable BigDecimal body
102103
);
103104

104105

@@ -116,7 +117,7 @@ ResponseEntity<BigDecimal> fakeOuterNumberSerialize(
116117
contentType = "application/json"
117118
)
118119
ResponseEntity<String> fakeOuterStringSerialize(
119-
@RequestBody(required = false) String body
120+
@RequestBody(required = false) @Nullable String body
120121
);
121122

122123

@@ -242,12 +243,12 @@ ResponseEntity<Void> testEndpointParameters(
242243
contentType = "application/x-www-form-urlencoded"
243244
)
244245
ResponseEntity<Void> testEnumParameters(
245-
@RequestHeader(value = "enum_header_string_array", required = false) List<String> enumHeaderStringArray,
246+
@RequestHeader(value = "enum_header_string_array", required = false) @Nullable List<String> enumHeaderStringArray,
246247
@RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString,
247-
@RequestParam(value = "enum_query_string_array", required = false) List<String> enumQueryStringArray,
248+
@RequestParam(value = "enum_query_string_array", required = false) @Nullable List<String> enumQueryStringArray,
248249
@RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString,
249-
@RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,
250-
@RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,
250+
@RequestParam(value = "enum_query_integer", required = false) @Nullable Integer enumQueryInteger,
251+
@RequestParam(value = "enum_query_double", required = false) @Nullable Double enumQueryDouble,
251252
@RequestPart(value = "enum_form_string_array", required = false) List<String> enumFormStringArray,
252253
@RequestParam(value = "enum_form_string", required = false) String enumFormString
253254
);
@@ -274,9 +275,9 @@ ResponseEntity<Void> testGroupParameters(
274275
@RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,
275276
@RequestHeader(value = "required_boolean_group", required = true) Boolean requiredBooleanGroup,
276277
@RequestParam(value = "required_int64_group", required = true) Long requiredInt64Group,
277-
@RequestParam(value = "string_group", required = false) Integer stringGroup,
278-
@RequestHeader(value = "boolean_group", required = false) Boolean booleanGroup,
279-
@RequestParam(value = "int64_group", required = false) Long int64Group
278+
@RequestParam(value = "string_group", required = false) @Nullable Integer stringGroup,
279+
@RequestHeader(value = "boolean_group", required = false) @Nullable Boolean booleanGroup,
280+
@RequestParam(value = "int64_group", required = false) @Nullable Long int64Group
280281
);
281282

282283

samples/client/petstore/spring-http-interface-useHttpServiceProxyFactoryInterfacesConfigurator/src/main/java/org/openapitools/api/FakeClassnameTags123Api.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (7.13.0-SNAPSHOT).
1+
/*
2+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (7.21.0-SNAPSHOT).
33
* https://openapi-generator.tech
44
* Do not edit the class manually.
55
*/
@@ -17,7 +17,7 @@
1717
import jakarta.annotation.Generated;
1818

1919

20-
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.13.0-SNAPSHOT")
20+
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.21.0-SNAPSHOT")
2121
public interface FakeClassnameTags123Api {
2222

2323
/**

0 commit comments

Comments
 (0)