From 15d86e1dfcad4f2e412223bc8f32adcd30b21e5a Mon Sep 17 00:00:00 2001 From: Subham Ashok Date: Sun, 20 Sep 2026 18:08:37 +0530 Subject: [PATCH 1/2] [BUG][JAVA] Add @Nullable to resttemplate api method parameters Fixes #23656 by using nullableArgumentForApi in resttemplate api.mustache. This ensures optional and nullable operation parameters are annotated with @Nullable when useJspecify is enabled, matching webclient and restclient. --- .../Java/libraries/resttemplate/api.mustache | 4 +-- .../codegen/java/JavaClientCodegenTest.java | 32 ++++++++----------- .../org/openapitools/client/api/FooApi.java | 4 +-- .../openapitools/client/api/UploadApi.java | 8 ++--- 4 files changed, 22 insertions(+), 26 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/api.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/api.mustache index eb0f4b50c21c..2e3c78db4fe7 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/api.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/api.mustache @@ -76,7 +76,7 @@ public class {{classname}} extends BaseApi { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public {{#returnType}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{.}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{.}}}{{/isResponseFile}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.Resource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws RestClientException { + public {{#returnType}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{.}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{.}}}{{/isResponseFile}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{>nullableArgumentForApi}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws RestClientException { {{#returnType}} return {{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}).getBody(); {{/returnType}} @@ -107,7 +107,7 @@ public class {{classname}} extends BaseApi { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public ResponseEntity<{{#returnType}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{.}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{.}}}{{/isResponseFile}}{{/returnType}}{{^returnType}}Void{{/returnType}}> {{operationId}}WithHttpInfo({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.Resource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws RestClientException { + public ResponseEntity<{{#returnType}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{.}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{.}}}{{/isResponseFile}}{{/returnType}}{{^returnType}}Void{{/returnType}}> {{operationId}}WithHttpInfo({{#allParams}}{{>nullableArgumentForApi}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws RestClientException { Object localVarPostBody = {{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}}; {{#allParams}}{{#required}} // verify the required parameter '{{paramName}}' is set 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 4b5f72bf9fb1..3a781f63d9c2 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 @@ -4823,15 +4823,13 @@ public void testJspecify(String library, int springBootVersion, boolean hasJspec "private @Nullable VirusScanEnum virusScan", "FileContent.Builder virusScan(@Nullable VirusScanEnum virusScan)" ); - if (!RESTTEMPLATE.equals(library)) { - JavaFileAssert.assertThat(files.get("FooApi.java")) - .fileContains("fooDtParamGet(java.time.@Nullable Instant dtParam, java.time.@Nullable Instant dtQuery, java.time.@Nullable Instant dtCookie, @Nullable String color)"); - JavaFileAssert.assertThat(files.get("FooApi.java")) - .fileContains( - "import org.jspecify.annotations.Nullable;", - "(java.time.@Nullable Instant dtParam, java.time.@Nullable Instant dtQuery, java.time.@Nullable Instant dtCookie, @Nullable String color)" - ); - } + JavaFileAssert.assertThat(files.get("FooApi.java")) + .fileContains("fooDtParamGet(java.time.@Nullable Instant dtParam, java.time.@Nullable Instant dtQuery, java.time.@Nullable Instant dtCookie, @Nullable String color)"); + JavaFileAssert.assertThat(files.get("FooApi.java")) + .fileContains( + "import org.jspecify.annotations.Nullable;", + "(java.time.@Nullable Instant dtParam, java.time.@Nullable Instant dtQuery, java.time.@Nullable Instant dtCookie, @Nullable String color)" + ); JavaFileAssert.assertThat(files.get("api/package-info.java")) .fileContains("@org.jspecify.annotations.NullMarked"); JavaFileAssert.assertThat(files.get("model/package-info.java")) @@ -4891,15 +4889,13 @@ public void testJspecify_openapiNullable(String library, int springBootVersion, "public Foo(@JsonProperty(JSON_PROPERTY_DT) java.time.@Nullable Instant dt, @JsonProperty(JSON_PROPERTY_NULLABLE_DT) java.time.@Nullable Instant nullableDt, @JsonProperty(JSON_PROPERTY_BINARY) @Nullable File binary, @JsonProperty(JSON_PROPERTY_NULLABLE_BINARY) @Nullable File nullableBinary, @JsonProperty(JSON_PROPERTY_LIST_OF_DT) @Nullable List listOfDt, @JsonProperty(JSON_PROPERTY_LIST_MIN_INTEMS) @Nullable List listMinIntems, @JsonProperty(JSON_PROPERTY_NULLABLE_LIST_MIN_INTEMS) @Nullable List nullableListMinIntems, @JsonProperty(JSON_PROPERTY_REQUIRED_DT) java.time.Instant requiredDt, @JsonProperty(JSON_PROPERTY_NUMBER) java.math.@Nullable BigDecimal number, @JsonProperty(JSON_PROPERTY_NULLABLE_NUMBER) java.math.@Nullable BigDecimal nullableNumber, @JsonProperty(JSON_PROPERTY_COLOR) @Nullable String color, @JsonProperty(JSON_PROPERTY_REQUIRED_COLOR) String requiredColor, @JsonProperty(JSON_PROPERTY_NULLABLE_COLOR) @Nullable String nullableColor) {" ); } - if (!RESTTEMPLATE.equals(library)) { - JavaFileAssert.assertThat(files.get("FooApi.java")) - .fileContains("fooDtParamGet(java.time.@Nullable Instant dtParam, java.time.@Nullable Instant dtQuery, java.time.@Nullable Instant dtCookie, @Nullable String color)"); - JavaFileAssert.assertThat(files.get("FooApi.java")) - .fileContains( - "import org.jspecify.annotations.Nullable;", - "(java.time.@Nullable Instant dtParam, java.time.@Nullable Instant dtQuery, java.time.@Nullable Instant dtCookie, @Nullable String color)" - ); - } + JavaFileAssert.assertThat(files.get("FooApi.java")) + .fileContains("fooDtParamGet(java.time.@Nullable Instant dtParam, java.time.@Nullable Instant dtQuery, java.time.@Nullable Instant dtCookie, @Nullable String color)"); + JavaFileAssert.assertThat(files.get("FooApi.java")) + .fileContains( + "import org.jspecify.annotations.Nullable;", + "(java.time.@Nullable Instant dtParam, java.time.@Nullable Instant dtQuery, java.time.@Nullable Instant dtCookie, @Nullable String color)" + ); JavaFileAssert.assertThat(files.get("api/package-info.java")) .fileContains("@org.jspecify.annotations.NullMarked"); JavaFileAssert.assertThat(files.get("model/package-info.java")) diff --git a/samples/client/petstore/java/resttemplate-springBoot4-jackson3-jspecify/src/main/java/org/openapitools/client/api/FooApi.java b/samples/client/petstore/java/resttemplate-springBoot4-jackson3-jspecify/src/main/java/org/openapitools/client/api/FooApi.java index 392e33f924a7..142a49b97ecf 100644 --- a/samples/client/petstore/java/resttemplate-springBoot4-jackson3-jspecify/src/main/java/org/openapitools/client/api/FooApi.java +++ b/samples/client/petstore/java/resttemplate-springBoot4-jackson3-jspecify/src/main/java/org/openapitools/client/api/FooApi.java @@ -50,7 +50,7 @@ public FooApi(ApiClient apiClient) { * @return Foo * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Foo fooDtParamGet(java.time.Instant dtParam, java.time.Instant dtQuery, java.time.Instant dtCookie, String color) throws RestClientException { + public Foo fooDtParamGet(java.time.@Nullable Instant dtParam, java.time.@Nullable Instant dtQuery, java.time.@Nullable Instant dtCookie, @Nullable String color) throws RestClientException { return fooDtParamGetWithHttpInfo(dtParam, dtQuery, dtCookie, color).getBody(); } @@ -65,7 +65,7 @@ public Foo fooDtParamGet(java.time.Instant dtParam, java.time.Instant dtQuery, j * @return ResponseEntity<Foo> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fooDtParamGetWithHttpInfo(java.time.Instant dtParam, java.time.Instant dtQuery, java.time.Instant dtCookie, String color) throws RestClientException { + public ResponseEntity fooDtParamGetWithHttpInfo(java.time.@Nullable Instant dtParam, java.time.@Nullable Instant dtQuery, java.time.@Nullable Instant dtCookie, @Nullable String color) throws RestClientException { Object localVarPostBody = null; // create path and map variables diff --git a/samples/client/petstore/java/resttemplate-springBoot4-jackson3-jspecify/src/main/java/org/openapitools/client/api/UploadApi.java b/samples/client/petstore/java/resttemplate-springBoot4-jackson3-jspecify/src/main/java/org/openapitools/client/api/UploadApi.java index 0a144089ca6d..0d89ec72f762 100644 --- a/samples/client/petstore/java/resttemplate-springBoot4-jackson3-jspecify/src/main/java/org/openapitools/client/api/UploadApi.java +++ b/samples/client/petstore/java/resttemplate-springBoot4-jackson3-jspecify/src/main/java/org/openapitools/client/api/UploadApi.java @@ -45,7 +45,7 @@ public UploadApi(ApiClient apiClient) { * @param _file (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void uploadFilesPost(List _file) throws RestClientException { + public void uploadFilesPost(@Nullable List _file) throws RestClientException { uploadFilesPostWithHttpInfo(_file); } @@ -57,7 +57,7 @@ public void uploadFilesPost(List _file) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity uploadFilesPostWithHttpInfo(List _file) throws RestClientException { + public ResponseEntity uploadFilesPostWithHttpInfo(@Nullable List _file) throws RestClientException { Object localVarPostBody = null; @@ -88,7 +88,7 @@ public ResponseEntity uploadFilesPostWithHttpInfo(List _file) throws * @param _file (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void uploadPost(File _file) throws RestClientException { + public void uploadPost(@Nullable File _file) throws RestClientException { uploadPostWithHttpInfo(_file); } @@ -100,7 +100,7 @@ public void uploadPost(File _file) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity uploadPostWithHttpInfo(File _file) throws RestClientException { + public ResponseEntity uploadPostWithHttpInfo(@Nullable File _file) throws RestClientException { Object localVarPostBody = null; From 69f0fd4e697fbd3bbf87f4eb0234ccf5a81de3d9 Mon Sep 17 00:00:00 2001 From: Subham Ashok Date: Mon, 21 Sep 2026 00:00:34 +0530 Subject: [PATCH 2/2] Update resttemplate samples --- .../org/openapitools/client/api/BodyApi.java | 36 ++++----- .../org/openapitools/client/api/FormApi.java | 12 +-- .../openapitools/client/api/HeaderApi.java | 4 +- .../org/openapitools/client/api/PathApi.java | 4 +- .../org/openapitools/client/api/QueryApi.java | 44 +++++----- .../org/openapitools/client/api/UserApi.java | 4 +- .../org/openapitools/client/api/PetApi.java | 32 ++++---- .../org/openapitools/client/api/StoreApi.java | 12 +-- .../org/openapitools/client/api/UserApi.java | 28 +++---- .../org/openapitools/client/api/PetApi.java | 4 +- .../org/openapitools/client/api/PetApi.java | 4 +- .../org/openapitools/client/api/PetApi.java | 32 ++++---- .../org/openapitools/client/api/StoreApi.java | 12 +-- .../org/openapitools/client/api/UserApi.java | 28 +++---- .../org/openapitools/client/api/PetApi.java | 32 ++++---- .../org/openapitools/client/api/StoreApi.java | 12 +-- .../org/openapitools/client/api/UserApi.java | 28 +++---- .../client/api/AnotherFakeApi.java | 4 +- .../org/openapitools/client/api/FakeApi.java | 80 +++++++++---------- .../client/api/FakeClassnameTags123Api.java | 4 +- .../org/openapitools/client/api/PetApi.java | 36 ++++----- .../org/openapitools/client/api/StoreApi.java | 12 +-- .../org/openapitools/client/api/UserApi.java | 28 +++---- .../client/api/AnotherFakeApi.java | 4 +- .../org/openapitools/client/api/FakeApi.java | 80 +++++++++---------- .../client/api/FakeClassnameTags123Api.java | 4 +- .../org/openapitools/client/api/PetApi.java | 36 ++++----- .../org/openapitools/client/api/StoreApi.java | 12 +-- .../org/openapitools/client/api/UserApi.java | 28 +++---- 29 files changed, 328 insertions(+), 328 deletions(-) diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/BodyApi.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/BodyApi.java index d0559756a330..d13fb9805cab 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/BodyApi.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/BodyApi.java @@ -87,7 +87,7 @@ public ResponseEntity testBinaryGifWithHttpInfo() throws RestClientExcepti * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testBodyApplicationOctetstreamBinary(File body) throws RestClientException { + public String testBodyApplicationOctetstreamBinary(@javax.annotation.Nullable File body) throws RestClientException { return testBodyApplicationOctetstreamBinaryWithHttpInfo(body).getBody(); } @@ -99,7 +99,7 @@ public String testBodyApplicationOctetstreamBinary(File body) throws RestClientE * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testBodyApplicationOctetstreamBinaryWithHttpInfo(File body) throws RestClientException { + public ResponseEntity testBodyApplicationOctetstreamBinaryWithHttpInfo(@javax.annotation.Nullable File body) throws RestClientException { Object localVarPostBody = body; @@ -130,7 +130,7 @@ public ResponseEntity testBodyApplicationOctetstreamBinaryWithHttpInfo(F * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testBodyMultipartFormdataArrayOfBinary(List files) throws RestClientException { + public String testBodyMultipartFormdataArrayOfBinary(@javax.annotation.Nonnull List files) throws RestClientException { return testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(files).getBody(); } @@ -142,7 +142,7 @@ public String testBodyMultipartFormdataArrayOfBinary(List files) throws Re * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(List files) throws RestClientException { + public ResponseEntity testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(@javax.annotation.Nonnull List files) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'files' is set @@ -181,7 +181,7 @@ public ResponseEntity testBodyMultipartFormdataArrayOfBinaryWithHttpInfo * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testBodyMultipartFormdataSingleBinary(File myFile) throws RestClientException { + public String testBodyMultipartFormdataSingleBinary(@javax.annotation.Nullable File myFile) throws RestClientException { return testBodyMultipartFormdataSingleBinaryWithHttpInfo(myFile).getBody(); } @@ -193,7 +193,7 @@ public String testBodyMultipartFormdataSingleBinary(File myFile) throws RestClie * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testBodyMultipartFormdataSingleBinaryWithHttpInfo(File myFile) throws RestClientException { + public ResponseEntity testBodyMultipartFormdataSingleBinaryWithHttpInfo(@javax.annotation.Nullable File myFile) throws RestClientException { Object localVarPostBody = null; @@ -227,7 +227,7 @@ public ResponseEntity testBodyMultipartFormdataSingleBinaryWithHttpInfo( * @return Pet * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Pet testEchoBodyAllOfPet(Pet pet) throws RestClientException { + public Pet testEchoBodyAllOfPet(@javax.annotation.Nullable Pet pet) throws RestClientException { return testEchoBodyAllOfPetWithHttpInfo(pet).getBody(); } @@ -239,7 +239,7 @@ public Pet testEchoBodyAllOfPet(Pet pet) throws RestClientException { * @return ResponseEntity<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEchoBodyAllOfPetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity testEchoBodyAllOfPetWithHttpInfo(@javax.annotation.Nullable Pet pet) throws RestClientException { Object localVarPostBody = pet; @@ -270,7 +270,7 @@ public ResponseEntity testEchoBodyAllOfPetWithHttpInfo(Pet pet) throws Rest * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testEchoBodyFreeFormObjectResponseString(Object body) throws RestClientException { + public String testEchoBodyFreeFormObjectResponseString(@javax.annotation.Nullable Object body) throws RestClientException { return testEchoBodyFreeFormObjectResponseStringWithHttpInfo(body).getBody(); } @@ -282,7 +282,7 @@ public String testEchoBodyFreeFormObjectResponseString(Object body) throws RestC * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEchoBodyFreeFormObjectResponseStringWithHttpInfo(Object body) throws RestClientException { + public ResponseEntity testEchoBodyFreeFormObjectResponseStringWithHttpInfo(@javax.annotation.Nullable Object body) throws RestClientException { Object localVarPostBody = body; @@ -313,7 +313,7 @@ public ResponseEntity testEchoBodyFreeFormObjectResponseStringWithHttpIn * @return Pet * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Pet testEchoBodyPet(Pet pet) throws RestClientException { + public Pet testEchoBodyPet(@javax.annotation.Nullable Pet pet) throws RestClientException { return testEchoBodyPetWithHttpInfo(pet).getBody(); } @@ -325,7 +325,7 @@ public Pet testEchoBodyPet(Pet pet) throws RestClientException { * @return ResponseEntity<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEchoBodyPetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity testEchoBodyPetWithHttpInfo(@javax.annotation.Nullable Pet pet) throws RestClientException { Object localVarPostBody = pet; @@ -356,7 +356,7 @@ public ResponseEntity testEchoBodyPetWithHttpInfo(Pet pet) throws RestClien * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testEchoBodyPetResponseString(Pet pet) throws RestClientException { + public String testEchoBodyPetResponseString(@javax.annotation.Nullable Pet pet) throws RestClientException { return testEchoBodyPetResponseStringWithHttpInfo(pet).getBody(); } @@ -368,7 +368,7 @@ public String testEchoBodyPetResponseString(Pet pet) throws RestClientException * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEchoBodyPetResponseStringWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity testEchoBodyPetResponseStringWithHttpInfo(@javax.annotation.Nullable Pet pet) throws RestClientException { Object localVarPostBody = pet; @@ -399,7 +399,7 @@ public ResponseEntity testEchoBodyPetResponseStringWithHttpInfo(Pet pet) * @return StringEnumRef * @throws RestClientException if an error occurs while attempting to invoke the API */ - public StringEnumRef testEchoBodyStringEnum(String body) throws RestClientException { + public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable String body) throws RestClientException { return testEchoBodyStringEnumWithHttpInfo(body).getBody(); } @@ -411,7 +411,7 @@ public StringEnumRef testEchoBodyStringEnum(String body) throws RestClientExcept * @return ResponseEntity<StringEnumRef> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEchoBodyStringEnumWithHttpInfo(String body) throws RestClientException { + public ResponseEntity testEchoBodyStringEnumWithHttpInfo(@javax.annotation.Nullable String body) throws RestClientException { Object localVarPostBody = body; @@ -442,7 +442,7 @@ public ResponseEntity testEchoBodyStringEnumWithHttpInfo(String b * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testEchoBodyTagResponseString(Tag tag) throws RestClientException { + public String testEchoBodyTagResponseString(@javax.annotation.Nullable Tag tag) throws RestClientException { return testEchoBodyTagResponseStringWithHttpInfo(tag).getBody(); } @@ -454,7 +454,7 @@ public String testEchoBodyTagResponseString(Tag tag) throws RestClientException * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEchoBodyTagResponseStringWithHttpInfo(Tag tag) throws RestClientException { + public ResponseEntity testEchoBodyTagResponseStringWithHttpInfo(@javax.annotation.Nullable Tag tag) throws RestClientException { Object localVarPostBody = tag; diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/FormApi.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/FormApi.java index 3dd8b83c280c..9767fb439550 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/FormApi.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/FormApi.java @@ -47,7 +47,7 @@ public FormApi(ApiClient apiClient) { * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testFormIntegerBooleanString(Integer integerForm, Boolean booleanForm, String stringForm) throws RestClientException { + public String testFormIntegerBooleanString(@javax.annotation.Nullable Integer integerForm, @javax.annotation.Nullable Boolean booleanForm, @javax.annotation.Nullable String stringForm) throws RestClientException { return testFormIntegerBooleanStringWithHttpInfo(integerForm, booleanForm, stringForm).getBody(); } @@ -61,7 +61,7 @@ public String testFormIntegerBooleanString(Integer integerForm, Boolean booleanF * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testFormIntegerBooleanStringWithHttpInfo(Integer integerForm, Boolean booleanForm, String stringForm) throws RestClientException { + public ResponseEntity testFormIntegerBooleanStringWithHttpInfo(@javax.annotation.Nullable Integer integerForm, @javax.annotation.Nullable Boolean booleanForm, @javax.annotation.Nullable String stringForm) throws RestClientException { Object localVarPostBody = null; @@ -99,7 +99,7 @@ public ResponseEntity testFormIntegerBooleanStringWithHttpInfo(Integer i * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testFormObjectMultipart(TestFormObjectMultipartRequestMarker marker) throws RestClientException { + public String testFormObjectMultipart(@javax.annotation.Nonnull TestFormObjectMultipartRequestMarker marker) throws RestClientException { return testFormObjectMultipartWithHttpInfo(marker).getBody(); } @@ -111,7 +111,7 @@ public String testFormObjectMultipart(TestFormObjectMultipartRequestMarker marke * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testFormObjectMultipartWithHttpInfo(TestFormObjectMultipartRequestMarker marker) throws RestClientException { + public ResponseEntity testFormObjectMultipartWithHttpInfo(@javax.annotation.Nonnull TestFormObjectMultipartRequestMarker marker) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'marker' is set @@ -155,7 +155,7 @@ public ResponseEntity testFormObjectMultipartWithHttpInfo(TestFormObject * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testFormOneof(String form1, Integer form2, String form3, Boolean form4, Long id, String name) throws RestClientException { + public String testFormOneof(@javax.annotation.Nullable String form1, @javax.annotation.Nullable Integer form2, @javax.annotation.Nullable String form3, @javax.annotation.Nullable Boolean form4, @javax.annotation.Nullable Long id, @javax.annotation.Nullable String name) throws RestClientException { return testFormOneofWithHttpInfo(form1, form2, form3, form4, id, name).getBody(); } @@ -172,7 +172,7 @@ public String testFormOneof(String form1, Integer form2, String form3, Boolean f * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testFormOneofWithHttpInfo(String form1, Integer form2, String form3, Boolean form4, Long id, String name) throws RestClientException { + public ResponseEntity testFormOneofWithHttpInfo(@javax.annotation.Nullable String form1, @javax.annotation.Nullable Integer form2, @javax.annotation.Nullable String form3, @javax.annotation.Nullable Boolean form4, @javax.annotation.Nullable Long id, @javax.annotation.Nullable String name) throws RestClientException { Object localVarPostBody = null; diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/HeaderApi.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/HeaderApi.java index 2211c839c8fc..2f322b15622c 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/HeaderApi.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/HeaderApi.java @@ -49,7 +49,7 @@ public HeaderApi(ApiClient apiClient) { * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testHeaderIntegerBooleanStringEnums(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader) throws RestClientException { + public String testHeaderIntegerBooleanStringEnums(@javax.annotation.Nullable Integer integerHeader, @javax.annotation.Nullable Boolean booleanHeader, @javax.annotation.Nullable String stringHeader, @javax.annotation.Nullable String enumNonrefStringHeader, @javax.annotation.Nullable StringEnumRef enumRefStringHeader) throws RestClientException { return testHeaderIntegerBooleanStringEnumsWithHttpInfo(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader).getBody(); } @@ -65,7 +65,7 @@ public String testHeaderIntegerBooleanStringEnums(Integer integerHeader, Boolean * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testHeaderIntegerBooleanStringEnumsWithHttpInfo(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader) throws RestClientException { + public ResponseEntity testHeaderIntegerBooleanStringEnumsWithHttpInfo(@javax.annotation.Nullable Integer integerHeader, @javax.annotation.Nullable Boolean booleanHeader, @javax.annotation.Nullable String stringHeader, @javax.annotation.Nullable String enumNonrefStringHeader, @javax.annotation.Nullable StringEnumRef enumRefStringHeader) throws RestClientException { Object localVarPostBody = null; diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/PathApi.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/PathApi.java index be5a1fde8c03..5fc7e6d2adc5 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/PathApi.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/PathApi.java @@ -48,7 +48,7 @@ public PathApi(ApiClient apiClient) { * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath) throws RestClientException { + public String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(@javax.annotation.Nonnull String pathString, @javax.annotation.Nonnull Integer pathInteger, @javax.annotation.Nonnull String enumNonrefStringPath, @javax.annotation.Nonnull StringEnumRef enumRefStringPath) throws RestClientException { return testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath).getBody(); } @@ -63,7 +63,7 @@ public String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnu * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath) throws RestClientException { + public ResponseEntity testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(@javax.annotation.Nonnull String pathString, @javax.annotation.Nonnull Integer pathInteger, @javax.annotation.Nonnull String enumNonrefStringPath, @javax.annotation.Nonnull StringEnumRef enumRefStringPath) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'pathString' is set diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/QueryApi.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/QueryApi.java index 38d533ff3628..5aab48f7a27f 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/QueryApi.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/QueryApi.java @@ -52,7 +52,7 @@ public QueryApi(ApiClient apiClient) { * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testEnumRefString(String enumNonrefStringQuery, StringEnumRef enumRefStringQuery) throws RestClientException { + public String testEnumRefString(@javax.annotation.Nullable String enumNonrefStringQuery, @javax.annotation.Nullable StringEnumRef enumRefStringQuery) throws RestClientException { return testEnumRefStringWithHttpInfo(enumNonrefStringQuery, enumRefStringQuery).getBody(); } @@ -65,7 +65,7 @@ public String testEnumRefString(String enumNonrefStringQuery, StringEnumRef enum * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEnumRefStringWithHttpInfo(String enumNonrefStringQuery, StringEnumRef enumRefStringQuery) throws RestClientException { + public ResponseEntity testEnumRefStringWithHttpInfo(@javax.annotation.Nullable String enumNonrefStringQuery, @javax.annotation.Nullable StringEnumRef enumRefStringQuery) throws RestClientException { Object localVarPostBody = null; @@ -100,7 +100,7 @@ public ResponseEntity testEnumRefStringWithHttpInfo(String enumNonrefStr * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testQueryDatetimeDateString(OffsetDateTime datetimeQuery, LocalDate dateQuery, String stringQuery) throws RestClientException { + public String testQueryDatetimeDateString(@javax.annotation.Nullable OffsetDateTime datetimeQuery, @javax.annotation.Nullable LocalDate dateQuery, @javax.annotation.Nullable String stringQuery) throws RestClientException { return testQueryDatetimeDateStringWithHttpInfo(datetimeQuery, dateQuery, stringQuery).getBody(); } @@ -114,7 +114,7 @@ public String testQueryDatetimeDateString(OffsetDateTime datetimeQuery, LocalDat * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryDatetimeDateStringWithHttpInfo(OffsetDateTime datetimeQuery, LocalDate dateQuery, String stringQuery) throws RestClientException { + public ResponseEntity testQueryDatetimeDateStringWithHttpInfo(@javax.annotation.Nullable OffsetDateTime datetimeQuery, @javax.annotation.Nullable LocalDate dateQuery, @javax.annotation.Nullable String stringQuery) throws RestClientException { Object localVarPostBody = null; @@ -150,7 +150,7 @@ public ResponseEntity testQueryDatetimeDateStringWithHttpInfo(OffsetDate * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testQueryIntegerBooleanString(Integer integerQuery, Boolean booleanQuery, String stringQuery) throws RestClientException { + public String testQueryIntegerBooleanString(@javax.annotation.Nullable Integer integerQuery, @javax.annotation.Nullable Boolean booleanQuery, @javax.annotation.Nullable String stringQuery) throws RestClientException { return testQueryIntegerBooleanStringWithHttpInfo(integerQuery, booleanQuery, stringQuery).getBody(); } @@ -164,7 +164,7 @@ public String testQueryIntegerBooleanString(Integer integerQuery, Boolean boolea * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryIntegerBooleanStringWithHttpInfo(Integer integerQuery, Boolean booleanQuery, String stringQuery) throws RestClientException { + public ResponseEntity testQueryIntegerBooleanStringWithHttpInfo(@javax.annotation.Nullable Integer integerQuery, @javax.annotation.Nullable Boolean booleanQuery, @javax.annotation.Nullable String stringQuery) throws RestClientException { Object localVarPostBody = null; @@ -198,7 +198,7 @@ public ResponseEntity testQueryIntegerBooleanStringWithHttpInfo(Integer * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testQueryStyleDeepObjectExplodeTrueObject(Pet queryObject) throws RestClientException { + public String testQueryStyleDeepObjectExplodeTrueObject(@javax.annotation.Nullable Pet queryObject) throws RestClientException { return testQueryStyleDeepObjectExplodeTrueObjectWithHttpInfo(queryObject).getBody(); } @@ -210,7 +210,7 @@ public String testQueryStyleDeepObjectExplodeTrueObject(Pet queryObject) throws * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryStyleDeepObjectExplodeTrueObjectWithHttpInfo(Pet queryObject) throws RestClientException { + public ResponseEntity testQueryStyleDeepObjectExplodeTrueObjectWithHttpInfo(@javax.annotation.Nullable Pet queryObject) throws RestClientException { Object localVarPostBody = null; @@ -249,7 +249,7 @@ public ResponseEntity testQueryStyleDeepObjectExplodeTrueObjectWithHttpI * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testQueryStyleDeepObjectExplodeTrueObjectAllOf(TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws RestClientException { + public String testQueryStyleDeepObjectExplodeTrueObjectAllOf(@javax.annotation.Nullable TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws RestClientException { return testQueryStyleDeepObjectExplodeTrueObjectAllOfWithHttpInfo(queryObject).getBody(); } @@ -261,7 +261,7 @@ public String testQueryStyleDeepObjectExplodeTrueObjectAllOf(TestQueryStyleDeepO * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryStyleDeepObjectExplodeTrueObjectAllOfWithHttpInfo(TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws RestClientException { + public ResponseEntity testQueryStyleDeepObjectExplodeTrueObjectAllOfWithHttpInfo(@javax.annotation.Nullable TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws RestClientException { Object localVarPostBody = null; @@ -293,7 +293,7 @@ public ResponseEntity testQueryStyleDeepObjectExplodeTrueObjectAllOfWith * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testQueryStyleFormExplodeFalseArrayInteger(List queryObject) throws RestClientException { + public String testQueryStyleFormExplodeFalseArrayInteger(@javax.annotation.Nullable List queryObject) throws RestClientException { return testQueryStyleFormExplodeFalseArrayIntegerWithHttpInfo(queryObject).getBody(); } @@ -305,7 +305,7 @@ public String testQueryStyleFormExplodeFalseArrayInteger(List queryObje * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryStyleFormExplodeFalseArrayIntegerWithHttpInfo(List queryObject) throws RestClientException { + public ResponseEntity testQueryStyleFormExplodeFalseArrayIntegerWithHttpInfo(@javax.annotation.Nullable List queryObject) throws RestClientException { Object localVarPostBody = null; @@ -337,7 +337,7 @@ public ResponseEntity testQueryStyleFormExplodeFalseArrayIntegerWithHttp * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testQueryStyleFormExplodeFalseArrayString(List queryObject) throws RestClientException { + public String testQueryStyleFormExplodeFalseArrayString(@javax.annotation.Nullable List queryObject) throws RestClientException { return testQueryStyleFormExplodeFalseArrayStringWithHttpInfo(queryObject).getBody(); } @@ -349,7 +349,7 @@ public String testQueryStyleFormExplodeFalseArrayString(List queryObject * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryStyleFormExplodeFalseArrayStringWithHttpInfo(List queryObject) throws RestClientException { + public ResponseEntity testQueryStyleFormExplodeFalseArrayStringWithHttpInfo(@javax.annotation.Nullable List queryObject) throws RestClientException { Object localVarPostBody = null; @@ -381,7 +381,7 @@ public ResponseEntity testQueryStyleFormExplodeFalseArrayStringWithHttpI * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testQueryStyleFormExplodeTrueArrayString(TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws RestClientException { + public String testQueryStyleFormExplodeTrueArrayString(@javax.annotation.Nullable TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws RestClientException { return testQueryStyleFormExplodeTrueArrayStringWithHttpInfo(queryObject).getBody(); } @@ -393,7 +393,7 @@ public String testQueryStyleFormExplodeTrueArrayString(TestQueryStyleFormExplode * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryStyleFormExplodeTrueArrayStringWithHttpInfo(TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws RestClientException { + public ResponseEntity testQueryStyleFormExplodeTrueArrayStringWithHttpInfo(@javax.annotation.Nullable TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws RestClientException { Object localVarPostBody = null; @@ -427,7 +427,7 @@ public ResponseEntity testQueryStyleFormExplodeTrueArrayStringWithHttpIn * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testQueryStyleFormExplodeTrueObject(Pet queryObject) throws RestClientException { + public String testQueryStyleFormExplodeTrueObject(@javax.annotation.Nullable Pet queryObject) throws RestClientException { return testQueryStyleFormExplodeTrueObjectWithHttpInfo(queryObject).getBody(); } @@ -439,7 +439,7 @@ public String testQueryStyleFormExplodeTrueObject(Pet queryObject) throws RestCl * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryStyleFormExplodeTrueObjectWithHttpInfo(Pet queryObject) throws RestClientException { + public ResponseEntity testQueryStyleFormExplodeTrueObjectWithHttpInfo(@javax.annotation.Nullable Pet queryObject) throws RestClientException { Object localVarPostBody = null; @@ -478,7 +478,7 @@ public ResponseEntity testQueryStyleFormExplodeTrueObjectWithHttpInfo(Pe * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testQueryStyleFormExplodeTrueObjectAllOf(DataQuery queryObject) throws RestClientException { + public String testQueryStyleFormExplodeTrueObjectAllOf(@javax.annotation.Nullable DataQuery queryObject) throws RestClientException { return testQueryStyleFormExplodeTrueObjectAllOfWithHttpInfo(queryObject).getBody(); } @@ -490,7 +490,7 @@ public String testQueryStyleFormExplodeTrueObjectAllOf(DataQuery queryObject) th * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryStyleFormExplodeTrueObjectAllOfWithHttpInfo(DataQuery queryObject) throws RestClientException { + public ResponseEntity testQueryStyleFormExplodeTrueObjectAllOfWithHttpInfo(@javax.annotation.Nullable DataQuery queryObject) throws RestClientException { Object localVarPostBody = null; @@ -523,7 +523,7 @@ public ResponseEntity testQueryStyleFormExplodeTrueObjectAllOfWithHttpIn * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testQueryStyleJsonSerializationObject(Pet jsonSerializedObjectRefStringQuery, List jsonSerializedObjectArrayRefStringQuery) throws RestClientException { + public String testQueryStyleJsonSerializationObject(@javax.annotation.Nullable Pet jsonSerializedObjectRefStringQuery, @javax.annotation.Nullable List jsonSerializedObjectArrayRefStringQuery) throws RestClientException { return testQueryStyleJsonSerializationObjectWithHttpInfo(jsonSerializedObjectRefStringQuery, jsonSerializedObjectArrayRefStringQuery).getBody(); } @@ -536,7 +536,7 @@ public String testQueryStyleJsonSerializationObject(Pet jsonSerializedObjectRefS * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryStyleJsonSerializationObjectWithHttpInfo(Pet jsonSerializedObjectRefStringQuery, List jsonSerializedObjectArrayRefStringQuery) throws RestClientException { + public ResponseEntity testQueryStyleJsonSerializationObjectWithHttpInfo(@javax.annotation.Nullable Pet jsonSerializedObjectRefStringQuery, @javax.annotation.Nullable List jsonSerializedObjectArrayRefStringQuery) throws RestClientException { Object localVarPostBody = null; diff --git a/samples/client/others/java/resttemplate-list-schema-validation/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/others/java/resttemplate-list-schema-validation/src/main/java/org/openapitools/client/api/UserApi.java index 20aeeb76bf62..74ece709fcdb 100644 --- a/samples/client/others/java/resttemplate-list-schema-validation/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/others/java/resttemplate-list-schema-validation/src/main/java/org/openapitools/client/api/UserApi.java @@ -48,7 +48,7 @@ public UserApi(ApiClient apiClient) { * @return User * @throws RestClientException if an error occurs while attempting to invoke the API */ - public User userGet(List<@Pattern(regexp = "^[a-zA-Z0-9]$")String> username) throws RestClientException { + public User userGet(@javax.annotation.Nonnull List<@Pattern(regexp = "^[a-zA-Z0-9]$")String> username) throws RestClientException { return userGetWithHttpInfo(username).getBody(); } @@ -60,7 +60,7 @@ public User userGet(List<@Pattern(regexp = "^[a-zA-Z0-9]$")String> username) thr * @return ResponseEntity<User> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity userGetWithHttpInfo(List<@Pattern(regexp = "^[a-zA-Z0-9]$")String> username) throws RestClientException { + public ResponseEntity userGetWithHttpInfo(@javax.annotation.Nonnull List<@Pattern(regexp = "^[a-zA-Z0-9]$")String> username) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set diff --git a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/api/PetApi.java index 63e809902cd2..24d8eed8a123 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/api/PetApi.java @@ -48,7 +48,7 @@ public PetApi(ApiClient apiClient) { * @return Pet * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Pet addPet(Pet pet) throws RestClientException { + public Pet addPet(@jakarta.annotation.Nonnull Pet pet) throws RestClientException { return addPetWithHttpInfo(pet).getBody(); } @@ -61,7 +61,7 @@ public Pet addPet(Pet pet) throws RestClientException { * @return ResponseEntity<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity addPetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity addPetWithHttpInfo(@jakarta.annotation.Nonnull Pet pet) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -97,7 +97,7 @@ public ResponseEntity addPetWithHttpInfo(Pet pet) throws RestClientExceptio * @param apiKey (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deletePet(Long petId, String apiKey) throws RestClientException { + public void deletePet(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientException { deletePetWithHttpInfo(petId, apiKey); } @@ -110,7 +110,7 @@ public void deletePet(Long petId, String apiKey) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deletePetWithHttpInfo(Long petId, String apiKey) throws RestClientException { + public ResponseEntity deletePetWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -149,7 +149,7 @@ public ResponseEntity deletePetWithHttpInfo(Long petId, String apiKey) thr * @return List<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public List findPetsByStatus(List status) throws RestClientException { + public List findPetsByStatus(@jakarta.annotation.Nonnull List status) throws RestClientException { return findPetsByStatusWithHttpInfo(status).getBody(); } @@ -162,7 +162,7 @@ public List findPetsByStatus(List status) throws RestClientExceptio * @return ResponseEntity<List<Pet>> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity> findPetsByStatusWithHttpInfo(List status) throws RestClientException { + public ResponseEntity> findPetsByStatusWithHttpInfo(@jakarta.annotation.Nonnull List status) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'status' is set @@ -202,7 +202,7 @@ public ResponseEntity> findPetsByStatusWithHttpInfo(List statu * @deprecated */ @Deprecated - public List findPetsByTags(List tags) throws RestClientException { + public List findPetsByTags(@jakarta.annotation.Nonnull List tags) throws RestClientException { return findPetsByTagsWithHttpInfo(tags).getBody(); } @@ -217,7 +217,7 @@ public List findPetsByTags(List tags) throws RestClientException { * @deprecated */ @Deprecated - public ResponseEntity> findPetsByTagsWithHttpInfo(List tags) throws RestClientException { + public ResponseEntity> findPetsByTagsWithHttpInfo(@jakarta.annotation.Nonnull List tags) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'tags' is set @@ -256,7 +256,7 @@ public ResponseEntity> findPetsByTagsWithHttpInfo(List tags) t * @return Pet * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Pet getPetById(Long petId) throws RestClientException { + public Pet getPetById(@jakarta.annotation.Nonnull Long petId) throws RestClientException { return getPetByIdWithHttpInfo(petId).getBody(); } @@ -270,7 +270,7 @@ public Pet getPetById(Long petId) throws RestClientException { * @return ResponseEntity<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws RestClientException { + public ResponseEntity getPetByIdWithHttpInfo(@jakarta.annotation.Nonnull Long petId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -312,7 +312,7 @@ public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws RestClientE * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public Pet updatePet(Pet pet) throws RestClientException { + public Pet updatePet(@jakarta.annotation.Nonnull Pet pet) throws RestClientException { return updatePetWithHttpInfo(pet).getBody(); } @@ -329,7 +329,7 @@ public Pet updatePet(Pet pet) throws RestClientException { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public ResponseEntity updatePetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity updatePetWithHttpInfo(@jakarta.annotation.Nonnull Pet pet) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -366,7 +366,7 @@ public ResponseEntity updatePetWithHttpInfo(Pet pet) throws RestClientExcep * @param status Updated status of the pet (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updatePetWithForm(Long petId, String name, String status) throws RestClientException { + public void updatePetWithForm(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws RestClientException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -380,7 +380,7 @@ public void updatePetWithForm(Long petId, String name, String status) throws Res * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws RestClientException { + public ResponseEntity updatePetWithFormWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -424,7 +424,7 @@ public ResponseEntity updatePetWithFormWithHttpInfo(Long petId, String nam * @return ModelApiResponse * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws RestClientException { + public ModelApiResponse uploadFile(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws RestClientException { return uploadFileWithHttpInfo(petId, additionalMetadata, _file).getBody(); } @@ -438,7 +438,7 @@ public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _ * @return ResponseEntity<ModelApiResponse> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws RestClientException { + public ResponseEntity uploadFileWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set diff --git a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/api/StoreApi.java index cd5751851c7b..4ba0712cadc4 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/api/StoreApi.java @@ -45,7 +45,7 @@ public StoreApi(ApiClient apiClient) { * @param orderId ID of the order that needs to be deleted (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deleteOrder(String orderId) throws RestClientException { + public void deleteOrder(@jakarta.annotation.Nonnull String orderId) throws RestClientException { deleteOrderWithHttpInfo(orderId); } @@ -58,7 +58,7 @@ public void deleteOrder(String orderId) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deleteOrderWithHttpInfo(String orderId) throws RestClientException { + public ResponseEntity deleteOrderWithHttpInfo(@jakarta.annotation.Nonnull String orderId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'orderId' is set @@ -134,7 +134,7 @@ public ResponseEntity> getInventoryWithHttpInfo() throws Re * @return Order * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Order getOrderById(Long orderId) throws RestClientException { + public Order getOrderById(@jakarta.annotation.Nonnull Long orderId) throws RestClientException { return getOrderByIdWithHttpInfo(orderId).getBody(); } @@ -148,7 +148,7 @@ public Order getOrderById(Long orderId) throws RestClientException { * @return ResponseEntity<Order> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getOrderByIdWithHttpInfo(Long orderId) throws RestClientException { + public ResponseEntity getOrderByIdWithHttpInfo(@jakarta.annotation.Nonnull Long orderId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'orderId' is set @@ -186,7 +186,7 @@ public ResponseEntity getOrderByIdWithHttpInfo(Long orderId) throws RestC * @return Order * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Order placeOrder(Order order) throws RestClientException { + public Order placeOrder(@jakarta.annotation.Nonnull Order order) throws RestClientException { return placeOrderWithHttpInfo(order).getBody(); } @@ -199,7 +199,7 @@ public Order placeOrder(Order order) throws RestClientException { * @return ResponseEntity<Order> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity placeOrderWithHttpInfo(Order order) throws RestClientException { + public ResponseEntity placeOrderWithHttpInfo(@jakarta.annotation.Nonnull Order order) throws RestClientException { Object localVarPostBody = order; // verify the required parameter 'order' is set diff --git a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/api/UserApi.java index f0155fbb02e1..4d07c2bc8304 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/api/UserApi.java @@ -45,7 +45,7 @@ public UserApi(ApiClient apiClient) { * @param user Created user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUser(User user) throws RestClientException { + public void createUser(@jakarta.annotation.Nonnull User user) throws RestClientException { createUserWithHttpInfo(user); } @@ -57,7 +57,7 @@ public void createUser(User user) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUserWithHttpInfo(User user) throws RestClientException { + public ResponseEntity createUserWithHttpInfo(@jakarta.annotation.Nonnull User user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -90,7 +90,7 @@ public ResponseEntity createUserWithHttpInfo(User user) throws RestClientE * @param user List of user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUsersWithArrayInput(List user) throws RestClientException { + public void createUsersWithArrayInput(@jakarta.annotation.Nonnull List user) throws RestClientException { createUsersWithArrayInputWithHttpInfo(user); } @@ -102,7 +102,7 @@ public void createUsersWithArrayInput(List user) throws RestClientExceptio * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUsersWithArrayInputWithHttpInfo(List user) throws RestClientException { + public ResponseEntity createUsersWithArrayInputWithHttpInfo(@jakarta.annotation.Nonnull List user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -135,7 +135,7 @@ public ResponseEntity createUsersWithArrayInputWithHttpInfo(List use * @param user List of user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUsersWithListInput(List user) throws RestClientException { + public void createUsersWithListInput(@jakarta.annotation.Nonnull List user) throws RestClientException { createUsersWithListInputWithHttpInfo(user); } @@ -147,7 +147,7 @@ public void createUsersWithListInput(List user) throws RestClientException * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUsersWithListInputWithHttpInfo(List user) throws RestClientException { + public ResponseEntity createUsersWithListInputWithHttpInfo(@jakarta.annotation.Nonnull List user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -181,7 +181,7 @@ public ResponseEntity createUsersWithListInputWithHttpInfo(List user * @param username The name that needs to be deleted (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deleteUser(String username) throws RestClientException { + public void deleteUser(@jakarta.annotation.Nonnull String username) throws RestClientException { deleteUserWithHttpInfo(username); } @@ -194,7 +194,7 @@ public void deleteUser(String username) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deleteUserWithHttpInfo(String username) throws RestClientException { + public ResponseEntity deleteUserWithHttpInfo(@jakarta.annotation.Nonnull String username) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -231,7 +231,7 @@ public ResponseEntity deleteUserWithHttpInfo(String username) throws RestC * @return User * @throws RestClientException if an error occurs while attempting to invoke the API */ - public User getUserByName(String username) throws RestClientException { + public User getUserByName(@jakarta.annotation.Nonnull String username) throws RestClientException { return getUserByNameWithHttpInfo(username).getBody(); } @@ -245,7 +245,7 @@ public User getUserByName(String username) throws RestClientException { * @return ResponseEntity<User> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getUserByNameWithHttpInfo(String username) throws RestClientException { + public ResponseEntity getUserByNameWithHttpInfo(@jakarta.annotation.Nonnull String username) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -284,7 +284,7 @@ public ResponseEntity getUserByNameWithHttpInfo(String username) throws Re * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String loginUser(String username, String password) throws RestClientException { + public String loginUser(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws RestClientException { return loginUserWithHttpInfo(username, password).getBody(); } @@ -298,7 +298,7 @@ public String loginUser(String username, String password) throws RestClientExcep * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity loginUserWithHttpInfo(String username, String password) throws RestClientException { + public ResponseEntity loginUserWithHttpInfo(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -378,7 +378,7 @@ public ResponseEntity logoutUserWithHttpInfo() throws RestClientException * @param user Updated user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updateUser(String username, User user) throws RestClientException { + public void updateUser(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws RestClientException { updateUserWithHttpInfo(username, user); } @@ -392,7 +392,7 @@ public void updateUser(String username, User user) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity updateUserWithHttpInfo(String username, User user) throws RestClientException { + public ResponseEntity updateUserWithHttpInfo(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'username' is set diff --git a/samples/client/petstore/java/resttemplate-springBoot4-jackson2/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/resttemplate-springBoot4-jackson2/src/main/java/org/openapitools/client/api/PetApi.java index 04dbbcf4b4d0..eaeb4cd22de3 100644 --- a/samples/client/petstore/java/resttemplate-springBoot4-jackson2/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/resttemplate-springBoot4-jackson2/src/main/java/org/openapitools/client/api/PetApi.java @@ -46,7 +46,7 @@ public PetApi(ApiClient apiClient) { * @return Pet * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Pet addPet(Pet pet) throws RestClientException { + public Pet addPet(@jakarta.annotation.Nonnull Pet pet) throws RestClientException { return addPetWithHttpInfo(pet).getBody(); } @@ -59,7 +59,7 @@ public Pet addPet(Pet pet) throws RestClientException { * @return ResponseEntity<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity addPetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity addPetWithHttpInfo(@jakarta.annotation.Nonnull Pet pet) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set diff --git a/samples/client/petstore/java/resttemplate-springBoot4-jackson3/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/resttemplate-springBoot4-jackson3/src/main/java/org/openapitools/client/api/PetApi.java index 04dbbcf4b4d0..eaeb4cd22de3 100644 --- a/samples/client/petstore/java/resttemplate-springBoot4-jackson3/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/resttemplate-springBoot4-jackson3/src/main/java/org/openapitools/client/api/PetApi.java @@ -46,7 +46,7 @@ public PetApi(ApiClient apiClient) { * @return Pet * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Pet addPet(Pet pet) throws RestClientException { + public Pet addPet(@jakarta.annotation.Nonnull Pet pet) throws RestClientException { return addPetWithHttpInfo(pet).getBody(); } @@ -59,7 +59,7 @@ public Pet addPet(Pet pet) throws RestClientException { * @return ResponseEntity<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity addPetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity addPetWithHttpInfo(@jakarta.annotation.Nonnull Pet pet) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set diff --git a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/api/PetApi.java index 6dcb9db90546..e9caeb6abdd2 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/api/PetApi.java @@ -48,7 +48,7 @@ public PetApi(ApiClient apiClient) { * @return Pet * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Pet addPet(Pet pet) throws RestClientException { + public Pet addPet(@javax.annotation.Nonnull Pet pet) throws RestClientException { return addPetWithHttpInfo(pet).getBody(); } @@ -61,7 +61,7 @@ public Pet addPet(Pet pet) throws RestClientException { * @return ResponseEntity<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity addPetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity addPetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -97,7 +97,7 @@ public ResponseEntity addPetWithHttpInfo(Pet pet) throws RestClientExceptio * @param apiKey (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deletePet(Long petId, String apiKey) throws RestClientException { + public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws RestClientException { deletePetWithHttpInfo(petId, apiKey); } @@ -110,7 +110,7 @@ public void deletePet(Long petId, String apiKey) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deletePetWithHttpInfo(Long petId, String apiKey) throws RestClientException { + public ResponseEntity deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -149,7 +149,7 @@ public ResponseEntity deletePetWithHttpInfo(Long petId, String apiKey) thr * @return List<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public List findPetsByStatus(List status) throws RestClientException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws RestClientException { return findPetsByStatusWithHttpInfo(status).getBody(); } @@ -162,7 +162,7 @@ public List findPetsByStatus(List status) throws RestClientExceptio * @return ResponseEntity<List<Pet>> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity> findPetsByStatusWithHttpInfo(List status) throws RestClientException { + public ResponseEntity> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'status' is set @@ -202,7 +202,7 @@ public ResponseEntity> findPetsByStatusWithHttpInfo(List statu * @deprecated */ @Deprecated - public List findPetsByTags(List tags) throws RestClientException { + public List findPetsByTags(@javax.annotation.Nonnull List tags) throws RestClientException { return findPetsByTagsWithHttpInfo(tags).getBody(); } @@ -217,7 +217,7 @@ public List findPetsByTags(List tags) throws RestClientException { * @deprecated */ @Deprecated - public ResponseEntity> findPetsByTagsWithHttpInfo(List tags) throws RestClientException { + public ResponseEntity> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull List tags) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'tags' is set @@ -256,7 +256,7 @@ public ResponseEntity> findPetsByTagsWithHttpInfo(List tags) t * @return Pet * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Pet getPetById(Long petId) throws RestClientException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws RestClientException { return getPetByIdWithHttpInfo(petId).getBody(); } @@ -270,7 +270,7 @@ public Pet getPetById(Long petId) throws RestClientException { * @return ResponseEntity<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws RestClientException { + public ResponseEntity getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -312,7 +312,7 @@ public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws RestClientE * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public Pet updatePet(Pet pet) throws RestClientException { + public Pet updatePet(@javax.annotation.Nonnull Pet pet) throws RestClientException { return updatePetWithHttpInfo(pet).getBody(); } @@ -329,7 +329,7 @@ public Pet updatePet(Pet pet) throws RestClientException { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public ResponseEntity updatePetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity updatePetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -366,7 +366,7 @@ public ResponseEntity updatePetWithHttpInfo(Pet pet) throws RestClientExcep * @param status Updated status of the pet (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updatePetWithForm(Long petId, String name, String status) throws RestClientException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws RestClientException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -380,7 +380,7 @@ public void updatePetWithForm(Long petId, String name, String status) throws Res * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws RestClientException { + public ResponseEntity updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -424,7 +424,7 @@ public ResponseEntity updatePetWithFormWithHttpInfo(Long petId, String nam * @return ModelApiResponse * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws RestClientException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws RestClientException { return uploadFileWithHttpInfo(petId, additionalMetadata, _file).getBody(); } @@ -438,7 +438,7 @@ public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _ * @return ResponseEntity<ModelApiResponse> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws RestClientException { + public ResponseEntity uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set diff --git a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/api/StoreApi.java index d13023e3c398..187c2e860969 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/api/StoreApi.java @@ -45,7 +45,7 @@ public StoreApi(ApiClient apiClient) { * @param orderId ID of the order that needs to be deleted (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deleteOrder(String orderId) throws RestClientException { + public void deleteOrder(@javax.annotation.Nonnull String orderId) throws RestClientException { deleteOrderWithHttpInfo(orderId); } @@ -58,7 +58,7 @@ public void deleteOrder(String orderId) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deleteOrderWithHttpInfo(String orderId) throws RestClientException { + public ResponseEntity deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'orderId' is set @@ -134,7 +134,7 @@ public ResponseEntity> getInventoryWithHttpInfo() throws Re * @return Order * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Order getOrderById(Long orderId) throws RestClientException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws RestClientException { return getOrderByIdWithHttpInfo(orderId).getBody(); } @@ -148,7 +148,7 @@ public Order getOrderById(Long orderId) throws RestClientException { * @return ResponseEntity<Order> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getOrderByIdWithHttpInfo(Long orderId) throws RestClientException { + public ResponseEntity getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'orderId' is set @@ -186,7 +186,7 @@ public ResponseEntity getOrderByIdWithHttpInfo(Long orderId) throws RestC * @return Order * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Order placeOrder(Order order) throws RestClientException { + public Order placeOrder(@javax.annotation.Nonnull Order order) throws RestClientException { return placeOrderWithHttpInfo(order).getBody(); } @@ -199,7 +199,7 @@ public Order placeOrder(Order order) throws RestClientException { * @return ResponseEntity<Order> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity placeOrderWithHttpInfo(Order order) throws RestClientException { + public ResponseEntity placeOrderWithHttpInfo(@javax.annotation.Nonnull Order order) throws RestClientException { Object localVarPostBody = order; // verify the required parameter 'order' is set diff --git a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/api/UserApi.java index 57d94f044cd8..4b76b7286db9 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/api/UserApi.java @@ -45,7 +45,7 @@ public UserApi(ApiClient apiClient) { * @param user Created user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUser(User user) throws RestClientException { + public void createUser(@javax.annotation.Nonnull User user) throws RestClientException { createUserWithHttpInfo(user); } @@ -57,7 +57,7 @@ public void createUser(User user) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUserWithHttpInfo(User user) throws RestClientException { + public ResponseEntity createUserWithHttpInfo(@javax.annotation.Nonnull User user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -90,7 +90,7 @@ public ResponseEntity createUserWithHttpInfo(User user) throws RestClientE * @param user List of user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUsersWithArrayInput(List user) throws RestClientException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List user) throws RestClientException { createUsersWithArrayInputWithHttpInfo(user); } @@ -102,7 +102,7 @@ public void createUsersWithArrayInput(List user) throws RestClientExceptio * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUsersWithArrayInputWithHttpInfo(List user) throws RestClientException { + public ResponseEntity createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -135,7 +135,7 @@ public ResponseEntity createUsersWithArrayInputWithHttpInfo(List use * @param user List of user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUsersWithListInput(List user) throws RestClientException { + public void createUsersWithListInput(@javax.annotation.Nonnull List user) throws RestClientException { createUsersWithListInputWithHttpInfo(user); } @@ -147,7 +147,7 @@ public void createUsersWithListInput(List user) throws RestClientException * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUsersWithListInputWithHttpInfo(List user) throws RestClientException { + public ResponseEntity createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -181,7 +181,7 @@ public ResponseEntity createUsersWithListInputWithHttpInfo(List user * @param username The name that needs to be deleted (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deleteUser(String username) throws RestClientException { + public void deleteUser(@javax.annotation.Nonnull String username) throws RestClientException { deleteUserWithHttpInfo(username); } @@ -194,7 +194,7 @@ public void deleteUser(String username) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deleteUserWithHttpInfo(String username) throws RestClientException { + public ResponseEntity deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -231,7 +231,7 @@ public ResponseEntity deleteUserWithHttpInfo(String username) throws RestC * @return User * @throws RestClientException if an error occurs while attempting to invoke the API */ - public User getUserByName(String username) throws RestClientException { + public User getUserByName(@javax.annotation.Nonnull String username) throws RestClientException { return getUserByNameWithHttpInfo(username).getBody(); } @@ -245,7 +245,7 @@ public User getUserByName(String username) throws RestClientException { * @return ResponseEntity<User> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getUserByNameWithHttpInfo(String username) throws RestClientException { + public ResponseEntity getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -284,7 +284,7 @@ public ResponseEntity getUserByNameWithHttpInfo(String username) throws Re * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String loginUser(String username, String password) throws RestClientException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws RestClientException { return loginUserWithHttpInfo(username, password).getBody(); } @@ -298,7 +298,7 @@ public String loginUser(String username, String password) throws RestClientExcep * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity loginUserWithHttpInfo(String username, String password) throws RestClientException { + public ResponseEntity loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -378,7 +378,7 @@ public ResponseEntity logoutUserWithHttpInfo() throws RestClientException * @param user Updated user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updateUser(String username, User user) throws RestClientException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws RestClientException { updateUserWithHttpInfo(username, user); } @@ -392,7 +392,7 @@ public void updateUser(String username, User user) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity updateUserWithHttpInfo(String username, User user) throws RestClientException { + public ResponseEntity updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'username' is set diff --git a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/api/PetApi.java index 6dcb9db90546..e9caeb6abdd2 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/api/PetApi.java @@ -48,7 +48,7 @@ public PetApi(ApiClient apiClient) { * @return Pet * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Pet addPet(Pet pet) throws RestClientException { + public Pet addPet(@javax.annotation.Nonnull Pet pet) throws RestClientException { return addPetWithHttpInfo(pet).getBody(); } @@ -61,7 +61,7 @@ public Pet addPet(Pet pet) throws RestClientException { * @return ResponseEntity<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity addPetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity addPetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -97,7 +97,7 @@ public ResponseEntity addPetWithHttpInfo(Pet pet) throws RestClientExceptio * @param apiKey (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deletePet(Long petId, String apiKey) throws RestClientException { + public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws RestClientException { deletePetWithHttpInfo(petId, apiKey); } @@ -110,7 +110,7 @@ public void deletePet(Long petId, String apiKey) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deletePetWithHttpInfo(Long petId, String apiKey) throws RestClientException { + public ResponseEntity deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -149,7 +149,7 @@ public ResponseEntity deletePetWithHttpInfo(Long petId, String apiKey) thr * @return List<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public List findPetsByStatus(List status) throws RestClientException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws RestClientException { return findPetsByStatusWithHttpInfo(status).getBody(); } @@ -162,7 +162,7 @@ public List findPetsByStatus(List status) throws RestClientExceptio * @return ResponseEntity<List<Pet>> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity> findPetsByStatusWithHttpInfo(List status) throws RestClientException { + public ResponseEntity> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'status' is set @@ -202,7 +202,7 @@ public ResponseEntity> findPetsByStatusWithHttpInfo(List statu * @deprecated */ @Deprecated - public List findPetsByTags(List tags) throws RestClientException { + public List findPetsByTags(@javax.annotation.Nonnull List tags) throws RestClientException { return findPetsByTagsWithHttpInfo(tags).getBody(); } @@ -217,7 +217,7 @@ public List findPetsByTags(List tags) throws RestClientException { * @deprecated */ @Deprecated - public ResponseEntity> findPetsByTagsWithHttpInfo(List tags) throws RestClientException { + public ResponseEntity> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull List tags) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'tags' is set @@ -256,7 +256,7 @@ public ResponseEntity> findPetsByTagsWithHttpInfo(List tags) t * @return Pet * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Pet getPetById(Long petId) throws RestClientException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws RestClientException { return getPetByIdWithHttpInfo(petId).getBody(); } @@ -270,7 +270,7 @@ public Pet getPetById(Long petId) throws RestClientException { * @return ResponseEntity<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws RestClientException { + public ResponseEntity getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -312,7 +312,7 @@ public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws RestClientE * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public Pet updatePet(Pet pet) throws RestClientException { + public Pet updatePet(@javax.annotation.Nonnull Pet pet) throws RestClientException { return updatePetWithHttpInfo(pet).getBody(); } @@ -329,7 +329,7 @@ public Pet updatePet(Pet pet) throws RestClientException { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public ResponseEntity updatePetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity updatePetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -366,7 +366,7 @@ public ResponseEntity updatePetWithHttpInfo(Pet pet) throws RestClientExcep * @param status Updated status of the pet (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updatePetWithForm(Long petId, String name, String status) throws RestClientException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws RestClientException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -380,7 +380,7 @@ public void updatePetWithForm(Long petId, String name, String status) throws Res * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws RestClientException { + public ResponseEntity updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -424,7 +424,7 @@ public ResponseEntity updatePetWithFormWithHttpInfo(Long petId, String nam * @return ModelApiResponse * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws RestClientException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws RestClientException { return uploadFileWithHttpInfo(petId, additionalMetadata, _file).getBody(); } @@ -438,7 +438,7 @@ public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _ * @return ResponseEntity<ModelApiResponse> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws RestClientException { + public ResponseEntity uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set diff --git a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java index d13023e3c398..187c2e860969 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java @@ -45,7 +45,7 @@ public StoreApi(ApiClient apiClient) { * @param orderId ID of the order that needs to be deleted (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deleteOrder(String orderId) throws RestClientException { + public void deleteOrder(@javax.annotation.Nonnull String orderId) throws RestClientException { deleteOrderWithHttpInfo(orderId); } @@ -58,7 +58,7 @@ public void deleteOrder(String orderId) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deleteOrderWithHttpInfo(String orderId) throws RestClientException { + public ResponseEntity deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'orderId' is set @@ -134,7 +134,7 @@ public ResponseEntity> getInventoryWithHttpInfo() throws Re * @return Order * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Order getOrderById(Long orderId) throws RestClientException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws RestClientException { return getOrderByIdWithHttpInfo(orderId).getBody(); } @@ -148,7 +148,7 @@ public Order getOrderById(Long orderId) throws RestClientException { * @return ResponseEntity<Order> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getOrderByIdWithHttpInfo(Long orderId) throws RestClientException { + public ResponseEntity getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'orderId' is set @@ -186,7 +186,7 @@ public ResponseEntity getOrderByIdWithHttpInfo(Long orderId) throws RestC * @return Order * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Order placeOrder(Order order) throws RestClientException { + public Order placeOrder(@javax.annotation.Nonnull Order order) throws RestClientException { return placeOrderWithHttpInfo(order).getBody(); } @@ -199,7 +199,7 @@ public Order placeOrder(Order order) throws RestClientException { * @return ResponseEntity<Order> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity placeOrderWithHttpInfo(Order order) throws RestClientException { + public ResponseEntity placeOrderWithHttpInfo(@javax.annotation.Nonnull Order order) throws RestClientException { Object localVarPostBody = order; // verify the required parameter 'order' is set diff --git a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/api/UserApi.java index 57d94f044cd8..4b76b7286db9 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/api/UserApi.java @@ -45,7 +45,7 @@ public UserApi(ApiClient apiClient) { * @param user Created user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUser(User user) throws RestClientException { + public void createUser(@javax.annotation.Nonnull User user) throws RestClientException { createUserWithHttpInfo(user); } @@ -57,7 +57,7 @@ public void createUser(User user) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUserWithHttpInfo(User user) throws RestClientException { + public ResponseEntity createUserWithHttpInfo(@javax.annotation.Nonnull User user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -90,7 +90,7 @@ public ResponseEntity createUserWithHttpInfo(User user) throws RestClientE * @param user List of user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUsersWithArrayInput(List user) throws RestClientException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List user) throws RestClientException { createUsersWithArrayInputWithHttpInfo(user); } @@ -102,7 +102,7 @@ public void createUsersWithArrayInput(List user) throws RestClientExceptio * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUsersWithArrayInputWithHttpInfo(List user) throws RestClientException { + public ResponseEntity createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -135,7 +135,7 @@ public ResponseEntity createUsersWithArrayInputWithHttpInfo(List use * @param user List of user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUsersWithListInput(List user) throws RestClientException { + public void createUsersWithListInput(@javax.annotation.Nonnull List user) throws RestClientException { createUsersWithListInputWithHttpInfo(user); } @@ -147,7 +147,7 @@ public void createUsersWithListInput(List user) throws RestClientException * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUsersWithListInputWithHttpInfo(List user) throws RestClientException { + public ResponseEntity createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -181,7 +181,7 @@ public ResponseEntity createUsersWithListInputWithHttpInfo(List user * @param username The name that needs to be deleted (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deleteUser(String username) throws RestClientException { + public void deleteUser(@javax.annotation.Nonnull String username) throws RestClientException { deleteUserWithHttpInfo(username); } @@ -194,7 +194,7 @@ public void deleteUser(String username) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deleteUserWithHttpInfo(String username) throws RestClientException { + public ResponseEntity deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -231,7 +231,7 @@ public ResponseEntity deleteUserWithHttpInfo(String username) throws RestC * @return User * @throws RestClientException if an error occurs while attempting to invoke the API */ - public User getUserByName(String username) throws RestClientException { + public User getUserByName(@javax.annotation.Nonnull String username) throws RestClientException { return getUserByNameWithHttpInfo(username).getBody(); } @@ -245,7 +245,7 @@ public User getUserByName(String username) throws RestClientException { * @return ResponseEntity<User> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getUserByNameWithHttpInfo(String username) throws RestClientException { + public ResponseEntity getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -284,7 +284,7 @@ public ResponseEntity getUserByNameWithHttpInfo(String username) throws Re * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String loginUser(String username, String password) throws RestClientException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws RestClientException { return loginUserWithHttpInfo(username, password).getBody(); } @@ -298,7 +298,7 @@ public String loginUser(String username, String password) throws RestClientExcep * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity loginUserWithHttpInfo(String username, String password) throws RestClientException { + public ResponseEntity loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -378,7 +378,7 @@ public ResponseEntity logoutUserWithHttpInfo() throws RestClientException * @param user Updated user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updateUser(String username, User user) throws RestClientException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws RestClientException { updateUserWithHttpInfo(username, user); } @@ -392,7 +392,7 @@ public void updateUser(String username, User user) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity updateUserWithHttpInfo(String username, User user) throws RestClientException { + public ResponseEntity updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'username' is set diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 0307e5febcbf..d4a87120a76b 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -45,7 +45,7 @@ public AnotherFakeApi(ApiClient apiClient) { * @return Client * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Client call123testSpecialTags(Client client) throws RestClientException { + public Client call123testSpecialTags(@javax.annotation.Nonnull Client client) throws RestClientException { return call123testSpecialTagsWithHttpInfo(client).getBody(); } @@ -57,7 +57,7 @@ public Client call123testSpecialTags(Client client) throws RestClientException { * @return ResponseEntity<Client> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity call123testSpecialTagsWithHttpInfo(Client client) throws RestClientException { + public ResponseEntity call123testSpecialTagsWithHttpInfo(@javax.annotation.Nonnull Client client) throws RestClientException { Object localVarPostBody = client; // verify the required parameter 'client' is set diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeApi.java index 729ffb7db428..3366149610e2 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeApi.java @@ -138,7 +138,7 @@ public ResponseEntity fakeHealthGetWithHttpInfo() throws Rest * @param header1 header parameter (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void fakeHttpSignatureTest(Pet pet, String query1, String header1) throws RestClientException { + public void fakeHttpSignatureTest(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1) throws RestClientException { fakeHttpSignatureTestWithHttpInfo(pet, query1, header1); } @@ -152,7 +152,7 @@ public void fakeHttpSignatureTest(Pet pet, String query1, String header1) throws * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeHttpSignatureTestWithHttpInfo(Pet pet, String query1, String header1) throws RestClientException { + public ResponseEntity fakeHttpSignatureTestWithHttpInfo(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -192,7 +192,7 @@ public ResponseEntity fakeHttpSignatureTestWithHttpInfo(Pet pet, String qu * @return Boolean * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Boolean fakeOuterBooleanSerialize(Boolean body) throws RestClientException { + public Boolean fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body) throws RestClientException { return fakeOuterBooleanSerializeWithHttpInfo(body).getBody(); } @@ -204,7 +204,7 @@ public Boolean fakeOuterBooleanSerialize(Boolean body) throws RestClientExceptio * @return ResponseEntity<Boolean> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws RestClientException { + public ResponseEntity fakeOuterBooleanSerializeWithHttpInfo(@javax.annotation.Nullable Boolean body) throws RestClientException { Object localVarPostBody = body; @@ -235,7 +235,7 @@ public ResponseEntity fakeOuterBooleanSerializeWithHttpInfo(Boolean bod * @return OuterComposite * @throws RestClientException if an error occurs while attempting to invoke the API */ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws RestClientException { + public OuterComposite fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite outerComposite) throws RestClientException { return fakeOuterCompositeSerializeWithHttpInfo(outerComposite).getBody(); } @@ -247,7 +247,7 @@ public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) * @return ResponseEntity<OuterComposite> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws RestClientException { + public ResponseEntity fakeOuterCompositeSerializeWithHttpInfo(@javax.annotation.Nullable OuterComposite outerComposite) throws RestClientException { Object localVarPostBody = outerComposite; @@ -278,7 +278,7 @@ public ResponseEntity fakeOuterCompositeSerializeWithHttpInfo(Ou * @return BigDecimal * @throws RestClientException if an error occurs while attempting to invoke the API */ - public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws RestClientException { + public BigDecimal fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body) throws RestClientException { return fakeOuterNumberSerializeWithHttpInfo(body).getBody(); } @@ -290,7 +290,7 @@ public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws RestClientExc * @return ResponseEntity<BigDecimal> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws RestClientException { + public ResponseEntity fakeOuterNumberSerializeWithHttpInfo(@javax.annotation.Nullable BigDecimal body) throws RestClientException { Object localVarPostBody = body; @@ -321,7 +321,7 @@ public ResponseEntity fakeOuterNumberSerializeWithHttpInfo(BigDecima * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String fakeOuterStringSerialize(String body) throws RestClientException { + public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws RestClientException { return fakeOuterStringSerializeWithHttpInfo(body).getBody(); } @@ -333,7 +333,7 @@ public String fakeOuterStringSerialize(String body) throws RestClientException { * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterStringSerializeWithHttpInfo(String body) throws RestClientException { + public ResponseEntity fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws RestClientException { Object localVarPostBody = body; @@ -364,7 +364,7 @@ public ResponseEntity fakeOuterStringSerializeWithHttpInfo(String body) * @return OuterObjectWithEnumProperty * @throws RestClientException if an error occurs while attempting to invoke the API */ - public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientException { + public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientException { return fakePropertyEnumIntegerSerializeWithHttpInfo(outerObjectWithEnumProperty).getBody(); } @@ -376,7 +376,7 @@ public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(OuterObjectW * @return ResponseEntity<OuterObjectWithEnumProperty> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakePropertyEnumIntegerSerializeWithHttpInfo(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientException { + public ResponseEntity fakePropertyEnumIntegerSerializeWithHttpInfo(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientException { Object localVarPostBody = outerObjectWithEnumProperty; // verify the required parameter 'outerObjectWithEnumProperty' is set @@ -411,7 +411,7 @@ public ResponseEntity fakePropertyEnumIntegerSerial * @param requestBody request body (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testAdditionalPropertiesReference(Map requestBody) throws RestClientException { + public void testAdditionalPropertiesReference(@javax.annotation.Nonnull Map requestBody) throws RestClientException { testAdditionalPropertiesReferenceWithHttpInfo(requestBody); } @@ -423,7 +423,7 @@ public void testAdditionalPropertiesReference(Map requestBody) t * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testAdditionalPropertiesReferenceWithHttpInfo(Map requestBody) throws RestClientException { + public ResponseEntity testAdditionalPropertiesReferenceWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws RestClientException { Object localVarPostBody = requestBody; // verify the required parameter 'requestBody' is set @@ -456,7 +456,7 @@ public ResponseEntity testAdditionalPropertiesReferenceWithHttpInfo(Map testBodyWithBinaryWithHttpInfo(File body) throws RestClientException { + public ResponseEntity testBodyWithBinaryWithHttpInfo(@javax.annotation.Nullable File body) throws RestClientException { Object localVarPostBody = body; // verify the required parameter 'body' is set @@ -501,7 +501,7 @@ public ResponseEntity testBodyWithBinaryWithHttpInfo(File body) throws Res * @param fileSchemaTestClass (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws RestClientException { + public void testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientException { testBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass); } @@ -513,7 +513,7 @@ public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) thro * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws RestClientException { + public ResponseEntity testBodyWithFileSchemaWithHttpInfo(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientException { Object localVarPostBody = fileSchemaTestClass; // verify the required parameter 'fileSchemaTestClass' is set @@ -547,7 +547,7 @@ public ResponseEntity testBodyWithFileSchemaWithHttpInfo(FileSchemaTestCla * @param user (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testBodyWithQueryParams(String query, User user) throws RestClientException { + public void testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws RestClientException { testBodyWithQueryParamsWithHttpInfo(query, user); } @@ -560,7 +560,7 @@ public void testBodyWithQueryParams(String query, User user) throws RestClientEx * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testBodyWithQueryParamsWithHttpInfo(String query, User user) throws RestClientException { + public ResponseEntity testBodyWithQueryParamsWithHttpInfo(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'query' is set @@ -602,7 +602,7 @@ public ResponseEntity testBodyWithQueryParamsWithHttpInfo(String query, Us * @return Client * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Client testClientModel(Client client) throws RestClientException { + public Client testClientModel(@javax.annotation.Nonnull Client client) throws RestClientException { return testClientModelWithHttpInfo(client).getBody(); } @@ -614,7 +614,7 @@ public Client testClientModel(Client client) throws RestClientException { * @return ResponseEntity<Client> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testClientModelWithHttpInfo(Client client) throws RestClientException { + public ResponseEntity testClientModelWithHttpInfo(@javax.annotation.Nonnull Client client) throws RestClientException { Object localVarPostBody = client; // verify the required parameter 'client' is set @@ -663,7 +663,7 @@ public ResponseEntity testClientModelWithHttpInfo(Client client) throws * @param paramCallback None (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws RestClientException { + public void testEndpointParameters(@javax.annotation.Nonnull BigDecimal number, @javax.annotation.Nonnull Double _double, @javax.annotation.Nonnull String patternWithoutDelimiter, @javax.annotation.Nonnull byte[] _byte, @javax.annotation.Nullable Integer integer, @javax.annotation.Nullable Integer int32, @javax.annotation.Nullable Long int64, @javax.annotation.Nullable Float _float, @javax.annotation.Nullable String string, @javax.annotation.Nullable File binary, @javax.annotation.Nullable LocalDate date, @javax.annotation.Nullable OffsetDateTime dateTime, @javax.annotation.Nullable String password, @javax.annotation.Nullable String paramCallback) throws RestClientException { testEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -689,7 +689,7 @@ public void testEndpointParameters(BigDecimal number, Double _double, String pat * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEndpointParametersWithHttpInfo(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws RestClientException { + public ResponseEntity testEndpointParametersWithHttpInfo(@javax.annotation.Nonnull BigDecimal number, @javax.annotation.Nonnull Double _double, @javax.annotation.Nonnull String patternWithoutDelimiter, @javax.annotation.Nonnull byte[] _byte, @javax.annotation.Nullable Integer integer, @javax.annotation.Nullable Integer int32, @javax.annotation.Nullable Long int64, @javax.annotation.Nullable Float _float, @javax.annotation.Nullable String string, @javax.annotation.Nullable File binary, @javax.annotation.Nullable LocalDate date, @javax.annotation.Nullable OffsetDateTime dateTime, @javax.annotation.Nullable String password, @javax.annotation.Nullable String paramCallback) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'number' is set @@ -775,7 +775,7 @@ public ResponseEntity testEndpointParametersWithHttpInfo(BigDecimal number * @param enumFormString Form parameter enum test (string) (optional, default to -efg) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws RestClientException { + public void testEnumParameters(@javax.annotation.Nullable List enumHeaderStringArray, @javax.annotation.Nullable String enumHeaderString, @javax.annotation.Nullable List enumQueryStringArray, @javax.annotation.Nullable String enumQueryString, @javax.annotation.Nullable Integer enumQueryInteger, @javax.annotation.Nullable Double enumQueryDouble, @javax.annotation.Nullable List enumQueryModelArray, @javax.annotation.Nullable List enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws RestClientException { testEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString); } @@ -796,7 +796,7 @@ public void testEnumParameters(List enumHeaderStringArray, String enumHe * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEnumParametersWithHttpInfo(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws RestClientException { + public ResponseEntity testEnumParametersWithHttpInfo(@javax.annotation.Nullable List enumHeaderStringArray, @javax.annotation.Nullable String enumHeaderString, @javax.annotation.Nullable List enumQueryStringArray, @javax.annotation.Nullable String enumQueryString, @javax.annotation.Nullable Integer enumQueryInteger, @javax.annotation.Nullable Double enumQueryDouble, @javax.annotation.Nullable List enumQueryModelArray, @javax.annotation.Nullable List enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws RestClientException { Object localVarPostBody = null; @@ -846,7 +846,7 @@ public ResponseEntity testEnumParametersWithHttpInfo(List enumHead * @param int64Group Integer in group parameters (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws RestClientException { + public void testGroupParameters(@javax.annotation.Nonnull Integer requiredStringGroup, @javax.annotation.Nonnull Boolean requiredBooleanGroup, @javax.annotation.Nonnull Long requiredInt64Group, @javax.annotation.Nullable Integer stringGroup, @javax.annotation.Nullable Boolean booleanGroup, @javax.annotation.Nullable Long int64Group) throws RestClientException { testGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -863,7 +863,7 @@ public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBoo * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws RestClientException { + public ResponseEntity testGroupParametersWithHttpInfo(@javax.annotation.Nonnull Integer requiredStringGroup, @javax.annotation.Nonnull Boolean requiredBooleanGroup, @javax.annotation.Nonnull Long requiredInt64Group, @javax.annotation.Nullable Integer stringGroup, @javax.annotation.Nullable Boolean booleanGroup, @javax.annotation.Nullable Long int64Group) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'requiredStringGroup' is set @@ -915,7 +915,7 @@ public ResponseEntity testGroupParametersWithHttpInfo(Integer requiredStri * @param requestBody request body (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testInlineAdditionalProperties(Map requestBody) throws RestClientException { + public void testInlineAdditionalProperties(@javax.annotation.Nonnull Map requestBody) throws RestClientException { testInlineAdditionalPropertiesWithHttpInfo(requestBody); } @@ -927,7 +927,7 @@ public void testInlineAdditionalProperties(Map requestBody) thro * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testInlineAdditionalPropertiesWithHttpInfo(Map requestBody) throws RestClientException { + public ResponseEntity testInlineAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws RestClientException { Object localVarPostBody = requestBody; // verify the required parameter 'requestBody' is set @@ -960,7 +960,7 @@ public ResponseEntity testInlineAdditionalPropertiesWithHttpInfo(Map testInlineFreeformAdditionalPropertiesWithHttpInfo(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientException { + public ResponseEntity testInlineFreeformAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientException { Object localVarPostBody = testInlineFreeformAdditionalPropertiesRequest; // verify the required parameter 'testInlineFreeformAdditionalPropertiesRequest' is set @@ -1006,7 +1006,7 @@ public ResponseEntity testInlineFreeformAdditionalPropertiesWithHttpInfo(T * @param param2 field2 (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testJsonFormData(String param, String param2) throws RestClientException { + public void testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws RestClientException { testJsonFormDataWithHttpInfo(param, param2); } @@ -1019,7 +1019,7 @@ public void testJsonFormData(String param, String param2) throws RestClientExcep * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testJsonFormDataWithHttpInfo(String param, String param2) throws RestClientException { + public ResponseEntity testJsonFormDataWithHttpInfo(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'param' is set @@ -1062,7 +1062,7 @@ public ResponseEntity testJsonFormDataWithHttpInfo(String param, String pa * @param childWithNullable request body (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testNullable(ChildWithNullable childWithNullable) throws RestClientException { + public void testNullable(@javax.annotation.Nonnull ChildWithNullable childWithNullable) throws RestClientException { testNullableWithHttpInfo(childWithNullable); } @@ -1074,7 +1074,7 @@ public void testNullable(ChildWithNullable childWithNullable) throws RestClientE * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testNullableWithHttpInfo(ChildWithNullable childWithNullable) throws RestClientException { + public ResponseEntity testNullableWithHttpInfo(@javax.annotation.Nonnull ChildWithNullable childWithNullable) throws RestClientException { Object localVarPostBody = childWithNullable; // verify the required parameter 'childWithNullable' is set @@ -1113,7 +1113,7 @@ public ResponseEntity testNullableWithHttpInfo(ChildWithNullable childWith * @param language (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws RestClientException { + public void testQueryParameterCollectionFormat(@javax.annotation.Nonnull List pipe, @javax.annotation.Nonnull List ioutil, @javax.annotation.Nonnull List http, @javax.annotation.Nonnull List url, @javax.annotation.Nonnull List context, @javax.annotation.Nonnull String allowEmpty, @javax.annotation.Nullable Map language) throws RestClientException { testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context, allowEmpty, language); } @@ -1131,7 +1131,7 @@ public void testQueryParameterCollectionFormat(List pipe, List i * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws RestClientException { + public ResponseEntity testQueryParameterCollectionFormatWithHttpInfo(@javax.annotation.Nonnull List pipe, @javax.annotation.Nonnull List ioutil, @javax.annotation.Nonnull List http, @javax.annotation.Nonnull List url, @javax.annotation.Nonnull List context, @javax.annotation.Nonnull String allowEmpty, @javax.annotation.Nullable Map language) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'pipe' is set @@ -1196,7 +1196,7 @@ public ResponseEntity testQueryParameterCollectionFormatWithHttpInfo(List< * @param requestBody request body (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testStringMapReference(Map requestBody) throws RestClientException { + public void testStringMapReference(@javax.annotation.Nonnull Map requestBody) throws RestClientException { testStringMapReferenceWithHttpInfo(requestBody); } @@ -1208,7 +1208,7 @@ public void testStringMapReference(Map requestBody) throws RestC * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testStringMapReferenceWithHttpInfo(Map requestBody) throws RestClientException { + public ResponseEntity testStringMapReferenceWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws RestClientException { Object localVarPostBody = requestBody; // verify the required parameter 'requestBody' is set diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 9f560f1a5ca1..2975dde1f524 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -45,7 +45,7 @@ public FakeClassnameTags123Api(ApiClient apiClient) { * @return Client * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Client testClassname(Client client) throws RestClientException { + public Client testClassname(@javax.annotation.Nonnull Client client) throws RestClientException { return testClassnameWithHttpInfo(client).getBody(); } @@ -57,7 +57,7 @@ public Client testClassname(Client client) throws RestClientException { * @return ResponseEntity<Client> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testClassnameWithHttpInfo(Client client) throws RestClientException { + public ResponseEntity testClassnameWithHttpInfo(@javax.annotation.Nonnull Client client) throws RestClientException { Object localVarPostBody = client; // verify the required parameter 'client' is set diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/PetApi.java index c5b72e2838d1..58c8bced78ae 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/PetApi.java @@ -48,7 +48,7 @@ public PetApi(ApiClient apiClient) { * @param pet Pet object that needs to be added to the store (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void addPet(Pet pet) throws RestClientException { + public void addPet(@javax.annotation.Nonnull Pet pet) throws RestClientException { addPetWithHttpInfo(pet); } @@ -61,7 +61,7 @@ public void addPet(Pet pet) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity addPetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity addPetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -96,7 +96,7 @@ public ResponseEntity addPetWithHttpInfo(Pet pet) throws RestClientExcepti * @param apiKey (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deletePet(Long petId, String apiKey) throws RestClientException { + public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws RestClientException { deletePetWithHttpInfo(petId, apiKey); } @@ -110,7 +110,7 @@ public void deletePet(Long petId, String apiKey) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deletePetWithHttpInfo(Long petId, String apiKey) throws RestClientException { + public ResponseEntity deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -149,7 +149,7 @@ public ResponseEntity deletePetWithHttpInfo(Long petId, String apiKey) thr * @return List<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public List findPetsByStatus(List status) throws RestClientException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws RestClientException { return findPetsByStatusWithHttpInfo(status).getBody(); } @@ -162,7 +162,7 @@ public List findPetsByStatus(List status) throws RestClientExceptio * @return ResponseEntity<List<Pet>> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity> findPetsByStatusWithHttpInfo(List status) throws RestClientException { + public ResponseEntity> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'status' is set @@ -202,7 +202,7 @@ public ResponseEntity> findPetsByStatusWithHttpInfo(List statu * @deprecated */ @Deprecated - public Set findPetsByTags(Set tags) throws RestClientException { + public Set findPetsByTags(@javax.annotation.Nonnull Set tags) throws RestClientException { return findPetsByTagsWithHttpInfo(tags).getBody(); } @@ -217,7 +217,7 @@ public Set findPetsByTags(Set tags) throws RestClientException { * @deprecated */ @Deprecated - public ResponseEntity> findPetsByTagsWithHttpInfo(Set tags) throws RestClientException { + public ResponseEntity> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull Set tags) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'tags' is set @@ -256,7 +256,7 @@ public ResponseEntity> findPetsByTagsWithHttpInfo(Set tags) thr * @return Pet * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Pet getPetById(Long petId) throws RestClientException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws RestClientException { return getPetByIdWithHttpInfo(petId).getBody(); } @@ -270,7 +270,7 @@ public Pet getPetById(Long petId) throws RestClientException { * @return ResponseEntity<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws RestClientException { + public ResponseEntity getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -309,7 +309,7 @@ public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws RestClientE * @param pet Pet object that needs to be added to the store (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updatePet(Pet pet) throws RestClientException { + public void updatePet(@javax.annotation.Nonnull Pet pet) throws RestClientException { updatePetWithHttpInfo(pet); } @@ -324,7 +324,7 @@ public void updatePet(Pet pet) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity updatePetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity updatePetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -360,7 +360,7 @@ public ResponseEntity updatePetWithHttpInfo(Pet pet) throws RestClientExce * @param status Updated status of the pet (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updatePetWithForm(Long petId, String name, String status) throws RestClientException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws RestClientException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -375,7 +375,7 @@ public void updatePetWithForm(Long petId, String name, String status) throws Res * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws RestClientException { + public ResponseEntity updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -419,7 +419,7 @@ public ResponseEntity updatePetWithFormWithHttpInfo(Long petId, String nam * @return ModelApiResponse * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws RestClientException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws RestClientException { return uploadFileWithHttpInfo(petId, additionalMetadata, _file).getBody(); } @@ -433,7 +433,7 @@ public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _ * @return ResponseEntity<ModelApiResponse> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws RestClientException { + public ResponseEntity uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -479,7 +479,7 @@ public ResponseEntity uploadFileWithHttpInfo(Long petId, Strin * @return ModelApiResponse * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws RestClientException { + public ModelApiResponse uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws RestClientException { return uploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata).getBody(); } @@ -493,7 +493,7 @@ public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile * @return ResponseEntity<ModelApiResponse> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws RestClientException { + public ResponseEntity uploadFileWithRequiredFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/StoreApi.java index 615a3cbf5ba3..04381b6658be 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/StoreApi.java @@ -45,7 +45,7 @@ public StoreApi(ApiClient apiClient) { * @param orderId ID of the order that needs to be deleted (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deleteOrder(String orderId) throws RestClientException { + public void deleteOrder(@javax.annotation.Nonnull String orderId) throws RestClientException { deleteOrderWithHttpInfo(orderId); } @@ -58,7 +58,7 @@ public void deleteOrder(String orderId) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deleteOrderWithHttpInfo(String orderId) throws RestClientException { + public ResponseEntity deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'orderId' is set @@ -134,7 +134,7 @@ public ResponseEntity> getInventoryWithHttpInfo() throws Re * @return Order * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Order getOrderById(Long orderId) throws RestClientException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws RestClientException { return getOrderByIdWithHttpInfo(orderId).getBody(); } @@ -148,7 +148,7 @@ public Order getOrderById(Long orderId) throws RestClientException { * @return ResponseEntity<Order> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getOrderByIdWithHttpInfo(Long orderId) throws RestClientException { + public ResponseEntity getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'orderId' is set @@ -186,7 +186,7 @@ public ResponseEntity getOrderByIdWithHttpInfo(Long orderId) throws RestC * @return Order * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Order placeOrder(Order order) throws RestClientException { + public Order placeOrder(@javax.annotation.Nonnull Order order) throws RestClientException { return placeOrderWithHttpInfo(order).getBody(); } @@ -199,7 +199,7 @@ public Order placeOrder(Order order) throws RestClientException { * @return ResponseEntity<Order> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity placeOrderWithHttpInfo(Order order) throws RestClientException { + public ResponseEntity placeOrderWithHttpInfo(@javax.annotation.Nonnull Order order) throws RestClientException { Object localVarPostBody = order; // verify the required parameter 'order' is set diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/UserApi.java index 1dcd28332b06..b1e341816965 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/UserApi.java @@ -45,7 +45,7 @@ public UserApi(ApiClient apiClient) { * @param user Created user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUser(User user) throws RestClientException { + public void createUser(@javax.annotation.Nonnull User user) throws RestClientException { createUserWithHttpInfo(user); } @@ -57,7 +57,7 @@ public void createUser(User user) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUserWithHttpInfo(User user) throws RestClientException { + public ResponseEntity createUserWithHttpInfo(@javax.annotation.Nonnull User user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -90,7 +90,7 @@ public ResponseEntity createUserWithHttpInfo(User user) throws RestClientE * @param user List of user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUsersWithArrayInput(List user) throws RestClientException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List user) throws RestClientException { createUsersWithArrayInputWithHttpInfo(user); } @@ -102,7 +102,7 @@ public void createUsersWithArrayInput(List user) throws RestClientExceptio * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUsersWithArrayInputWithHttpInfo(List user) throws RestClientException { + public ResponseEntity createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -135,7 +135,7 @@ public ResponseEntity createUsersWithArrayInputWithHttpInfo(List use * @param user List of user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUsersWithListInput(List user) throws RestClientException { + public void createUsersWithListInput(@javax.annotation.Nonnull List user) throws RestClientException { createUsersWithListInputWithHttpInfo(user); } @@ -147,7 +147,7 @@ public void createUsersWithListInput(List user) throws RestClientException * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUsersWithListInputWithHttpInfo(List user) throws RestClientException { + public ResponseEntity createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -181,7 +181,7 @@ public ResponseEntity createUsersWithListInputWithHttpInfo(List user * @param username The name that needs to be deleted (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deleteUser(String username) throws RestClientException { + public void deleteUser(@javax.annotation.Nonnull String username) throws RestClientException { deleteUserWithHttpInfo(username); } @@ -194,7 +194,7 @@ public void deleteUser(String username) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deleteUserWithHttpInfo(String username) throws RestClientException { + public ResponseEntity deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -231,7 +231,7 @@ public ResponseEntity deleteUserWithHttpInfo(String username) throws RestC * @return User * @throws RestClientException if an error occurs while attempting to invoke the API */ - public User getUserByName(String username) throws RestClientException { + public User getUserByName(@javax.annotation.Nonnull String username) throws RestClientException { return getUserByNameWithHttpInfo(username).getBody(); } @@ -245,7 +245,7 @@ public User getUserByName(String username) throws RestClientException { * @return ResponseEntity<User> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getUserByNameWithHttpInfo(String username) throws RestClientException { + public ResponseEntity getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -284,7 +284,7 @@ public ResponseEntity getUserByNameWithHttpInfo(String username) throws Re * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String loginUser(String username, String password) throws RestClientException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws RestClientException { return loginUserWithHttpInfo(username, password).getBody(); } @@ -298,7 +298,7 @@ public String loginUser(String username, String password) throws RestClientExcep * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity loginUserWithHttpInfo(String username, String password) throws RestClientException { + public ResponseEntity loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -378,7 +378,7 @@ public ResponseEntity logoutUserWithHttpInfo() throws RestClientException * @param user Updated user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updateUser(String username, User user) throws RestClientException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws RestClientException { updateUserWithHttpInfo(username, user); } @@ -392,7 +392,7 @@ public void updateUser(String username, User user) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity updateUserWithHttpInfo(String username, User user) throws RestClientException { + public ResponseEntity updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'username' is set diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 0307e5febcbf..d4a87120a76b 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -45,7 +45,7 @@ public AnotherFakeApi(ApiClient apiClient) { * @return Client * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Client call123testSpecialTags(Client client) throws RestClientException { + public Client call123testSpecialTags(@javax.annotation.Nonnull Client client) throws RestClientException { return call123testSpecialTagsWithHttpInfo(client).getBody(); } @@ -57,7 +57,7 @@ public Client call123testSpecialTags(Client client) throws RestClientException { * @return ResponseEntity<Client> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity call123testSpecialTagsWithHttpInfo(Client client) throws RestClientException { + public ResponseEntity call123testSpecialTagsWithHttpInfo(@javax.annotation.Nonnull Client client) throws RestClientException { Object localVarPostBody = client; // verify the required parameter 'client' is set diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeApi.java index 729ffb7db428..3366149610e2 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeApi.java @@ -138,7 +138,7 @@ public ResponseEntity fakeHealthGetWithHttpInfo() throws Rest * @param header1 header parameter (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void fakeHttpSignatureTest(Pet pet, String query1, String header1) throws RestClientException { + public void fakeHttpSignatureTest(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1) throws RestClientException { fakeHttpSignatureTestWithHttpInfo(pet, query1, header1); } @@ -152,7 +152,7 @@ public void fakeHttpSignatureTest(Pet pet, String query1, String header1) throws * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeHttpSignatureTestWithHttpInfo(Pet pet, String query1, String header1) throws RestClientException { + public ResponseEntity fakeHttpSignatureTestWithHttpInfo(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -192,7 +192,7 @@ public ResponseEntity fakeHttpSignatureTestWithHttpInfo(Pet pet, String qu * @return Boolean * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Boolean fakeOuterBooleanSerialize(Boolean body) throws RestClientException { + public Boolean fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body) throws RestClientException { return fakeOuterBooleanSerializeWithHttpInfo(body).getBody(); } @@ -204,7 +204,7 @@ public Boolean fakeOuterBooleanSerialize(Boolean body) throws RestClientExceptio * @return ResponseEntity<Boolean> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws RestClientException { + public ResponseEntity fakeOuterBooleanSerializeWithHttpInfo(@javax.annotation.Nullable Boolean body) throws RestClientException { Object localVarPostBody = body; @@ -235,7 +235,7 @@ public ResponseEntity fakeOuterBooleanSerializeWithHttpInfo(Boolean bod * @return OuterComposite * @throws RestClientException if an error occurs while attempting to invoke the API */ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws RestClientException { + public OuterComposite fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite outerComposite) throws RestClientException { return fakeOuterCompositeSerializeWithHttpInfo(outerComposite).getBody(); } @@ -247,7 +247,7 @@ public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) * @return ResponseEntity<OuterComposite> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws RestClientException { + public ResponseEntity fakeOuterCompositeSerializeWithHttpInfo(@javax.annotation.Nullable OuterComposite outerComposite) throws RestClientException { Object localVarPostBody = outerComposite; @@ -278,7 +278,7 @@ public ResponseEntity fakeOuterCompositeSerializeWithHttpInfo(Ou * @return BigDecimal * @throws RestClientException if an error occurs while attempting to invoke the API */ - public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws RestClientException { + public BigDecimal fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body) throws RestClientException { return fakeOuterNumberSerializeWithHttpInfo(body).getBody(); } @@ -290,7 +290,7 @@ public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws RestClientExc * @return ResponseEntity<BigDecimal> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws RestClientException { + public ResponseEntity fakeOuterNumberSerializeWithHttpInfo(@javax.annotation.Nullable BigDecimal body) throws RestClientException { Object localVarPostBody = body; @@ -321,7 +321,7 @@ public ResponseEntity fakeOuterNumberSerializeWithHttpInfo(BigDecima * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String fakeOuterStringSerialize(String body) throws RestClientException { + public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws RestClientException { return fakeOuterStringSerializeWithHttpInfo(body).getBody(); } @@ -333,7 +333,7 @@ public String fakeOuterStringSerialize(String body) throws RestClientException { * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterStringSerializeWithHttpInfo(String body) throws RestClientException { + public ResponseEntity fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws RestClientException { Object localVarPostBody = body; @@ -364,7 +364,7 @@ public ResponseEntity fakeOuterStringSerializeWithHttpInfo(String body) * @return OuterObjectWithEnumProperty * @throws RestClientException if an error occurs while attempting to invoke the API */ - public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientException { + public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientException { return fakePropertyEnumIntegerSerializeWithHttpInfo(outerObjectWithEnumProperty).getBody(); } @@ -376,7 +376,7 @@ public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(OuterObjectW * @return ResponseEntity<OuterObjectWithEnumProperty> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakePropertyEnumIntegerSerializeWithHttpInfo(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientException { + public ResponseEntity fakePropertyEnumIntegerSerializeWithHttpInfo(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientException { Object localVarPostBody = outerObjectWithEnumProperty; // verify the required parameter 'outerObjectWithEnumProperty' is set @@ -411,7 +411,7 @@ public ResponseEntity fakePropertyEnumIntegerSerial * @param requestBody request body (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testAdditionalPropertiesReference(Map requestBody) throws RestClientException { + public void testAdditionalPropertiesReference(@javax.annotation.Nonnull Map requestBody) throws RestClientException { testAdditionalPropertiesReferenceWithHttpInfo(requestBody); } @@ -423,7 +423,7 @@ public void testAdditionalPropertiesReference(Map requestBody) t * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testAdditionalPropertiesReferenceWithHttpInfo(Map requestBody) throws RestClientException { + public ResponseEntity testAdditionalPropertiesReferenceWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws RestClientException { Object localVarPostBody = requestBody; // verify the required parameter 'requestBody' is set @@ -456,7 +456,7 @@ public ResponseEntity testAdditionalPropertiesReferenceWithHttpInfo(Map testBodyWithBinaryWithHttpInfo(File body) throws RestClientException { + public ResponseEntity testBodyWithBinaryWithHttpInfo(@javax.annotation.Nullable File body) throws RestClientException { Object localVarPostBody = body; // verify the required parameter 'body' is set @@ -501,7 +501,7 @@ public ResponseEntity testBodyWithBinaryWithHttpInfo(File body) throws Res * @param fileSchemaTestClass (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws RestClientException { + public void testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientException { testBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass); } @@ -513,7 +513,7 @@ public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) thro * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws RestClientException { + public ResponseEntity testBodyWithFileSchemaWithHttpInfo(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientException { Object localVarPostBody = fileSchemaTestClass; // verify the required parameter 'fileSchemaTestClass' is set @@ -547,7 +547,7 @@ public ResponseEntity testBodyWithFileSchemaWithHttpInfo(FileSchemaTestCla * @param user (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testBodyWithQueryParams(String query, User user) throws RestClientException { + public void testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws RestClientException { testBodyWithQueryParamsWithHttpInfo(query, user); } @@ -560,7 +560,7 @@ public void testBodyWithQueryParams(String query, User user) throws RestClientEx * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testBodyWithQueryParamsWithHttpInfo(String query, User user) throws RestClientException { + public ResponseEntity testBodyWithQueryParamsWithHttpInfo(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'query' is set @@ -602,7 +602,7 @@ public ResponseEntity testBodyWithQueryParamsWithHttpInfo(String query, Us * @return Client * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Client testClientModel(Client client) throws RestClientException { + public Client testClientModel(@javax.annotation.Nonnull Client client) throws RestClientException { return testClientModelWithHttpInfo(client).getBody(); } @@ -614,7 +614,7 @@ public Client testClientModel(Client client) throws RestClientException { * @return ResponseEntity<Client> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testClientModelWithHttpInfo(Client client) throws RestClientException { + public ResponseEntity testClientModelWithHttpInfo(@javax.annotation.Nonnull Client client) throws RestClientException { Object localVarPostBody = client; // verify the required parameter 'client' is set @@ -663,7 +663,7 @@ public ResponseEntity testClientModelWithHttpInfo(Client client) throws * @param paramCallback None (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws RestClientException { + public void testEndpointParameters(@javax.annotation.Nonnull BigDecimal number, @javax.annotation.Nonnull Double _double, @javax.annotation.Nonnull String patternWithoutDelimiter, @javax.annotation.Nonnull byte[] _byte, @javax.annotation.Nullable Integer integer, @javax.annotation.Nullable Integer int32, @javax.annotation.Nullable Long int64, @javax.annotation.Nullable Float _float, @javax.annotation.Nullable String string, @javax.annotation.Nullable File binary, @javax.annotation.Nullable LocalDate date, @javax.annotation.Nullable OffsetDateTime dateTime, @javax.annotation.Nullable String password, @javax.annotation.Nullable String paramCallback) throws RestClientException { testEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -689,7 +689,7 @@ public void testEndpointParameters(BigDecimal number, Double _double, String pat * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEndpointParametersWithHttpInfo(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws RestClientException { + public ResponseEntity testEndpointParametersWithHttpInfo(@javax.annotation.Nonnull BigDecimal number, @javax.annotation.Nonnull Double _double, @javax.annotation.Nonnull String patternWithoutDelimiter, @javax.annotation.Nonnull byte[] _byte, @javax.annotation.Nullable Integer integer, @javax.annotation.Nullable Integer int32, @javax.annotation.Nullable Long int64, @javax.annotation.Nullable Float _float, @javax.annotation.Nullable String string, @javax.annotation.Nullable File binary, @javax.annotation.Nullable LocalDate date, @javax.annotation.Nullable OffsetDateTime dateTime, @javax.annotation.Nullable String password, @javax.annotation.Nullable String paramCallback) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'number' is set @@ -775,7 +775,7 @@ public ResponseEntity testEndpointParametersWithHttpInfo(BigDecimal number * @param enumFormString Form parameter enum test (string) (optional, default to -efg) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws RestClientException { + public void testEnumParameters(@javax.annotation.Nullable List enumHeaderStringArray, @javax.annotation.Nullable String enumHeaderString, @javax.annotation.Nullable List enumQueryStringArray, @javax.annotation.Nullable String enumQueryString, @javax.annotation.Nullable Integer enumQueryInteger, @javax.annotation.Nullable Double enumQueryDouble, @javax.annotation.Nullable List enumQueryModelArray, @javax.annotation.Nullable List enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws RestClientException { testEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString); } @@ -796,7 +796,7 @@ public void testEnumParameters(List enumHeaderStringArray, String enumHe * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEnumParametersWithHttpInfo(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws RestClientException { + public ResponseEntity testEnumParametersWithHttpInfo(@javax.annotation.Nullable List enumHeaderStringArray, @javax.annotation.Nullable String enumHeaderString, @javax.annotation.Nullable List enumQueryStringArray, @javax.annotation.Nullable String enumQueryString, @javax.annotation.Nullable Integer enumQueryInteger, @javax.annotation.Nullable Double enumQueryDouble, @javax.annotation.Nullable List enumQueryModelArray, @javax.annotation.Nullable List enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws RestClientException { Object localVarPostBody = null; @@ -846,7 +846,7 @@ public ResponseEntity testEnumParametersWithHttpInfo(List enumHead * @param int64Group Integer in group parameters (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws RestClientException { + public void testGroupParameters(@javax.annotation.Nonnull Integer requiredStringGroup, @javax.annotation.Nonnull Boolean requiredBooleanGroup, @javax.annotation.Nonnull Long requiredInt64Group, @javax.annotation.Nullable Integer stringGroup, @javax.annotation.Nullable Boolean booleanGroup, @javax.annotation.Nullable Long int64Group) throws RestClientException { testGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -863,7 +863,7 @@ public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBoo * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws RestClientException { + public ResponseEntity testGroupParametersWithHttpInfo(@javax.annotation.Nonnull Integer requiredStringGroup, @javax.annotation.Nonnull Boolean requiredBooleanGroup, @javax.annotation.Nonnull Long requiredInt64Group, @javax.annotation.Nullable Integer stringGroup, @javax.annotation.Nullable Boolean booleanGroup, @javax.annotation.Nullable Long int64Group) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'requiredStringGroup' is set @@ -915,7 +915,7 @@ public ResponseEntity testGroupParametersWithHttpInfo(Integer requiredStri * @param requestBody request body (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testInlineAdditionalProperties(Map requestBody) throws RestClientException { + public void testInlineAdditionalProperties(@javax.annotation.Nonnull Map requestBody) throws RestClientException { testInlineAdditionalPropertiesWithHttpInfo(requestBody); } @@ -927,7 +927,7 @@ public void testInlineAdditionalProperties(Map requestBody) thro * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testInlineAdditionalPropertiesWithHttpInfo(Map requestBody) throws RestClientException { + public ResponseEntity testInlineAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws RestClientException { Object localVarPostBody = requestBody; // verify the required parameter 'requestBody' is set @@ -960,7 +960,7 @@ public ResponseEntity testInlineAdditionalPropertiesWithHttpInfo(Map testInlineFreeformAdditionalPropertiesWithHttpInfo(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientException { + public ResponseEntity testInlineFreeformAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientException { Object localVarPostBody = testInlineFreeformAdditionalPropertiesRequest; // verify the required parameter 'testInlineFreeformAdditionalPropertiesRequest' is set @@ -1006,7 +1006,7 @@ public ResponseEntity testInlineFreeformAdditionalPropertiesWithHttpInfo(T * @param param2 field2 (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testJsonFormData(String param, String param2) throws RestClientException { + public void testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws RestClientException { testJsonFormDataWithHttpInfo(param, param2); } @@ -1019,7 +1019,7 @@ public void testJsonFormData(String param, String param2) throws RestClientExcep * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testJsonFormDataWithHttpInfo(String param, String param2) throws RestClientException { + public ResponseEntity testJsonFormDataWithHttpInfo(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'param' is set @@ -1062,7 +1062,7 @@ public ResponseEntity testJsonFormDataWithHttpInfo(String param, String pa * @param childWithNullable request body (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testNullable(ChildWithNullable childWithNullable) throws RestClientException { + public void testNullable(@javax.annotation.Nonnull ChildWithNullable childWithNullable) throws RestClientException { testNullableWithHttpInfo(childWithNullable); } @@ -1074,7 +1074,7 @@ public void testNullable(ChildWithNullable childWithNullable) throws RestClientE * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testNullableWithHttpInfo(ChildWithNullable childWithNullable) throws RestClientException { + public ResponseEntity testNullableWithHttpInfo(@javax.annotation.Nonnull ChildWithNullable childWithNullable) throws RestClientException { Object localVarPostBody = childWithNullable; // verify the required parameter 'childWithNullable' is set @@ -1113,7 +1113,7 @@ public ResponseEntity testNullableWithHttpInfo(ChildWithNullable childWith * @param language (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws RestClientException { + public void testQueryParameterCollectionFormat(@javax.annotation.Nonnull List pipe, @javax.annotation.Nonnull List ioutil, @javax.annotation.Nonnull List http, @javax.annotation.Nonnull List url, @javax.annotation.Nonnull List context, @javax.annotation.Nonnull String allowEmpty, @javax.annotation.Nullable Map language) throws RestClientException { testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context, allowEmpty, language); } @@ -1131,7 +1131,7 @@ public void testQueryParameterCollectionFormat(List pipe, List i * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws RestClientException { + public ResponseEntity testQueryParameterCollectionFormatWithHttpInfo(@javax.annotation.Nonnull List pipe, @javax.annotation.Nonnull List ioutil, @javax.annotation.Nonnull List http, @javax.annotation.Nonnull List url, @javax.annotation.Nonnull List context, @javax.annotation.Nonnull String allowEmpty, @javax.annotation.Nullable Map language) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'pipe' is set @@ -1196,7 +1196,7 @@ public ResponseEntity testQueryParameterCollectionFormatWithHttpInfo(List< * @param requestBody request body (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testStringMapReference(Map requestBody) throws RestClientException { + public void testStringMapReference(@javax.annotation.Nonnull Map requestBody) throws RestClientException { testStringMapReferenceWithHttpInfo(requestBody); } @@ -1208,7 +1208,7 @@ public void testStringMapReference(Map requestBody) throws RestC * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testStringMapReferenceWithHttpInfo(Map requestBody) throws RestClientException { + public ResponseEntity testStringMapReferenceWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws RestClientException { Object localVarPostBody = requestBody; // verify the required parameter 'requestBody' is set diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 9f560f1a5ca1..2975dde1f524 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -45,7 +45,7 @@ public FakeClassnameTags123Api(ApiClient apiClient) { * @return Client * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Client testClassname(Client client) throws RestClientException { + public Client testClassname(@javax.annotation.Nonnull Client client) throws RestClientException { return testClassnameWithHttpInfo(client).getBody(); } @@ -57,7 +57,7 @@ public Client testClassname(Client client) throws RestClientException { * @return ResponseEntity<Client> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testClassnameWithHttpInfo(Client client) throws RestClientException { + public ResponseEntity testClassnameWithHttpInfo(@javax.annotation.Nonnull Client client) throws RestClientException { Object localVarPostBody = client; // verify the required parameter 'client' is set diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/PetApi.java index c5b72e2838d1..58c8bced78ae 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/PetApi.java @@ -48,7 +48,7 @@ public PetApi(ApiClient apiClient) { * @param pet Pet object that needs to be added to the store (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void addPet(Pet pet) throws RestClientException { + public void addPet(@javax.annotation.Nonnull Pet pet) throws RestClientException { addPetWithHttpInfo(pet); } @@ -61,7 +61,7 @@ public void addPet(Pet pet) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity addPetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity addPetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -96,7 +96,7 @@ public ResponseEntity addPetWithHttpInfo(Pet pet) throws RestClientExcepti * @param apiKey (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deletePet(Long petId, String apiKey) throws RestClientException { + public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws RestClientException { deletePetWithHttpInfo(petId, apiKey); } @@ -110,7 +110,7 @@ public void deletePet(Long petId, String apiKey) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deletePetWithHttpInfo(Long petId, String apiKey) throws RestClientException { + public ResponseEntity deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -149,7 +149,7 @@ public ResponseEntity deletePetWithHttpInfo(Long petId, String apiKey) thr * @return List<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public List findPetsByStatus(List status) throws RestClientException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws RestClientException { return findPetsByStatusWithHttpInfo(status).getBody(); } @@ -162,7 +162,7 @@ public List findPetsByStatus(List status) throws RestClientExceptio * @return ResponseEntity<List<Pet>> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity> findPetsByStatusWithHttpInfo(List status) throws RestClientException { + public ResponseEntity> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'status' is set @@ -202,7 +202,7 @@ public ResponseEntity> findPetsByStatusWithHttpInfo(List statu * @deprecated */ @Deprecated - public Set findPetsByTags(Set tags) throws RestClientException { + public Set findPetsByTags(@javax.annotation.Nonnull Set tags) throws RestClientException { return findPetsByTagsWithHttpInfo(tags).getBody(); } @@ -217,7 +217,7 @@ public Set findPetsByTags(Set tags) throws RestClientException { * @deprecated */ @Deprecated - public ResponseEntity> findPetsByTagsWithHttpInfo(Set tags) throws RestClientException { + public ResponseEntity> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull Set tags) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'tags' is set @@ -256,7 +256,7 @@ public ResponseEntity> findPetsByTagsWithHttpInfo(Set tags) thr * @return Pet * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Pet getPetById(Long petId) throws RestClientException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws RestClientException { return getPetByIdWithHttpInfo(petId).getBody(); } @@ -270,7 +270,7 @@ public Pet getPetById(Long petId) throws RestClientException { * @return ResponseEntity<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws RestClientException { + public ResponseEntity getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -309,7 +309,7 @@ public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws RestClientE * @param pet Pet object that needs to be added to the store (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updatePet(Pet pet) throws RestClientException { + public void updatePet(@javax.annotation.Nonnull Pet pet) throws RestClientException { updatePetWithHttpInfo(pet); } @@ -324,7 +324,7 @@ public void updatePet(Pet pet) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity updatePetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity updatePetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -360,7 +360,7 @@ public ResponseEntity updatePetWithHttpInfo(Pet pet) throws RestClientExce * @param status Updated status of the pet (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updatePetWithForm(Long petId, String name, String status) throws RestClientException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws RestClientException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -375,7 +375,7 @@ public void updatePetWithForm(Long petId, String name, String status) throws Res * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws RestClientException { + public ResponseEntity updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -419,7 +419,7 @@ public ResponseEntity updatePetWithFormWithHttpInfo(Long petId, String nam * @return ModelApiResponse * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws RestClientException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws RestClientException { return uploadFileWithHttpInfo(petId, additionalMetadata, _file).getBody(); } @@ -433,7 +433,7 @@ public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _ * @return ResponseEntity<ModelApiResponse> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws RestClientException { + public ResponseEntity uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -479,7 +479,7 @@ public ResponseEntity uploadFileWithHttpInfo(Long petId, Strin * @return ModelApiResponse * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws RestClientException { + public ModelApiResponse uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws RestClientException { return uploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata).getBody(); } @@ -493,7 +493,7 @@ public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile * @return ResponseEntity<ModelApiResponse> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws RestClientException { + public ResponseEntity uploadFileWithRequiredFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/StoreApi.java index 615a3cbf5ba3..04381b6658be 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/StoreApi.java @@ -45,7 +45,7 @@ public StoreApi(ApiClient apiClient) { * @param orderId ID of the order that needs to be deleted (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deleteOrder(String orderId) throws RestClientException { + public void deleteOrder(@javax.annotation.Nonnull String orderId) throws RestClientException { deleteOrderWithHttpInfo(orderId); } @@ -58,7 +58,7 @@ public void deleteOrder(String orderId) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deleteOrderWithHttpInfo(String orderId) throws RestClientException { + public ResponseEntity deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'orderId' is set @@ -134,7 +134,7 @@ public ResponseEntity> getInventoryWithHttpInfo() throws Re * @return Order * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Order getOrderById(Long orderId) throws RestClientException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws RestClientException { return getOrderByIdWithHttpInfo(orderId).getBody(); } @@ -148,7 +148,7 @@ public Order getOrderById(Long orderId) throws RestClientException { * @return ResponseEntity<Order> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getOrderByIdWithHttpInfo(Long orderId) throws RestClientException { + public ResponseEntity getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'orderId' is set @@ -186,7 +186,7 @@ public ResponseEntity getOrderByIdWithHttpInfo(Long orderId) throws RestC * @return Order * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Order placeOrder(Order order) throws RestClientException { + public Order placeOrder(@javax.annotation.Nonnull Order order) throws RestClientException { return placeOrderWithHttpInfo(order).getBody(); } @@ -199,7 +199,7 @@ public Order placeOrder(Order order) throws RestClientException { * @return ResponseEntity<Order> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity placeOrderWithHttpInfo(Order order) throws RestClientException { + public ResponseEntity placeOrderWithHttpInfo(@javax.annotation.Nonnull Order order) throws RestClientException { Object localVarPostBody = order; // verify the required parameter 'order' is set diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/UserApi.java index 1dcd28332b06..b1e341816965 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/UserApi.java @@ -45,7 +45,7 @@ public UserApi(ApiClient apiClient) { * @param user Created user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUser(User user) throws RestClientException { + public void createUser(@javax.annotation.Nonnull User user) throws RestClientException { createUserWithHttpInfo(user); } @@ -57,7 +57,7 @@ public void createUser(User user) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUserWithHttpInfo(User user) throws RestClientException { + public ResponseEntity createUserWithHttpInfo(@javax.annotation.Nonnull User user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -90,7 +90,7 @@ public ResponseEntity createUserWithHttpInfo(User user) throws RestClientE * @param user List of user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUsersWithArrayInput(List user) throws RestClientException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List user) throws RestClientException { createUsersWithArrayInputWithHttpInfo(user); } @@ -102,7 +102,7 @@ public void createUsersWithArrayInput(List user) throws RestClientExceptio * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUsersWithArrayInputWithHttpInfo(List user) throws RestClientException { + public ResponseEntity createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -135,7 +135,7 @@ public ResponseEntity createUsersWithArrayInputWithHttpInfo(List use * @param user List of user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUsersWithListInput(List user) throws RestClientException { + public void createUsersWithListInput(@javax.annotation.Nonnull List user) throws RestClientException { createUsersWithListInputWithHttpInfo(user); } @@ -147,7 +147,7 @@ public void createUsersWithListInput(List user) throws RestClientException * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUsersWithListInputWithHttpInfo(List user) throws RestClientException { + public ResponseEntity createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -181,7 +181,7 @@ public ResponseEntity createUsersWithListInputWithHttpInfo(List user * @param username The name that needs to be deleted (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deleteUser(String username) throws RestClientException { + public void deleteUser(@javax.annotation.Nonnull String username) throws RestClientException { deleteUserWithHttpInfo(username); } @@ -194,7 +194,7 @@ public void deleteUser(String username) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deleteUserWithHttpInfo(String username) throws RestClientException { + public ResponseEntity deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -231,7 +231,7 @@ public ResponseEntity deleteUserWithHttpInfo(String username) throws RestC * @return User * @throws RestClientException if an error occurs while attempting to invoke the API */ - public User getUserByName(String username) throws RestClientException { + public User getUserByName(@javax.annotation.Nonnull String username) throws RestClientException { return getUserByNameWithHttpInfo(username).getBody(); } @@ -245,7 +245,7 @@ public User getUserByName(String username) throws RestClientException { * @return ResponseEntity<User> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getUserByNameWithHttpInfo(String username) throws RestClientException { + public ResponseEntity getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -284,7 +284,7 @@ public ResponseEntity getUserByNameWithHttpInfo(String username) throws Re * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String loginUser(String username, String password) throws RestClientException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws RestClientException { return loginUserWithHttpInfo(username, password).getBody(); } @@ -298,7 +298,7 @@ public String loginUser(String username, String password) throws RestClientExcep * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity loginUserWithHttpInfo(String username, String password) throws RestClientException { + public ResponseEntity loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -378,7 +378,7 @@ public ResponseEntity logoutUserWithHttpInfo() throws RestClientException * @param user Updated user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updateUser(String username, User user) throws RestClientException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws RestClientException { updateUserWithHttpInfo(username, user); } @@ -392,7 +392,7 @@ public void updateUser(String username, User user) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity updateUserWithHttpInfo(String username, User user) throws RestClientException { + public ResponseEntity updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'username' is set