diff --git a/modules/openapi-generator/src/main/resources/Java/api.mustache b/modules/openapi-generator/src/main/resources/Java/api.mustache index 8ce0ae1c463..f0e57bd127e 100644 --- a/modules/openapi-generator/src/main/resources/Java/api.mustache +++ b/modules/openapi-generator/src/main/resources/Java/api.mustache @@ -61,7 +61,7 @@ public class {{classname}} { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public {{#returnType}}{{{.}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { + public {{#returnType}}{{{.}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { Object localVarPostBody = {{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}}; {{#allParams}}{{#required}} // verify the required parameter '{{paramName}}' is set diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/apache-httpclient/api.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/apache-httpclient/api.mustache index cfcd9f04ce6..e9516a7476f 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/apache-httpclient/api.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/apache-httpclient/api.mustache @@ -62,7 +62,7 @@ public class {{classname}} extends BaseApi { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public {{#returnType}}{{{returnType}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { + public {{#returnType}}{{{returnType}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { {{#returnType}}return {{/returnType}}this.{{operationId}}({{#allParams}}{{paramName}}, {{/allParams}}Collections.emptyMap()); } @@ -89,7 +89,7 @@ public class {{classname}} extends BaseApi { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public {{#returnType}}{{{returnType}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}, {{/allParams}}Map additionalHeaders) throws ApiException { + public {{#returnType}}{{{returnType}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}, {{/allParams}}Map additionalHeaders) throws ApiException { Object localVarPostBody = {{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}}; {{#allParams}}{{#required}} // verify the required parameter '{{paramName}}' is set diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/feign/api.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/feign/api.mustache index d67de9a28da..3a1bf77e5c2 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/feign/api.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/feign/api.mustache @@ -52,7 +52,7 @@ public interface {{classname}} extends ApiClient.Api { "{{baseName}}: {{=<% %>=}}{<%paramName%>}<%={{ }}=%>"{{^-last}}, {{/-last}}{{/headerParams}} }) - {{#returnType}}{{{.}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{nickname}}({{#allParams}}{{^isBodyParam}}{{^isFormParam}}{{^legacyDates}}@Param("{{paramName}}") {{/legacyDates}}{{#legacyDates}}@Param(value="{{paramName}}", expander=ParamExpander.class) {{/legacyDates}}{{/isFormParam}}{{#isFormParam}}@Param("{{baseName}}") {{/isFormParam}}{{/isBodyParam}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); + {{#returnType}}{{{.}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{nickname}}({{#allParams}}{{^isBodyParam}}{{^isFormParam}}{{^legacyDates}}@Param("{{paramName}}") {{/legacyDates}}{{#legacyDates}}@Param(value="{{paramName}}", expander=ParamExpander.class) {{/legacyDates}}{{/isFormParam}}{{#isFormParam}}@Param("{{baseName}}") {{/isFormParam}}{{/isBodyParam}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); /** * {{summary}} @@ -82,7 +82,7 @@ public interface {{classname}} extends ApiClient.Api { "{{baseName}}: {{=<% %>=}}{<%paramName%>}<%={{ }}=%>"{{^-last}}, {{/-last}}{{/headerParams}} }) - ApiResponse<{{#returnType}}{{{.}}}{{/returnType}}{{^returnType}}Void{{/returnType}}> {{nickname}}WithHttpInfo({{#allParams}}{{^isBodyParam}}{{^isFormParam}}{{^legacyDates}}@Param("{{paramName}}") {{/legacyDates}}{{#legacyDates}}@Param(value="{{paramName}}", expander=ParamExpander.class) {{/legacyDates}}{{/isFormParam}}{{#isFormParam}}@Param("{{baseName}}") {{/isFormParam}}{{/isBodyParam}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); + ApiResponse<{{#returnType}}{{{.}}}{{/returnType}}{{^returnType}}Void{{/returnType}}> {{nickname}}WithHttpInfo({{#allParams}}{{^isBodyParam}}{{^isFormParam}}{{^legacyDates}}@Param("{{paramName}}") {{/legacyDates}}{{#legacyDates}}@Param(value="{{paramName}}", expander=ParamExpander.class) {{/legacyDates}}{{/isFormParam}}{{#isFormParam}}@Param("{{baseName}}") {{/isFormParam}}{{/isBodyParam}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); {{#hasQueryParams}} @@ -127,7 +127,7 @@ public interface {{classname}} extends ApiClient.Api { "{{baseName}}: {{=<% %>=}}{<%paramName%>}<%={{ }}=%>"{{^-last}}, {{/-last}}{{/headerParams}} }) - {{#returnType}}{{{.}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{nickname}}({{#allParams}}{{^isQueryParam}}{{^isBodyParam}}{{^isFormParam}}{{^legacyDates}}@Param("{{paramName}}") {{/legacyDates}}{{#legacyDates}}@Param(value="{{paramName}}", expander=ParamExpander.class) {{/legacyDates}}{{/isFormParam}}{{#isFormParam}}@Param("{{baseName}}") {{/isFormParam}}{{/isBodyParam}}{{{dataType}}} {{paramName}}, {{/isQueryParam}}{{/allParams}}@QueryMap(encoded=true) {{operationIdCamelCase}}QueryParams queryParams); + {{#returnType}}{{{.}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{nickname}}({{#allParams}}{{^isQueryParam}}{{^isBodyParam}}{{^isFormParam}}{{^legacyDates}}@Param("{{paramName}}") {{/legacyDates}}{{#legacyDates}}@Param(value="{{paramName}}", expander=ParamExpander.class) {{/legacyDates}}{{/isFormParam}}{{#isFormParam}}@Param("{{baseName}}") {{/isFormParam}}{{/isBodyParam}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}, {{/isQueryParam}}{{/allParams}}@QueryMap(encoded=true) {{operationIdCamelCase}}QueryParams queryParams); /** * {{summary}} @@ -167,7 +167,7 @@ public interface {{classname}} extends ApiClient.Api { "{{baseName}}: {{=<% %>=}}{<%paramName%>}<%={{ }}=%>"{{^-last}}, {{/-last}}{{/headerParams}} }) - ApiResponse<{{#returnType}}{{{.}}}{{/returnType}}{{^returnType}}Void{{/returnType}}> {{nickname}}WithHttpInfo({{#allParams}}{{^isQueryParam}}{{^isBodyParam}}{{^isFormParam}}{{^legacyDates}}@Param("{{paramName}}") {{/legacyDates}}{{#legacyDates}}@Param(value="{{paramName}}", expander=ParamExpander.class) {{/legacyDates}}{{/isFormParam}}{{#isFormParam}}@Param("{{baseName}}") {{/isFormParam}}{{/isBodyParam}}{{{dataType}}} {{paramName}}, {{/isQueryParam}}{{/allParams}}@QueryMap(encoded=true) {{operationIdCamelCase}}QueryParams queryParams); + ApiResponse<{{#returnType}}{{{.}}}{{/returnType}}{{^returnType}}Void{{/returnType}}> {{nickname}}WithHttpInfo({{#allParams}}{{^isQueryParam}}{{^isBodyParam}}{{^isFormParam}}{{^legacyDates}}@Param("{{paramName}}") {{/legacyDates}}{{#legacyDates}}@Param(value="{{paramName}}", expander=ParamExpander.class) {{/legacyDates}}{{/isFormParam}}{{#isFormParam}}@Param("{{baseName}}") {{/isFormParam}}{{/isBodyParam}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}, {{/isQueryParam}}{{/allParams}}@QueryMap(encoded=true) {{operationIdCamelCase}}QueryParams queryParams); /** @@ -176,7 +176,7 @@ public interface {{classname}} extends ApiClient.Api { */ public static class {{operationIdCamelCase}}QueryParams extends HashMap { {{#queryParams}} - public {{operationIdCamelCase}}QueryParams {{paramName}}(final {{{dataType}}} value) { + public {{operationIdCamelCase}}QueryParams {{paramName}}({{>nullable_var_annotations}} final {{{dataType}}} value) { {{#collectionFormat}} put("{{baseName}}", EncodingUtils.encodeCollection(value, "{{collectionFormat}}")); {{/collectionFormat}} diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/google-api-client/api.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/google-api-client/api.mustache index 6ca6a281176..f2875be78ff 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/google-api-client/api.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/google-api-client/api.mustache @@ -61,7 +61,7 @@ public class {{classname}} { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public {{#returnType}}{{{.}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws IOException { + public {{#returnType}}{{{.}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws IOException { {{#returnType}}HttpResponse response = {{/returnType}}{{operationId}}ForHttpResponse({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}});{{#returnType}} TypeReference<{{{returnType}}}> typeRef = new TypeReference<{{{returnType}}}>() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);{{/returnType}} @@ -85,7 +85,7 @@ public class {{classname}} { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public {{#returnType}}{{{.}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#bodyParam}}{{^required}}{{{dataType}}} {{paramName}}, {{/required}}{{/bodyParam}}{{#requiredParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/requiredParams}}{{#hasRequiredParams}}, {{/hasRequiredParams}}Map params) throws IOException { + public {{#returnType}}{{{.}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#bodyParam}}{{^required}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}, {{/required}}{{/bodyParam}}{{#requiredParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/requiredParams}}{{#hasRequiredParams}}, {{/hasRequiredParams}}Map params) throws IOException { {{#returnType}}HttpResponse response = {{/returnType}}{{operationId}}ForHttpResponse({{#bodyParam}}{{^required}}{{paramName}}, {{/required}}{{/bodyParam}}{{#requiredParams}}{{paramName}}{{^-last}}, {{/-last}}{{/requiredParams}}{{#hasRequiredParams}}, {{/hasRequiredParams}}params);{{#returnType}} TypeReference<{{{returnType}}}> typeRef = new TypeReference<{{{returnType}}}>() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);{{/returnType}} @@ -94,7 +94,7 @@ public class {{classname}} { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public HttpResponse {{operationId}}ForHttpResponse({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws IOException { + public HttpResponse {{operationId}}ForHttpResponse({{#allParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws IOException { {{#allParams}}{{#required}}// verify the required parameter '{{paramName}}' is set if ({{paramName}} == null) { throw new IllegalArgumentException("Missing the required parameter '{{paramName}}' when calling {{operationId}}"); @@ -128,7 +128,7 @@ public class {{classname}} { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public HttpResponse {{operationId}}ForHttpResponse({{#allParams}}{{#isBodyParam}}java.io.InputStream {{paramName}}{{/isBodyParam}}{{^isBodyParam}}{{{dataType}}} {{paramName}}{{/isBodyParam}}{{^-last}}, {{/-last}}{{/allParams}}, String mediaType) throws IOException { + public HttpResponse {{operationId}}ForHttpResponse({{#allParams}}{{#isBodyParam}}java.io.InputStream {{paramName}}{{/isBodyParam}}{{^isBodyParam}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{/isBodyParam}}{{^-last}}, {{/-last}}{{/allParams}}, String mediaType) throws IOException { {{#allParams}}{{#required}}// verify the required parameter '{{paramName}}' is set if ({{paramName}} == null) { throw new IllegalArgumentException("Missing the required parameter '{{paramName}}' when calling {{operationId}}"); @@ -164,7 +164,7 @@ public class {{classname}} { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public HttpResponse {{operationId}}ForHttpResponse({{#bodyParam}}{{^required}}{{{dataType}}} {{paramName}}, {{/required}}{{/bodyParam}}{{#requiredParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/requiredParams}}{{#hasRequiredParams}}, {{/hasRequiredParams}}Map params) throws IOException { + public HttpResponse {{operationId}}ForHttpResponse({{#bodyParam}}{{^required}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}, {{/required}}{{/bodyParam}}{{#requiredParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/requiredParams}}{{#hasRequiredParams}}, {{/hasRequiredParams}}Map params) throws IOException { {{#allParams}}{{#required}}// verify the required parameter '{{paramName}}' is set if ({{paramName}} == null) { throw new IllegalArgumentException("Missing the required parameter '{{paramName}}' when calling {{operationId}}"); diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/api.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/api.mustache index 62edfeb8ee1..d9e9bf14bcd 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/api.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/api.mustache @@ -86,7 +86,7 @@ public class {{classname}} { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public {{#returnType}}{{{.}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { + public {{#returnType}}{{{.}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { {{#returnType}}return {{/returnType}}{{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}){{#returnType}}.getData(){{/returnType}}; } {{/vendorExtensions.x-group-parameters}} @@ -121,7 +121,7 @@ public class {{classname}} { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}private{{/vendorExtensions.x-group-parameters}} ApiResponse<{{{returnType}}}{{^returnType}}Void{{/returnType}}> {{operationId}}WithHttpInfo({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { + public{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}private{{/vendorExtensions.x-group-parameters}} ApiResponse<{{{returnType}}}{{^returnType}}Void{{/returnType}}> {{operationId}}WithHttpInfo({{#allParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { {{#hasRequiredParams}} // Check required parameters {{#allParams}} @@ -205,10 +205,11 @@ public class {{classname}} { public class API{{operationId}}Request { {{#allParams}} + {{>nullable_var_annotations}} private {{{dataType}}} {{paramName}}; {{/allParams}} - private API{{operationId}}Request({{#pathParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/pathParams}}) { + private API{{operationId}}Request({{#pathParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/pathParams}}) { {{#pathParams}} this.{{paramName}} = {{paramName}}; {{/pathParams}} @@ -221,7 +222,7 @@ public class {{classname}} { * @param {{paramName}} {{description}} ({{^required}}optional{{^isContainer}}{{#defaultValue}}, default to {{.}}{{/defaultValue}}{{/isContainer}}{{/required}}{{#required}}required{{/required}}) * @return API{{operationId}}Request */ - public API{{operationId}}Request {{paramName}}({{{dataType}}} {{paramName}}) { + public API{{operationId}}Request {{paramName}}({{>nullable_var_annotations}} {{{dataType}}} {{paramName}}) { this.{{paramName}} = {{paramName}}; return this; } @@ -287,7 +288,7 @@ public class {{classname}} { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public API{{operationId}}Request {{operationId}}({{#pathParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/pathParams}}) throws ApiException { + public API{{operationId}}Request {{operationId}}({{#pathParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/pathParams}}) throws ApiException { return new API{{operationId}}Request({{#pathParams}}{{paramName}}{{^-last}}, {{/-last}}{{/pathParams}}); } {{/vendorExtensions.x-group-parameters}} diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/api.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/api.mustache index be8861553dd..66051c4ffbc 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/api.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/api.mustache @@ -86,7 +86,7 @@ public class {{classname}} { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public {{#returnType}}{{{.}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { + public {{#returnType}}{{{.}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { {{#returnType}}return {{/returnType}}{{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}){{#returnType}}.getData(){{/returnType}}; } {{/vendorExtensions.x-group-parameters}} @@ -121,7 +121,7 @@ public class {{classname}} { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}private{{/vendorExtensions.x-group-parameters}} ApiResponse<{{{returnType}}}{{^returnType}}Void{{/returnType}}> {{operationId}}WithHttpInfo({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { + public{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}private{{/vendorExtensions.x-group-parameters}} ApiResponse<{{{returnType}}}{{^returnType}}Void{{/returnType}}> {{operationId}}WithHttpInfo({{#allParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { {{#hasRequiredParams}} // Check required parameters {{#allParams}} @@ -205,10 +205,11 @@ public class {{classname}} { public class API{{operationId}}Request { {{#allParams}} + {{>nullable_var_annotations}} private {{{dataType}}} {{paramName}}; {{/allParams}} - private API{{operationId}}Request({{#pathParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/pathParams}}) { + private API{{operationId}}Request({{#pathParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/pathParams}}) { {{#pathParams}} this.{{paramName}} = {{paramName}}; {{/pathParams}} @@ -221,7 +222,7 @@ public class {{classname}} { * @param {{paramName}} {{description}} ({{^required}}optional{{^isContainer}}{{#defaultValue}}, default to {{.}}{{/defaultValue}}{{/isContainer}}{{/required}}{{#required}}required{{/required}}) * @return API{{operationId}}Request */ - public API{{operationId}}Request {{paramName}}({{{dataType}}} {{paramName}}) { + public API{{operationId}}Request {{paramName}}({{>nullable_var_annotations}} {{{dataType}}} {{paramName}}) { this.{{paramName}} = {{paramName}}; return this; } @@ -287,7 +288,7 @@ public class {{classname}} { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public API{{operationId}}Request {{operationId}}({{#pathParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/pathParams}}) throws ApiException { + public API{{operationId}}Request {{operationId}}({{#pathParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/pathParams}}) throws ApiException { return new API{{operationId}}Request({{#pathParams}}{{paramName}}{{^-last}}, {{/-last}}{{/pathParams}}); } {{/vendorExtensions.x-group-parameters}} diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/native/api.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/native/api.mustache index c100f2f81c3..a136709bade 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/native/api.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/native/api.mustache @@ -129,6 +129,7 @@ public class {{classname}} { {{/isDeprecated}} public {{#returnType}}{{#asyncNative}}CompletableFuture<{{{returnType}}}>{{/asyncNative}}{{^asyncNative}}{{{returnType}}}{{/asyncNative}}{{/returnType}}{{^returnType}}{{#asyncNative}}CompletableFuture{{/asyncNative}}{{^asyncNative}}void{{/asyncNative}}{{/returnType}} {{operationId}}(API{{operationId}}Request apiRequest) throws ApiException { {{#allParams}} + {{>nullable_var_annotations}} {{{dataType}}} {{paramName}} = apiRequest.{{paramName}}(); {{/allParams}} {{#returnType}}return {{/returnType}}{{^returnType}}{{#asyncNative}}return {{/asyncNative}}{{/returnType}}{{operationId}}({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); @@ -186,7 +187,7 @@ public class {{classname}} { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public {{#returnType}}{{#asyncNative}}CompletableFuture<{{{returnType}}}>{{/asyncNative}}{{^asyncNative}}{{{returnType}}}{{/asyncNative}}{{/returnType}}{{^returnType}}{{#asyncNative}}CompletableFuture{{/asyncNative}}{{^asyncNative}}void{{/asyncNative}}{{/returnType}} {{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { + public {{#returnType}}{{#asyncNative}}CompletableFuture<{{{returnType}}}>{{/asyncNative}}{{^asyncNative}}{{{returnType}}}{{/asyncNative}}{{/returnType}}{{^returnType}}{{#asyncNative}}CompletableFuture{{/asyncNative}}{{^asyncNative}}void{{/asyncNative}}{{/returnType}} {{operationId}}({{#allParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { {{^asyncNative}} {{#returnType}}ApiResponse<{{{.}}}> localVarResponse = {{/returnType}}{{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); {{#returnType}} @@ -242,7 +243,7 @@ public class {{classname}} { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public {{#asyncNative}}CompletableFuture<{{/asyncNative}}ApiResponse<{{{returnType}}}{{^returnType}}Void{{/returnType}}>{{#asyncNative}}>{{/asyncNative}} {{operationId}}WithHttpInfo({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { + public {{#asyncNative}}CompletableFuture<{{/asyncNative}}ApiResponse<{{{returnType}}}{{^returnType}}Void{{/returnType}}>{{#asyncNative}}>{{/asyncNative}} {{operationId}}WithHttpInfo({{#allParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { {{^asyncNative}} HttpRequest.Builder localVarRequestBuilder = {{operationId}}RequestBuilder({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); try { @@ -363,7 +364,7 @@ public class {{classname}} { {{/asyncNative}} } - private HttpRequest.Builder {{operationId}}RequestBuilder({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { + private HttpRequest.Builder {{operationId}}RequestBuilder({{#allParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { {{#allParams}} {{#required}} // verify the required parameter '{{paramName}}' is set @@ -575,9 +576,11 @@ public class {{classname}} { public static final class API{{operationId}}Request { {{#requiredParams}} + {{>nullable_var_annotations}} private {{{dataType}}} {{paramName}}; // {{description}} (required) {{/requiredParams}} {{#optionalParams}} + {{>nullable_var_annotations}} private {{{dataType}}} {{paramName}}; // {{description}} (optional{{^isContainer}}{{#defaultValue}}, default to {{.}}{{/defaultValue}}{{/isContainer}}) {{/optionalParams}} @@ -590,6 +593,7 @@ public class {{classname}} { {{/optionalParams}} } {{#allParams}} + {{>nullable_var_annotations}} public {{{dataType}}} {{paramName}}() { return {{paramName}}; } @@ -607,7 +611,7 @@ public class {{classname}} { {{/optionalParams}} {{#allParams}} - public Builder {{paramName}}({{{dataType}}} {{paramName}}) { + public Builder {{paramName}}({{>nullable_var_annotations}} {{{dataType}}} {{paramName}}) { this.{{paramName}} = {{paramName}}; return this; } diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/api.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/api.mustache index 2dd79633eed..ac509525265 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/api.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/api.mustache @@ -117,7 +117,7 @@ public class {{classname}} { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}private{{/vendorExtensions.x-group-parameters}} okhttp3.Call {{operationId}}Call({{#allParams}}{{{dataType}}} {{paramName}}, {{/allParams}}final ApiCallback _callback) throws ApiException { + public{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}private{{/vendorExtensions.x-group-parameters}} okhttp3.Call {{operationId}}Call({{#allParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}, {{/allParams}}final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { {{#servers}}"{{{url}}}"{{^-last}}, {{/-last}}{{/servers}} }; @@ -243,7 +243,7 @@ public class {{classname}} { @Deprecated {{/isDeprecated}} @SuppressWarnings("rawtypes") - private okhttp3.Call {{operationId}}ValidateBeforeCall({{#allParams}}{{{dataType}}} {{paramName}}, {{/allParams}}final ApiCallback _callback) throws ApiException { + private okhttp3.Call {{operationId}}ValidateBeforeCall({{#allParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}, {{/allParams}}final ApiCallback _callback) throws ApiException { {{^performBeanValidation}} {{#allParams}} {{#required}} @@ -263,7 +263,7 @@ public class {{classname}} { ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { {{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}} }; - Method method = this.getClass().getMethod("{{operationId}}WithHttpInfo"{{#allParams}}, {{#isArray}}java.util.List{{/isArray}}{{#isMap}}java.util.Map{{/isMap}}{{^isArray}}{{^isMap}}{{{dataType}}}{{/isMap}}{{/isArray}}.class{{/allParams}}); + Method method = this.getClass().getMethod("{{operationId}}WithHttpInfo"{{#allParams}}, {{#isArray}}java.util.List{{/isArray}}{{#isMap}}java.util.Map{{/isMap}}{{^isArray}}{{^isMap}}{{>nullable_var_annotations}} {{{dataType}}}{{/isMap}}{{/isArray}}.class{{/allParams}}); Set> violations = executableValidator.validateParameters(this, method, parameterValues); @@ -311,13 +311,13 @@ public class {{classname}} { @Deprecated {{/isDeprecated}} {{#vendorExtensions.x-streaming}} - public {{#returnType}}InputStream {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { + public {{#returnType}}InputStream {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { {{#returnType}}InputStream localVarResp = {{/returnType}}{{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}});{{#returnType}} return localVarResp;{{/returnType}} } {{/vendorExtensions.x-streaming}} {{^vendorExtensions.x-streaming}} - public {{#returnType}}{{{.}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { + public {{#returnType}}{{{.}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { {{#returnType}}ApiResponse<{{{.}}}> localVarResp = {{/returnType}}{{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}});{{#returnType}} return localVarResp.getData();{{/returnType}} } @@ -351,7 +351,7 @@ public class {{classname}} { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}private{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-streaming}} InputStream {{operationId}}WithHttpInfo({{#allParams}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { + public{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}private{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-streaming}} InputStream {{operationId}}WithHttpInfo({{#allParams}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { okhttp3.Call localVarCall = {{operationId}}ValidateBeforeCall({{#allParams}}{{paramName}}, {{/allParams}}null); {{#returnType}} {{#errorObjectType}} @@ -369,7 +369,7 @@ public class {{classname}} { {{/errorObjectType}} {{/returnType}} } - {{/vendorExtensions.x-streaming}}{{^vendorExtensions.x-streaming}} ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}> {{operationId}}WithHttpInfo({{#allParams}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { + {{/vendorExtensions.x-streaming}}{{^vendorExtensions.x-streaming}} ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}> {{operationId}}WithHttpInfo({{#allParams}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { okhttp3.Call localVarCall = {{operationId}}ValidateBeforeCall({{#allParams}}{{paramName}}, {{/allParams}}null); {{^returnType}} return localVarApiClient.execute(localVarCall); @@ -420,7 +420,7 @@ public class {{classname}} { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}private{{/vendorExtensions.x-group-parameters}} okhttp3.Call {{operationId}}Async({{#allParams}}{{{dataType}}} {{paramName}}, {{/allParams}}final ApiCallback<{{{returnType}}}{{^returnType}}Void{{/returnType}}> _callback) throws ApiException { + public{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}private{{/vendorExtensions.x-group-parameters}} okhttp3.Call {{operationId}}Async({{#allParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}, {{/allParams}}final ApiCallback<{{{returnType}}}{{^returnType}}Void{{/returnType}}> _callback) throws ApiException { okhttp3.Call localVarCall = {{operationId}}ValidateBeforeCall({{#allParams}}{{paramName}}, {{/allParams}}_callback); {{#returnType}}Type localVarReturnType = new TypeToken<{{{returnType}}}>(){}.getType(); @@ -431,13 +431,15 @@ public class {{classname}} { public class API{{operationId}}Request { {{#requiredParams}} + {{>nullable_var_annotations}} private final {{{dataType}}} {{paramName}}; {{/requiredParams}} {{#optionalParams}} + {{>nullable_var_annotations}} private {{{dataType}}} {{paramName}}; {{/optionalParams}} - private API{{operationId}}Request({{#requiredParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/requiredParams}}) { + private API{{operationId}}Request({{#requiredParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/requiredParams}}) { {{#requiredParams}} this.{{paramName}} = {{paramName}}; {{/requiredParams}} @@ -449,7 +451,7 @@ public class {{classname}} { * @param {{paramName}} {{description}} (optional{{^isContainer}}{{#defaultValue}}, default to {{.}}{{/defaultValue}}{{/isContainer}}) * @return API{{operationId}}Request */ - public API{{operationId}}Request {{paramName}}({{{dataType}}} {{paramName}}) { + public API{{operationId}}Request {{paramName}}({{>nullable_var_annotations}} {{{dataType}}} {{paramName}}) { this.{{paramName}} = {{paramName}}; return this; } @@ -599,7 +601,7 @@ public class {{classname}} { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public API{{operationId}}Request {{operationId}}({{#requiredParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/requiredParams}}) { + public API{{operationId}}Request {{operationId}}({{#requiredParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/requiredParams}}) { return new API{{operationId}}Request({{#requiredParams}}{{paramName}}{{^-last}}, {{/-last}}{{/requiredParams}}); } {{/vendorExtensions.x-group-parameters}} diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/rest-assured/api.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/rest-assured/api.mustache index 1eae54272a6..e6da4fceea0 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/rest-assured/api.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/rest-assured/api.mustache @@ -191,7 +191,7 @@ public class {{classname}} { * @param {{paramName}} ({{dataType}}) {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}} * @return operation */ - public {{operationIdCamelCase}}Oper body({{{dataType}}} {{paramName}}) { + public {{operationIdCamelCase}}Oper body({{>nullable_var_annotations}} {{{dataType}}} {{paramName}}) { reqSpec.setBody({{paramName}}); return this; } @@ -259,7 +259,7 @@ public class {{classname}} { * @param {{paramName}} ({{dataType}}) {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}} * @return operation */ - public {{operationIdCamelCase}}Oper {{paramName}}MultiPart({{{dataType}}} {{paramName}}) { + public {{operationIdCamelCase}}Oper {{paramName}}MultiPart({{>nullable_var_annotations}} {{{dataType}}} {{paramName}}) { reqSpec.addMultiPart({{paramName}}); return this; } diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/restclient/api.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/restclient/api.mustache index 3398a53d38c..4e65a3cc9b2 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/restclient/api.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/restclient/api.mustache @@ -63,27 +63,27 @@ public class {{classname}} { {{^hasSingleParam}} {{^staticRequest}} - public record {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}){} + public record {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}){} {{/staticRequest}} {{#staticRequest}} public static class {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request { {{#allParams}} - private {{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}; + private {{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}; {{/allParams}} public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request() {} - public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) { + public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) { {{#allParams}} this.{{paramName}} = {{paramName}}; {{/allParams}} } {{#allParams}} - public {{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}() { + public {{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}() { return this.{{paramName}}; } - public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request {{paramName}}({{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}) { + public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request {{paramName}}({{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}) { this.{{paramName}} = {{paramName}}; return this; } @@ -161,7 +161,7 @@ public class {{classname}} { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - private ResponseSpec {{operationId}}RequestCreation({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws RestClientResponseException { + private ResponseSpec {{operationId}}RequestCreation({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws RestClientResponseException { Object postBody = {{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}}; {{#allParams}} {{#required}} @@ -238,7 +238,7 @@ public class {{classname}} { * @see {{summary}} Documentation {{/externalDocs}} */ - public {{#returnType}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws RestClientResponseException { + public {{#returnType}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws RestClientResponseException { {{#returnType}}ParameterizedTypeReference<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}> localVarReturnType = new ParameterizedTypeReference<>() {};{{/returnType}}{{^returnType}}ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};{{/returnType}} {{#returnType}}return {{/returnType}}{{operationId}}RequestCreation({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}).body(localVarReturnType); } @@ -255,7 +255,7 @@ public class {{classname}} { * @see {{summary}} Documentation {{/externalDocs}} */ - public {{#returnType}}ResponseEntity<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}>{{/returnType}}{{^returnType}}ResponseEntity{{/returnType}} {{operationId}}WithHttpInfo({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws RestClientResponseException { + public {{#returnType}}ResponseEntity<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}>{{/returnType}}{{^returnType}}ResponseEntity{{/returnType}} {{operationId}}WithHttpInfo({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws RestClientResponseException { {{#returnType}}ParameterizedTypeReference<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}> localVarReturnType = new ParameterizedTypeReference<>() {};{{/returnType}}{{^returnType}}ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};{{/returnType}} return {{operationId}}RequestCreation({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}).toEntity(localVarReturnType); } @@ -273,7 +273,7 @@ public class {{classname}} { * @see {{summary}} Documentation {{/externalDocs}} */ - public ResponseSpec {{operationId}}WithResponseSpec({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws RestClientResponseException { + public ResponseSpec {{operationId}}WithResponseSpec({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws RestClientResponseException { return {{operationId}}RequestCreation({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); } {{/operation}} diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/resteasy/api.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/resteasy/api.mustache index 773fc51cedc..2e654d169dd 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/resteasy/api.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/resteasy/api.mustache @@ -54,7 +54,7 @@ public class {{classname}} { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public {{#returnType}}{{{.}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { + public {{#returnType}}{{{.}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { Object localVarPostBody = {{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}}; {{#allParams}}{{#required}} // verify the required parameter '{{paramName}}' is set diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/vertx/api.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/vertx/api.mustache index b81c0610065..e77329ee961 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/vertx/api.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/vertx/api.mustache @@ -16,12 +16,12 @@ public interface {{classname}} { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - void {{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}, {{/allParams}}Handler> handler); + void {{operationId}}({{#allParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}, {{/allParams}}Handler> handler); {{#isDeprecated}} @Deprecated {{/isDeprecated}} - void {{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}, {{/allParams}}ApiClient.AuthInfo authInfo, Handler> handler); + void {{operationId}}({{#allParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}, {{/allParams}}ApiClient.AuthInfo authInfo, Handler> handler); {{/operation}} {{/operations}} diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/webclient/api.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/webclient/api.mustache index 47964e30a9c..a93bd0bd1a7 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/webclient/api.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/webclient/api.mustache @@ -62,22 +62,22 @@ public class {{classname}} { {{#operation}}{{#singleRequestParameter}}{{#hasParams}}{{^hasSingleParam}} public {{#staticRequest}}static {{/staticRequest}}class {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request { {{#allParams}} - private {{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}; + private {{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}; {{/allParams}} public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request() {} - public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) { + public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) { {{#allParams}} this.{{paramName}} = {{paramName}}; {{/allParams}} } {{#allParams}} - public {{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}() { + public {{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}() { return this.{{paramName}}; } - public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request {{paramName}}({{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}) { + public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request {{paramName}}({{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}) { this.{{paramName}} = {{paramName}}; return this; } @@ -152,7 +152,7 @@ public class {{classname}} { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - private ResponseSpec {{operationId}}RequestCreation({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws WebClientResponseException { + private ResponseSpec {{operationId}}RequestCreation({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws WebClientResponseException { Object postBody = {{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}}; {{#allParams}} {{#required}} @@ -229,7 +229,7 @@ public class {{classname}} { * @see {{summary}} Documentation {{/externalDocs}} */ - public {{#returnType}}{{#vendorExtensions.x-webclient-blocking}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}{{#uniqueItems}}Set{{/uniqueItems}}{{^uniqueItems}}List{{/uniqueItems}}<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnBaseType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnBaseType}}}{{/isResponseFile}}>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{/vendorExtensions.x-webclient-blocking}}{{^vendorExtensions.x-webclient-blocking}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}Flux<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnBaseType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnBaseType}}}{{/isResponseFile}}>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}Mono<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{/vendorExtensions.x-webclient-blocking}} {{/returnType}}{{^returnType}}{{#vendorExtensions.x-webclient-blocking}}void{{/vendorExtensions.x-webclient-blocking}}{{^vendorExtensions.x-webclient-blocking}}Mono{{/vendorExtensions.x-webclient-blocking}} {{/returnType}}{{operationId}}({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws WebClientResponseException { + public {{#returnType}}{{#vendorExtensions.x-webclient-blocking}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}{{#uniqueItems}}Set{{/uniqueItems}}{{^uniqueItems}}List{{/uniqueItems}}<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnBaseType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnBaseType}}}{{/isResponseFile}}>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{/vendorExtensions.x-webclient-blocking}}{{^vendorExtensions.x-webclient-blocking}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}Flux<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnBaseType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnBaseType}}}{{/isResponseFile}}>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}Mono<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{/vendorExtensions.x-webclient-blocking}} {{/returnType}}{{^returnType}}{{#vendorExtensions.x-webclient-blocking}}void{{/vendorExtensions.x-webclient-blocking}}{{^vendorExtensions.x-webclient-blocking}}Mono{{/vendorExtensions.x-webclient-blocking}} {{/returnType}}{{operationId}}({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws WebClientResponseException { {{#returnType}}ParameterizedTypeReference<{{#vendorExtensions.x-webclient-return-except-list-of-string}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnBaseType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnBaseType}}}{{/isResponseFile}}{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}{{/vendorExtensions.x-webclient-return-except-list-of-string}}> localVarReturnType = new ParameterizedTypeReference<{{#vendorExtensions.x-webclient-return-except-list-of-string}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnBaseType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnBaseType}}}{{/isResponseFile}}{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}{{/vendorExtensions.x-webclient-return-except-list-of-string}}>() {};{{/returnType}}{{^returnType}}ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};{{/returnType}} {{^returnType}}{{^vendorExtensions.x-webclient-blocking}}return {{/vendorExtensions.x-webclient-blocking}}{{/returnType}}{{#returnType}}return {{/returnType}}{{operationId}}RequestCreation({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}).{{#vendorExtensions.x-webclient-return-except-list-of-string}}bodyToFlux{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}bodyToMono{{/vendorExtensions.x-webclient-return-except-list-of-string}}(localVarReturnType){{#vendorExtensions.x-webclient-blocking}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}{{#uniqueItems}}.collect(Collectors.toSet()){{/uniqueItems}}{{^uniqueItems}}.collectList(){{/uniqueItems}}{{/vendorExtensions.x-webclient-return-except-list-of-string}}.block(){{/vendorExtensions.x-webclient-blocking}}; } @@ -246,7 +246,7 @@ public class {{classname}} { * @see {{summary}} Documentation {{/externalDocs}} */ - public {{#vendorExtensions.x-webclient-blocking}}{{#returnType}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}ResponseEntity>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}ResponseEntity<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{/returnType}}{{^returnType}}ResponseEntity{{/returnType}} {{/vendorExtensions.x-webclient-blocking}}{{^vendorExtensions.x-webclient-blocking}}{{#returnType}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}Mono>>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}Mono>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{/returnType}}{{^returnType}}Mono>{{/returnType}} {{/vendorExtensions.x-webclient-blocking}}{{operationId}}WithHttpInfo({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws WebClientResponseException { + public {{#vendorExtensions.x-webclient-blocking}}{{#returnType}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}ResponseEntity>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}ResponseEntity<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{/returnType}}{{^returnType}}ResponseEntity{{/returnType}} {{/vendorExtensions.x-webclient-blocking}}{{^vendorExtensions.x-webclient-blocking}}{{#returnType}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}Mono>>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}Mono>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{/returnType}}{{^returnType}}Mono>{{/returnType}} {{/vendorExtensions.x-webclient-blocking}}{{operationId}}WithHttpInfo({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws WebClientResponseException { {{#returnType}}ParameterizedTypeReference<{{#vendorExtensions.x-webclient-return-except-list-of-string}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnBaseType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnBaseType}}}{{/isResponseFile}}{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}{{/vendorExtensions.x-webclient-return-except-list-of-string}}> localVarReturnType = new ParameterizedTypeReference<{{#vendorExtensions.x-webclient-return-except-list-of-string}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnBaseType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnBaseType}}}{{/isResponseFile}}{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}{{/vendorExtensions.x-webclient-return-except-list-of-string}}>() {};{{/returnType}}{{^returnType}}ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};{{/returnType}} return {{operationId}}RequestCreation({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}).{{#vendorExtensions.x-webclient-return-except-list-of-string}}toEntityList{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}toEntity{{/vendorExtensions.x-webclient-return-except-list-of-string}}(localVarReturnType){{#vendorExtensions.x-webclient-blocking}}.block(){{/vendorExtensions.x-webclient-blocking}}; } @@ -264,7 +264,7 @@ public class {{classname}} { * @see {{summary}} Documentation {{/externalDocs}} */ - public ResponseSpec {{operationId}}WithResponseSpec({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws WebClientResponseException { + public ResponseSpec {{operationId}}WithResponseSpec({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws WebClientResponseException { return {{operationId}}RequestCreation({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); } {{/operation}} 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 254288edc2b..e5e14d46851 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 @@ -1304,7 +1304,7 @@ public class JavaClientCodegenTest { .contains( "@RequestLine(\"POST /events/{eventId}:undelete\")", // baseName is kept for form parameters - "@Param(\"some_file\") File someFile" + "@Param(\"some_file\") @javax.annotation.Nullable File someFile" ); } @@ -2609,16 +2609,16 @@ public class JavaClientCodegenTest { TestUtils.assertFileContains( output.resolve("src/main/java/xyz/abcdef/api/MultipartApi.java"), // multiple files - "multipartArray(List files)", + "multipartArray(@jakarta.annotation.Nullable List files)", "formParams.addAll(\"files\"," + " files.stream().map(FileSystemResource::new).collect(Collectors.toList()));", // mixed - "multipartMixed(MultipartMixedStatus status, File _file, MultipartMixedRequestMarker marker, List statusArray)", + "multipartMixed(@jakarta.annotation.Nonnull MultipartMixedStatus status, @jakarta.annotation.Nonnull File _file, @jakarta.annotation.Nullable MultipartMixedRequestMarker marker, @jakarta.annotation.Nullable List statusArray)", "formParams.add(\"file\", new FileSystemResource(_file));", // single file - "multipartSingle(File _file)", + "multipartSingle(@jakarta.annotation.Nullable File _file)", "formParams.add(\"file\", new FileSystemResource(_file));" ); } @@ -2644,7 +2644,7 @@ public class JavaClientCodegenTest { "formParams.addAll(\"files\", files.stream().collect(Collectors.toList()));", // mixed - "multipartMixed(MultipartMixedStatus status, org.springframework.core.io.AbstractResource _file, MultipartMixedRequestMarker marker, List statusArray)", + "multipartMixed(@jakarta.annotation.Nonnull MultipartMixedStatus status, org.springframework.core.io.AbstractResource _file, @jakarta.annotation.Nullable MultipartMixedRequestMarker marker, @jakarta.annotation.Nullable List statusArray)", "formParams.add(\"file\", _file);", // single file @@ -3197,13 +3197,13 @@ public class JavaClientCodegenTest { TestUtils.assertFileContains( output.resolve("src/main/java/xyz/abcdef/api/PetApi.java"), - "public record DeletePetRequest(Long petId, String apiKey){}", + "public record DeletePetRequest(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey){}", "public void deletePet(DeletePetRequest requestParameters) throws RestClientResponseException {", "public ResponseEntity deletePetWithHttpInfo(DeletePetRequest requestParameters) throws RestClientResponseException {", "public ResponseSpec deletePetWithResponseSpec(DeletePetRequest requestParameters) throws RestClientResponseException {", - "public void deletePet(Long petId, String apiKey) throws RestClientResponseException {", - "public ResponseEntity deletePetWithHttpInfo(Long petId, String apiKey) throws RestClientResponseException {", - "public ResponseSpec deletePetWithResponseSpec(Long petId, String apiKey) throws RestClientResponseException {" + "public void deletePet(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientResponseException {", + "public ResponseEntity deletePetWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientResponseException {", + "public ResponseSpec deletePetWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientResponseException {" ); } @@ -3225,17 +3225,17 @@ public class JavaClientCodegenTest { TestUtils.assertFileContains( output.resolve("src/main/java/xyz/abcdef/api/PetApi.java"), "public static class DeletePetRequest {", - "DeletePetRequest(Long petId, String apiKey)", + "DeletePetRequest(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey)", "Long petId()", - "DeletePetRequest petId(Long petId) {", + "DeletePetRequest petId(@jakarta.annotation.Nonnull Long petId) {", "String apiKey()", - "DeletePetRequest apiKey(String apiKey) {", + "DeletePetRequest apiKey(@jakarta.annotation.Nullable String apiKey) {", "public void deletePet(DeletePetRequest requestParameters) throws RestClientResponseException {", "public ResponseEntity deletePetWithHttpInfo(DeletePetRequest requestParameters) throws RestClientResponseException {", "public ResponseSpec deletePetWithResponseSpec(DeletePetRequest requestParameters) throws RestClientResponseException {", - "public void deletePet(Long petId, String apiKey) throws RestClientResponseException {", - "public ResponseEntity deletePetWithHttpInfo(Long petId, String apiKey) throws RestClientResponseException {", - "public ResponseSpec deletePetWithResponseSpec(Long petId, String apiKey) throws RestClientResponseException {" + "public void deletePet(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientResponseException {", + "public ResponseEntity deletePetWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientResponseException {", + "public ResponseSpec deletePetWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientResponseException {" ); TestUtils.assertFileNotContains(output.resolve("src/main/java/xyz/abcdef/api/PetApi.java"), "public record DeletePetRequest(Long petId, String apiKey){}"); @@ -3296,15 +3296,15 @@ public class JavaClientCodegenTest { TestUtils.assertFileContains( output.resolve("src/main/java/xyz/abcdef/api/PetApi.java"), "public class DeletePetRequest {", - "DeletePetRequest(Long petId, String apiKey)", + "DeletePetRequest(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey)", "Long petId()", "String apiKey()", "public Mono deletePet(DeletePetRequest requestParameters) throws WebClientResponseException {", "public Mono> deletePetWithHttpInfo(DeletePetRequest requestParameters) throws WebClientResponseException {", "public ResponseSpec deletePetWithResponseSpec(DeletePetRequest requestParameters) throws WebClientResponseException {", - "public Mono deletePet(Long petId, String apiKey) throws WebClientResponseException {", - "public Mono> deletePetWithHttpInfo(Long petId, String apiKey) throws WebClientResponseException {", - "public ResponseSpec deletePetWithResponseSpec(Long petId, String apiKey) throws WebClientResponseException {" + "public Mono deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws WebClientResponseException {", + "public Mono> deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws WebClientResponseException {", + "public ResponseSpec deletePetWithResponseSpec(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws WebClientResponseException {" ); } @@ -3326,15 +3326,15 @@ public class JavaClientCodegenTest { TestUtils.assertFileContains( output.resolve("src/main/java/xyz/abcdef/api/PetApi.java"), "public static class DeletePetRequest {", - "DeletePetRequest(Long petId, String apiKey)", + "DeletePetRequest(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey)", "Long petId()", "String apiKey()", "public Mono deletePet(DeletePetRequest requestParameters) throws WebClientResponseException {", "public Mono> deletePetWithHttpInfo(DeletePetRequest requestParameters) throws WebClientResponseException {", "public ResponseSpec deletePetWithResponseSpec(DeletePetRequest requestParameters) throws WebClientResponseException {", - "public Mono deletePet(Long petId, String apiKey) throws WebClientResponseException {", - "public Mono> deletePetWithHttpInfo(Long petId, String apiKey) throws WebClientResponseException {", - "public ResponseSpec deletePetWithResponseSpec(Long petId, String apiKey) throws WebClientResponseException {" + "public Mono deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws WebClientResponseException {", + "public Mono> deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws WebClientResponseException {", + "public ResponseSpec deletePetWithResponseSpec(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws WebClientResponseException {" ); } @@ -3356,17 +3356,17 @@ public class JavaClientCodegenTest { TestUtils.assertFileContains( output.resolve("src/main/java/xyz/abcdef/api/PetApi.java"), "public static class DeletePetRequest {", - "DeletePetRequest(Long petId, String apiKey)", + "DeletePetRequest(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey)", "Long petId()", - "DeletePetRequest petId(Long petId) {", + "DeletePetRequest petId(@javax.annotation.Nonnull Long petId) {", "String apiKey()", - "DeletePetRequest apiKey(String apiKey) {", + "DeletePetRequest apiKey(@javax.annotation.Nullable String apiKey) {", "public Mono deletePet(DeletePetRequest requestParameters) throws WebClientResponseException {", "public Mono> deletePetWithHttpInfo(DeletePetRequest requestParameters) throws WebClientResponseException {", "public ResponseSpec deletePetWithResponseSpec(DeletePetRequest requestParameters) throws WebClientResponseException {", - "public Mono deletePet(Long petId, String apiKey) throws WebClientResponseException {", - "public Mono> deletePetWithHttpInfo(Long petId, String apiKey) throws WebClientResponseException {", - "public ResponseSpec deletePetWithResponseSpec(Long petId, String apiKey) throws WebClientResponseException {" + "public Mono deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws WebClientResponseException {", + "public Mono> deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws WebClientResponseException {", + "public ResponseSpec deletePetWithResponseSpec(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws WebClientResponseException {" ); } @@ -3386,7 +3386,7 @@ public class JavaClientCodegenTest { TestUtils.assertFileContains( output.resolve("src/main/java/xyz/abcdef/api/ATagApi.java"), - " getCall(String pathParameter, Integer queryParameter, final ApiCallback _callback)" + " getCall(@javax.annotation.Nonnull String pathParameter, @javax.annotation.Nullable Integer queryParameter, final ApiCallback _callback)" ); TestUtils.assertFileNotContains( diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/api/BodyApi.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/api/BodyApi.java index f8345a90df4..047a97ee542 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/api/BodyApi.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/api/BodyApi.java @@ -118,7 +118,7 @@ public class BodyApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testBodyApplicationOctetstreamBinary(File body) throws ApiException { + public String testBodyApplicationOctetstreamBinary(@javax.annotation.Nullable File body) throws ApiException { return this.testBodyApplicationOctetstreamBinary(body, Collections.emptyMap()); } @@ -131,7 +131,7 @@ public class BodyApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testBodyApplicationOctetstreamBinary(File body, Map additionalHeaders) throws ApiException { + public String testBodyApplicationOctetstreamBinary(@javax.annotation.Nullable File body, Map additionalHeaders) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -187,7 +187,7 @@ public class BodyApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testBodyMultipartFormdataArrayOfBinary(List files) throws ApiException { + public String testBodyMultipartFormdataArrayOfBinary(@javax.annotation.Nonnull List files) throws ApiException { return this.testBodyMultipartFormdataArrayOfBinary(files, Collections.emptyMap()); } @@ -200,7 +200,7 @@ public class BodyApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testBodyMultipartFormdataArrayOfBinary(List files, Map additionalHeaders) throws ApiException { + public String testBodyMultipartFormdataArrayOfBinary(@javax.annotation.Nonnull List files, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'files' is set @@ -263,7 +263,7 @@ public class BodyApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testBodyMultipartFormdataSingleBinary(File myFile) throws ApiException { + public String testBodyMultipartFormdataSingleBinary(@javax.annotation.Nullable File myFile) throws ApiException { return this.testBodyMultipartFormdataSingleBinary(myFile, Collections.emptyMap()); } @@ -276,7 +276,7 @@ public class BodyApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testBodyMultipartFormdataSingleBinary(File myFile, Map additionalHeaders) throws ApiException { + public String testBodyMultipartFormdataSingleBinary(@javax.annotation.Nullable File myFile, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -334,7 +334,7 @@ public class BodyApi extends BaseApi { * @return Pet * @throws ApiException if fails to make API call */ - public Pet testEchoBodyAllOfPet(Pet pet) throws ApiException { + public Pet testEchoBodyAllOfPet(@javax.annotation.Nullable Pet pet) throws ApiException { return this.testEchoBodyAllOfPet(pet, Collections.emptyMap()); } @@ -347,7 +347,7 @@ public class BodyApi extends BaseApi { * @return Pet * @throws ApiException if fails to make API call */ - public Pet testEchoBodyAllOfPet(Pet pet, Map additionalHeaders) throws ApiException { + public Pet testEchoBodyAllOfPet(@javax.annotation.Nullable Pet pet, Map additionalHeaders) throws ApiException { Object localVarPostBody = pet; // create path and map variables @@ -403,7 +403,7 @@ public class BodyApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testEchoBodyFreeFormObjectResponseString(Object body) throws ApiException { + public String testEchoBodyFreeFormObjectResponseString(@javax.annotation.Nullable Object body) throws ApiException { return this.testEchoBodyFreeFormObjectResponseString(body, Collections.emptyMap()); } @@ -416,7 +416,7 @@ public class BodyApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testEchoBodyFreeFormObjectResponseString(Object body, Map additionalHeaders) throws ApiException { + public String testEchoBodyFreeFormObjectResponseString(@javax.annotation.Nullable Object body, Map additionalHeaders) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -472,7 +472,7 @@ public class BodyApi extends BaseApi { * @return Pet * @throws ApiException if fails to make API call */ - public Pet testEchoBodyPet(Pet pet) throws ApiException { + public Pet testEchoBodyPet(@javax.annotation.Nullable Pet pet) throws ApiException { return this.testEchoBodyPet(pet, Collections.emptyMap()); } @@ -485,7 +485,7 @@ public class BodyApi extends BaseApi { * @return Pet * @throws ApiException if fails to make API call */ - public Pet testEchoBodyPet(Pet pet, Map additionalHeaders) throws ApiException { + public Pet testEchoBodyPet(@javax.annotation.Nullable Pet pet, Map additionalHeaders) throws ApiException { Object localVarPostBody = pet; // create path and map variables @@ -541,7 +541,7 @@ public class BodyApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testEchoBodyPetResponseString(Pet pet) throws ApiException { + public String testEchoBodyPetResponseString(@javax.annotation.Nullable Pet pet) throws ApiException { return this.testEchoBodyPetResponseString(pet, Collections.emptyMap()); } @@ -554,7 +554,7 @@ public class BodyApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testEchoBodyPetResponseString(Pet pet, Map additionalHeaders) throws ApiException { + public String testEchoBodyPetResponseString(@javax.annotation.Nullable Pet pet, Map additionalHeaders) throws ApiException { Object localVarPostBody = pet; // create path and map variables @@ -610,7 +610,7 @@ public class BodyApi extends BaseApi { * @return StringEnumRef * @throws ApiException if fails to make API call */ - public StringEnumRef testEchoBodyStringEnum(String body) throws ApiException { + public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable String body) throws ApiException { return this.testEchoBodyStringEnum(body, Collections.emptyMap()); } @@ -623,7 +623,7 @@ public class BodyApi extends BaseApi { * @return StringEnumRef * @throws ApiException if fails to make API call */ - public StringEnumRef testEchoBodyStringEnum(String body, Map additionalHeaders) throws ApiException { + public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable String body, Map additionalHeaders) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -679,7 +679,7 @@ public class BodyApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testEchoBodyTagResponseString(Tag tag) throws ApiException { + public String testEchoBodyTagResponseString(@javax.annotation.Nullable Tag tag) throws ApiException { return this.testEchoBodyTagResponseString(tag, Collections.emptyMap()); } @@ -692,7 +692,7 @@ public class BodyApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testEchoBodyTagResponseString(Tag tag, Map additionalHeaders) throws ApiException { + public String testEchoBodyTagResponseString(@javax.annotation.Nullable Tag tag, Map additionalHeaders) throws ApiException { Object localVarPostBody = tag; // create path and map variables diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/api/FormApi.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/api/FormApi.java index 6e8a11c2c43..4a3c4545916 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/api/FormApi.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/api/FormApi.java @@ -50,7 +50,7 @@ public class FormApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testFormIntegerBooleanString(Integer integerForm, Boolean booleanForm, String stringForm) throws ApiException { + public String testFormIntegerBooleanString(@javax.annotation.Nullable Integer integerForm, @javax.annotation.Nullable Boolean booleanForm, @javax.annotation.Nullable String stringForm) throws ApiException { return this.testFormIntegerBooleanString(integerForm, booleanForm, stringForm, Collections.emptyMap()); } @@ -65,7 +65,7 @@ public class FormApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testFormIntegerBooleanString(Integer integerForm, Boolean booleanForm, String stringForm, Map additionalHeaders) throws ApiException { + public String testFormIntegerBooleanString(@javax.annotation.Nullable Integer integerForm, @javax.annotation.Nullable Boolean booleanForm, @javax.annotation.Nullable String stringForm, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -127,7 +127,7 @@ if (stringForm != null) * @return String * @throws ApiException if fails to make API call */ - public String testFormObjectMultipart(TestFormObjectMultipartRequestMarker marker) throws ApiException { + public String testFormObjectMultipart(@javax.annotation.Nonnull TestFormObjectMultipartRequestMarker marker) throws ApiException { return this.testFormObjectMultipart(marker, Collections.emptyMap()); } @@ -140,7 +140,7 @@ if (stringForm != null) * @return String * @throws ApiException if fails to make API call */ - public String testFormObjectMultipart(TestFormObjectMultipartRequestMarker marker, Map additionalHeaders) throws ApiException { + public String testFormObjectMultipart(@javax.annotation.Nonnull TestFormObjectMultipartRequestMarker marker, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'marker' is set @@ -208,7 +208,7 @@ if (stringForm != null) * @return String * @throws ApiException if fails to make API call */ - public String testFormOneof(String form1, Integer form2, String form3, Boolean form4, Long id, String name) throws ApiException { + 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 ApiException { return this.testFormOneof(form1, form2, form3, form4, id, name, Collections.emptyMap()); } @@ -226,7 +226,7 @@ if (stringForm != null) * @return String * @throws ApiException if fails to make API call */ - public String testFormOneof(String form1, Integer form2, String form3, Boolean form4, Long id, String name, Map additionalHeaders) throws ApiException { + 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, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // create path and map variables diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/api/HeaderApi.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/api/HeaderApi.java index 3eb8fc6fa16..2911f630adb 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/api/HeaderApi.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/api/HeaderApi.java @@ -52,7 +52,7 @@ public class HeaderApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testHeaderIntegerBooleanStringEnums(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader) throws ApiException { + 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 ApiException { return this.testHeaderIntegerBooleanStringEnums(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader, Collections.emptyMap()); } @@ -69,7 +69,7 @@ public class HeaderApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testHeaderIntegerBooleanStringEnums(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader, Map additionalHeaders) throws ApiException { + 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, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // create path and map variables diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/api/PathApi.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/api/PathApi.java index 43c640409ee..ec86823c354 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/api/PathApi.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/api/PathApi.java @@ -51,7 +51,7 @@ public class PathApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath) throws ApiException { + public String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(@javax.annotation.Nonnull String pathString, @javax.annotation.Nonnull Integer pathInteger, @javax.annotation.Nonnull String enumNonrefStringPath, @javax.annotation.Nonnull StringEnumRef enumRefStringPath) throws ApiException { return this.testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath, Collections.emptyMap()); } @@ -67,7 +67,7 @@ public class PathApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath, Map additionalHeaders) throws ApiException { + public String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(@javax.annotation.Nonnull String pathString, @javax.annotation.Nonnull Integer pathInteger, @javax.annotation.Nonnull String enumNonrefStringPath, @javax.annotation.Nonnull StringEnumRef enumRefStringPath, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'pathString' is set diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/api/QueryApi.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/api/QueryApi.java index 1eb9afda653..bcb5e37f2f1 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/api/QueryApi.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/api/QueryApi.java @@ -55,7 +55,7 @@ public class QueryApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testEnumRefString(String enumNonrefStringQuery, StringEnumRef enumRefStringQuery) throws ApiException { + public String testEnumRefString(@javax.annotation.Nullable String enumNonrefStringQuery, @javax.annotation.Nullable StringEnumRef enumRefStringQuery) throws ApiException { return this.testEnumRefString(enumNonrefStringQuery, enumRefStringQuery, Collections.emptyMap()); } @@ -69,7 +69,7 @@ public class QueryApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testEnumRefString(String enumNonrefStringQuery, StringEnumRef enumRefStringQuery, Map additionalHeaders) throws ApiException { + public String testEnumRefString(@javax.annotation.Nullable String enumNonrefStringQuery, @javax.annotation.Nullable StringEnumRef enumRefStringQuery, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -129,7 +129,7 @@ public class QueryApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testQueryDatetimeDateString(OffsetDateTime datetimeQuery, LocalDate dateQuery, String stringQuery) throws ApiException { + public String testQueryDatetimeDateString(@javax.annotation.Nullable OffsetDateTime datetimeQuery, @javax.annotation.Nullable LocalDate dateQuery, @javax.annotation.Nullable String stringQuery) throws ApiException { return this.testQueryDatetimeDateString(datetimeQuery, dateQuery, stringQuery, Collections.emptyMap()); } @@ -144,7 +144,7 @@ public class QueryApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testQueryDatetimeDateString(OffsetDateTime datetimeQuery, LocalDate dateQuery, String stringQuery, Map additionalHeaders) throws ApiException { + public String testQueryDatetimeDateString(@javax.annotation.Nullable OffsetDateTime datetimeQuery, @javax.annotation.Nullable LocalDate dateQuery, @javax.annotation.Nullable String stringQuery, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -205,7 +205,7 @@ public class QueryApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testQueryIntegerBooleanString(Integer integerQuery, Boolean booleanQuery, String stringQuery) throws ApiException { + public String testQueryIntegerBooleanString(@javax.annotation.Nullable Integer integerQuery, @javax.annotation.Nullable Boolean booleanQuery, @javax.annotation.Nullable String stringQuery) throws ApiException { return this.testQueryIntegerBooleanString(integerQuery, booleanQuery, stringQuery, Collections.emptyMap()); } @@ -220,7 +220,7 @@ public class QueryApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testQueryIntegerBooleanString(Integer integerQuery, Boolean booleanQuery, String stringQuery, Map additionalHeaders) throws ApiException { + public String testQueryIntegerBooleanString(@javax.annotation.Nullable Integer integerQuery, @javax.annotation.Nullable Boolean booleanQuery, @javax.annotation.Nullable String stringQuery, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -279,7 +279,7 @@ public class QueryApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testQueryStyleDeepObjectExplodeTrueObject(Pet queryObject) throws ApiException { + public String testQueryStyleDeepObjectExplodeTrueObject(@javax.annotation.Nullable Pet queryObject) throws ApiException { return this.testQueryStyleDeepObjectExplodeTrueObject(queryObject, Collections.emptyMap()); } @@ -292,7 +292,7 @@ public class QueryApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testQueryStyleDeepObjectExplodeTrueObject(Pet queryObject, Map additionalHeaders) throws ApiException { + public String testQueryStyleDeepObjectExplodeTrueObject(@javax.annotation.Nullable Pet queryObject, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -350,7 +350,7 @@ public class QueryApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testQueryStyleDeepObjectExplodeTrueObjectAllOf(TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws ApiException { + public String testQueryStyleDeepObjectExplodeTrueObjectAllOf(@javax.annotation.Nullable TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws ApiException { return this.testQueryStyleDeepObjectExplodeTrueObjectAllOf(queryObject, Collections.emptyMap()); } @@ -363,7 +363,7 @@ public class QueryApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testQueryStyleDeepObjectExplodeTrueObjectAllOf(TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject, Map additionalHeaders) throws ApiException { + public String testQueryStyleDeepObjectExplodeTrueObjectAllOf(@javax.annotation.Nullable TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -421,7 +421,7 @@ public class QueryApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testQueryStyleFormExplodeFalseArrayInteger(List queryObject) throws ApiException { + public String testQueryStyleFormExplodeFalseArrayInteger(@javax.annotation.Nullable List queryObject) throws ApiException { return this.testQueryStyleFormExplodeFalseArrayInteger(queryObject, Collections.emptyMap()); } @@ -434,7 +434,7 @@ public class QueryApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testQueryStyleFormExplodeFalseArrayInteger(List queryObject, Map additionalHeaders) throws ApiException { + public String testQueryStyleFormExplodeFalseArrayInteger(@javax.annotation.Nullable List queryObject, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -491,7 +491,7 @@ public class QueryApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testQueryStyleFormExplodeFalseArrayString(List queryObject) throws ApiException { + public String testQueryStyleFormExplodeFalseArrayString(@javax.annotation.Nullable List queryObject) throws ApiException { return this.testQueryStyleFormExplodeFalseArrayString(queryObject, Collections.emptyMap()); } @@ -504,7 +504,7 @@ public class QueryApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testQueryStyleFormExplodeFalseArrayString(List queryObject, Map additionalHeaders) throws ApiException { + public String testQueryStyleFormExplodeFalseArrayString(@javax.annotation.Nullable List queryObject, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -561,7 +561,7 @@ public class QueryApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testQueryStyleFormExplodeTrueArrayString(TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws ApiException { + public String testQueryStyleFormExplodeTrueArrayString(@javax.annotation.Nullable TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws ApiException { return this.testQueryStyleFormExplodeTrueArrayString(queryObject, Collections.emptyMap()); } @@ -574,7 +574,7 @@ public class QueryApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testQueryStyleFormExplodeTrueArrayString(TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject, Map additionalHeaders) throws ApiException { + public String testQueryStyleFormExplodeTrueArrayString(@javax.annotation.Nullable TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -631,7 +631,7 @@ public class QueryApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testQueryStyleFormExplodeTrueObject(Pet queryObject) throws ApiException { + public String testQueryStyleFormExplodeTrueObject(@javax.annotation.Nullable Pet queryObject) throws ApiException { return this.testQueryStyleFormExplodeTrueObject(queryObject, Collections.emptyMap()); } @@ -644,7 +644,7 @@ public class QueryApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testQueryStyleFormExplodeTrueObject(Pet queryObject, Map additionalHeaders) throws ApiException { + public String testQueryStyleFormExplodeTrueObject(@javax.annotation.Nullable Pet queryObject, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -706,7 +706,7 @@ public class QueryApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testQueryStyleFormExplodeTrueObjectAllOf(DataQuery queryObject) throws ApiException { + public String testQueryStyleFormExplodeTrueObjectAllOf(@javax.annotation.Nullable DataQuery queryObject) throws ApiException { return this.testQueryStyleFormExplodeTrueObjectAllOf(queryObject, Collections.emptyMap()); } @@ -719,7 +719,7 @@ public class QueryApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String testQueryStyleFormExplodeTrueObjectAllOf(DataQuery queryObject, Map additionalHeaders) throws ApiException { + public String testQueryStyleFormExplodeTrueObjectAllOf(@javax.annotation.Nullable DataQuery queryObject, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // create path and map variables diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/api/BodyApi.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/api/BodyApi.java index 24d03357a85..d8dd3abb939 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/api/BodyApi.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/api/BodyApi.java @@ -55,7 +55,7 @@ public interface BodyApi extends ApiClient.Api { "Content-Type: application/octet-stream", "Accept: text/plain", }) - String testBodyApplicationOctetstreamBinary(File body); + String testBodyApplicationOctetstreamBinary(@javax.annotation.Nullable File body); /** * Test body parameter(s) @@ -69,7 +69,7 @@ public interface BodyApi extends ApiClient.Api { "Content-Type: application/octet-stream", "Accept: text/plain", }) - ApiResponse testBodyApplicationOctetstreamBinaryWithHttpInfo(File body); + ApiResponse testBodyApplicationOctetstreamBinaryWithHttpInfo(@javax.annotation.Nullable File body); @@ -84,7 +84,7 @@ public interface BodyApi extends ApiClient.Api { "Content-Type: multipart/form-data", "Accept: text/plain", }) - String testBodyMultipartFormdataArrayOfBinary(@Param("files") List files); + String testBodyMultipartFormdataArrayOfBinary(@Param("files") @javax.annotation.Nonnull List files); /** * Test array of binary in multipart mime @@ -98,7 +98,7 @@ public interface BodyApi extends ApiClient.Api { "Content-Type: multipart/form-data", "Accept: text/plain", }) - ApiResponse testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(@Param("files") List files); + ApiResponse testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(@Param("files") @javax.annotation.Nonnull List files); @@ -113,7 +113,7 @@ public interface BodyApi extends ApiClient.Api { "Content-Type: multipart/form-data", "Accept: text/plain", }) - String testBodyMultipartFormdataSingleBinary(@Param("my-file") File myFile); + String testBodyMultipartFormdataSingleBinary(@Param("my-file") @javax.annotation.Nullable File myFile); /** * Test single binary in multipart mime @@ -127,7 +127,7 @@ public interface BodyApi extends ApiClient.Api { "Content-Type: multipart/form-data", "Accept: text/plain", }) - ApiResponse testBodyMultipartFormdataSingleBinaryWithHttpInfo(@Param("my-file") File myFile); + ApiResponse testBodyMultipartFormdataSingleBinaryWithHttpInfo(@Param("my-file") @javax.annotation.Nullable File myFile); @@ -142,7 +142,7 @@ public interface BodyApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - Pet testEchoBodyAllOfPet(Pet pet); + Pet testEchoBodyAllOfPet(@javax.annotation.Nullable Pet pet); /** * Test body parameter(s) @@ -156,7 +156,7 @@ public interface BodyApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse testEchoBodyAllOfPetWithHttpInfo(Pet pet); + ApiResponse testEchoBodyAllOfPetWithHttpInfo(@javax.annotation.Nullable Pet pet); @@ -171,7 +171,7 @@ public interface BodyApi extends ApiClient.Api { "Content-Type: application/json", "Accept: text/plain", }) - String testEchoBodyFreeFormObjectResponseString(Object body); + String testEchoBodyFreeFormObjectResponseString(@javax.annotation.Nullable Object body); /** * Test free form object @@ -185,7 +185,7 @@ public interface BodyApi extends ApiClient.Api { "Content-Type: application/json", "Accept: text/plain", }) - ApiResponse testEchoBodyFreeFormObjectResponseStringWithHttpInfo(Object body); + ApiResponse testEchoBodyFreeFormObjectResponseStringWithHttpInfo(@javax.annotation.Nullable Object body); @@ -200,7 +200,7 @@ public interface BodyApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - Pet testEchoBodyPet(Pet pet); + Pet testEchoBodyPet(@javax.annotation.Nullable Pet pet); /** * Test body parameter(s) @@ -214,7 +214,7 @@ public interface BodyApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse testEchoBodyPetWithHttpInfo(Pet pet); + ApiResponse testEchoBodyPetWithHttpInfo(@javax.annotation.Nullable Pet pet); @@ -229,7 +229,7 @@ public interface BodyApi extends ApiClient.Api { "Content-Type: application/json", "Accept: text/plain", }) - String testEchoBodyPetResponseString(Pet pet); + String testEchoBodyPetResponseString(@javax.annotation.Nullable Pet pet); /** * Test empty response body @@ -243,7 +243,7 @@ public interface BodyApi extends ApiClient.Api { "Content-Type: application/json", "Accept: text/plain", }) - ApiResponse testEchoBodyPetResponseStringWithHttpInfo(Pet pet); + ApiResponse testEchoBodyPetResponseStringWithHttpInfo(@javax.annotation.Nullable Pet pet); @@ -258,7 +258,7 @@ public interface BodyApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - StringEnumRef testEchoBodyStringEnum(String body); + StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable String body); /** * Test string enum response body @@ -272,7 +272,7 @@ public interface BodyApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse testEchoBodyStringEnumWithHttpInfo(String body); + ApiResponse testEchoBodyStringEnumWithHttpInfo(@javax.annotation.Nullable String body); @@ -287,7 +287,7 @@ public interface BodyApi extends ApiClient.Api { "Content-Type: application/json", "Accept: text/plain", }) - String testEchoBodyTagResponseString(Tag tag); + String testEchoBodyTagResponseString(@javax.annotation.Nullable Tag tag); /** * Test empty json (request body) @@ -301,7 +301,7 @@ public interface BodyApi extends ApiClient.Api { "Content-Type: application/json", "Accept: text/plain", }) - ApiResponse testEchoBodyTagResponseStringWithHttpInfo(Tag tag); + ApiResponse testEchoBodyTagResponseStringWithHttpInfo(@javax.annotation.Nullable Tag tag); } diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/api/FormApi.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/api/FormApi.java index 1182eefcf55..157ddd24b61 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/api/FormApi.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/api/FormApi.java @@ -29,7 +29,7 @@ public interface FormApi extends ApiClient.Api { "Content-Type: application/x-www-form-urlencoded", "Accept: text/plain", }) - String testFormIntegerBooleanString(@Param("integer_form") Integer integerForm, @Param("boolean_form") Boolean booleanForm, @Param("string_form") String stringForm); + String testFormIntegerBooleanString(@Param("integer_form") @javax.annotation.Nullable Integer integerForm, @Param("boolean_form") @javax.annotation.Nullable Boolean booleanForm, @Param("string_form") @javax.annotation.Nullable String stringForm); /** * Test form parameter(s) @@ -45,7 +45,7 @@ public interface FormApi extends ApiClient.Api { "Content-Type: application/x-www-form-urlencoded", "Accept: text/plain", }) - ApiResponse testFormIntegerBooleanStringWithHttpInfo(@Param("integer_form") Integer integerForm, @Param("boolean_form") Boolean booleanForm, @Param("string_form") String stringForm); + ApiResponse testFormIntegerBooleanStringWithHttpInfo(@Param("integer_form") @javax.annotation.Nullable Integer integerForm, @Param("boolean_form") @javax.annotation.Nullable Boolean booleanForm, @Param("string_form") @javax.annotation.Nullable String stringForm); @@ -60,7 +60,7 @@ public interface FormApi extends ApiClient.Api { "Content-Type: multipart/form-data", "Accept: text/plain", }) - String testFormObjectMultipart(@Param("marker") TestFormObjectMultipartRequestMarker marker); + String testFormObjectMultipart(@Param("marker") @javax.annotation.Nonnull TestFormObjectMultipartRequestMarker marker); /** * Test form parameter(s) for multipart schema @@ -74,7 +74,7 @@ public interface FormApi extends ApiClient.Api { "Content-Type: multipart/form-data", "Accept: text/plain", }) - ApiResponse testFormObjectMultipartWithHttpInfo(@Param("marker") TestFormObjectMultipartRequestMarker marker); + ApiResponse testFormObjectMultipartWithHttpInfo(@Param("marker") @javax.annotation.Nonnull TestFormObjectMultipartRequestMarker marker); @@ -94,7 +94,7 @@ public interface FormApi extends ApiClient.Api { "Content-Type: application/x-www-form-urlencoded", "Accept: text/plain", }) - String testFormOneof(@Param("form1") String form1, @Param("form2") Integer form2, @Param("form3") String form3, @Param("form4") Boolean form4, @Param("id") Long id, @Param("name") String name); + String testFormOneof(@Param("form1") @javax.annotation.Nullable String form1, @Param("form2") @javax.annotation.Nullable Integer form2, @Param("form3") @javax.annotation.Nullable String form3, @Param("form4") @javax.annotation.Nullable Boolean form4, @Param("id") @javax.annotation.Nullable Long id, @Param("name") @javax.annotation.Nullable String name); /** * Test form parameter(s) for oneOf schema @@ -113,7 +113,7 @@ public interface FormApi extends ApiClient.Api { "Content-Type: application/x-www-form-urlencoded", "Accept: text/plain", }) - ApiResponse testFormOneofWithHttpInfo(@Param("form1") String form1, @Param("form2") Integer form2, @Param("form3") String form3, @Param("form4") Boolean form4, @Param("id") Long id, @Param("name") String name); + ApiResponse testFormOneofWithHttpInfo(@Param("form1") @javax.annotation.Nullable String form1, @Param("form2") @javax.annotation.Nullable Integer form2, @Param("form3") @javax.annotation.Nullable String form3, @Param("form4") @javax.annotation.Nullable Boolean form4, @Param("id") @javax.annotation.Nullable Long id, @Param("name") @javax.annotation.Nullable String name); } diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/api/HeaderApi.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/api/HeaderApi.java index e844fe56ca4..acaa9f9e426 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/api/HeaderApi.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/api/HeaderApi.java @@ -39,7 +39,7 @@ public interface HeaderApi extends ApiClient.Api { "enum_ref_string_header: {enumRefStringHeader}" }) - String testHeaderIntegerBooleanStringEnums(@Param("integerHeader") Integer integerHeader, @Param("booleanHeader") Boolean booleanHeader, @Param("stringHeader") String stringHeader, @Param("enumNonrefStringHeader") String enumNonrefStringHeader, @Param("enumRefStringHeader") StringEnumRef enumRefStringHeader); + String testHeaderIntegerBooleanStringEnums(@Param("integerHeader") @javax.annotation.Nullable Integer integerHeader, @Param("booleanHeader") @javax.annotation.Nullable Boolean booleanHeader, @Param("stringHeader") @javax.annotation.Nullable String stringHeader, @Param("enumNonrefStringHeader") @javax.annotation.Nullable String enumNonrefStringHeader, @Param("enumRefStringHeader") @javax.annotation.Nullable StringEnumRef enumRefStringHeader); /** * Test header parameter(s) @@ -65,7 +65,7 @@ public interface HeaderApi extends ApiClient.Api { "enum_ref_string_header: {enumRefStringHeader}" }) - ApiResponse testHeaderIntegerBooleanStringEnumsWithHttpInfo(@Param("integerHeader") Integer integerHeader, @Param("booleanHeader") Boolean booleanHeader, @Param("stringHeader") String stringHeader, @Param("enumNonrefStringHeader") String enumNonrefStringHeader, @Param("enumRefStringHeader") StringEnumRef enumRefStringHeader); + ApiResponse testHeaderIntegerBooleanStringEnumsWithHttpInfo(@Param("integerHeader") @javax.annotation.Nullable Integer integerHeader, @Param("booleanHeader") @javax.annotation.Nullable Boolean booleanHeader, @Param("stringHeader") @javax.annotation.Nullable String stringHeader, @Param("enumNonrefStringHeader") @javax.annotation.Nullable String enumNonrefStringHeader, @Param("enumRefStringHeader") @javax.annotation.Nullable StringEnumRef enumRefStringHeader); } diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/api/PathApi.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/api/PathApi.java index ae293d95f33..b4026f835db 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/api/PathApi.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/api/PathApi.java @@ -29,7 +29,7 @@ public interface PathApi extends ApiClient.Api { @Headers({ "Accept: text/plain", }) - String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(@Param("pathString") String pathString, @Param("pathInteger") Integer pathInteger, @Param("enumNonrefStringPath") String enumNonrefStringPath, @Param("enumRefStringPath") StringEnumRef enumRefStringPath); + String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(@Param("pathString") @javax.annotation.Nonnull String pathString, @Param("pathInteger") @javax.annotation.Nonnull Integer pathInteger, @Param("enumNonrefStringPath") @javax.annotation.Nonnull String enumNonrefStringPath, @Param("enumRefStringPath") @javax.annotation.Nonnull StringEnumRef enumRefStringPath); /** * Test path parameter(s) @@ -45,7 +45,7 @@ public interface PathApi extends ApiClient.Api { @Headers({ "Accept: text/plain", }) - ApiResponse testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(@Param("pathString") String pathString, @Param("pathInteger") Integer pathInteger, @Param("enumNonrefStringPath") String enumNonrefStringPath, @Param("enumRefStringPath") StringEnumRef enumRefStringPath); + ApiResponse testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(@Param("pathString") @javax.annotation.Nonnull String pathString, @Param("pathInteger") @javax.annotation.Nonnull Integer pathInteger, @Param("enumNonrefStringPath") @javax.annotation.Nonnull String enumNonrefStringPath, @Param("enumRefStringPath") @javax.annotation.Nonnull StringEnumRef enumRefStringPath); } diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/api/QueryApi.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/api/QueryApi.java index 83c9a137ae7..b7735c5dd1b 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/api/QueryApi.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/api/QueryApi.java @@ -33,7 +33,7 @@ public interface QueryApi extends ApiClient.Api { @Headers({ "Accept: text/plain", }) - String testEnumRefString(@Param("enumNonrefStringQuery") String enumNonrefStringQuery, @Param("enumRefStringQuery") StringEnumRef enumRefStringQuery); + String testEnumRefString(@Param("enumNonrefStringQuery") @javax.annotation.Nullable String enumNonrefStringQuery, @Param("enumRefStringQuery") @javax.annotation.Nullable StringEnumRef enumRefStringQuery); /** * Test query parameter(s) @@ -47,7 +47,7 @@ public interface QueryApi extends ApiClient.Api { @Headers({ "Accept: text/plain", }) - ApiResponse testEnumRefStringWithHttpInfo(@Param("enumNonrefStringQuery") String enumNonrefStringQuery, @Param("enumRefStringQuery") StringEnumRef enumRefStringQuery); + ApiResponse testEnumRefStringWithHttpInfo(@Param("enumNonrefStringQuery") @javax.annotation.Nullable String enumNonrefStringQuery, @Param("enumRefStringQuery") @javax.annotation.Nullable StringEnumRef enumRefStringQuery); /** @@ -97,11 +97,11 @@ public interface QueryApi extends ApiClient.Api { * testEnumRefString method in a fluent style. */ public static class TestEnumRefStringQueryParams extends HashMap { - public TestEnumRefStringQueryParams enumNonrefStringQuery(final String value) { + public TestEnumRefStringQueryParams enumNonrefStringQuery(@javax.annotation.Nullable final String value) { put("enum_nonref_string_query", EncodingUtils.encode(value)); return this; } - public TestEnumRefStringQueryParams enumRefStringQuery(final StringEnumRef value) { + public TestEnumRefStringQueryParams enumRefStringQuery(@javax.annotation.Nullable final StringEnumRef value) { put("enum_ref_string_query", EncodingUtils.encode(value)); return this; } @@ -119,7 +119,7 @@ public interface QueryApi extends ApiClient.Api { @Headers({ "Accept: text/plain", }) - String testQueryDatetimeDateString(@Param("datetimeQuery") OffsetDateTime datetimeQuery, @Param("dateQuery") LocalDate dateQuery, @Param("stringQuery") String stringQuery); + String testQueryDatetimeDateString(@Param("datetimeQuery") @javax.annotation.Nullable OffsetDateTime datetimeQuery, @Param("dateQuery") @javax.annotation.Nullable LocalDate dateQuery, @Param("stringQuery") @javax.annotation.Nullable String stringQuery); /** * Test query parameter(s) @@ -134,7 +134,7 @@ public interface QueryApi extends ApiClient.Api { @Headers({ "Accept: text/plain", }) - ApiResponse testQueryDatetimeDateStringWithHttpInfo(@Param("datetimeQuery") OffsetDateTime datetimeQuery, @Param("dateQuery") LocalDate dateQuery, @Param("stringQuery") String stringQuery); + ApiResponse testQueryDatetimeDateStringWithHttpInfo(@Param("datetimeQuery") @javax.annotation.Nullable OffsetDateTime datetimeQuery, @Param("dateQuery") @javax.annotation.Nullable LocalDate dateQuery, @Param("stringQuery") @javax.annotation.Nullable String stringQuery); /** @@ -186,15 +186,15 @@ public interface QueryApi extends ApiClient.Api { * testQueryDatetimeDateString method in a fluent style. */ public static class TestQueryDatetimeDateStringQueryParams extends HashMap { - public TestQueryDatetimeDateStringQueryParams datetimeQuery(final OffsetDateTime value) { + public TestQueryDatetimeDateStringQueryParams datetimeQuery(@javax.annotation.Nullable final OffsetDateTime value) { put("datetime_query", EncodingUtils.encode(value)); return this; } - public TestQueryDatetimeDateStringQueryParams dateQuery(final LocalDate value) { + public TestQueryDatetimeDateStringQueryParams dateQuery(@javax.annotation.Nullable final LocalDate value) { put("date_query", EncodingUtils.encode(value)); return this; } - public TestQueryDatetimeDateStringQueryParams stringQuery(final String value) { + public TestQueryDatetimeDateStringQueryParams stringQuery(@javax.annotation.Nullable final String value) { put("string_query", EncodingUtils.encode(value)); return this; } @@ -212,7 +212,7 @@ public interface QueryApi extends ApiClient.Api { @Headers({ "Accept: text/plain", }) - String testQueryIntegerBooleanString(@Param("integerQuery") Integer integerQuery, @Param("booleanQuery") Boolean booleanQuery, @Param("stringQuery") String stringQuery); + String testQueryIntegerBooleanString(@Param("integerQuery") @javax.annotation.Nullable Integer integerQuery, @Param("booleanQuery") @javax.annotation.Nullable Boolean booleanQuery, @Param("stringQuery") @javax.annotation.Nullable String stringQuery); /** * Test query parameter(s) @@ -227,7 +227,7 @@ public interface QueryApi extends ApiClient.Api { @Headers({ "Accept: text/plain", }) - ApiResponse testQueryIntegerBooleanStringWithHttpInfo(@Param("integerQuery") Integer integerQuery, @Param("booleanQuery") Boolean booleanQuery, @Param("stringQuery") String stringQuery); + ApiResponse testQueryIntegerBooleanStringWithHttpInfo(@Param("integerQuery") @javax.annotation.Nullable Integer integerQuery, @Param("booleanQuery") @javax.annotation.Nullable Boolean booleanQuery, @Param("stringQuery") @javax.annotation.Nullable String stringQuery); /** @@ -279,15 +279,15 @@ public interface QueryApi extends ApiClient.Api { * testQueryIntegerBooleanString method in a fluent style. */ public static class TestQueryIntegerBooleanStringQueryParams extends HashMap { - public TestQueryIntegerBooleanStringQueryParams integerQuery(final Integer value) { + public TestQueryIntegerBooleanStringQueryParams integerQuery(@javax.annotation.Nullable final Integer value) { put("integer_query", EncodingUtils.encode(value)); return this; } - public TestQueryIntegerBooleanStringQueryParams booleanQuery(final Boolean value) { + public TestQueryIntegerBooleanStringQueryParams booleanQuery(@javax.annotation.Nullable final Boolean value) { put("boolean_query", EncodingUtils.encode(value)); return this; } - public TestQueryIntegerBooleanStringQueryParams stringQuery(final String value) { + public TestQueryIntegerBooleanStringQueryParams stringQuery(@javax.annotation.Nullable final String value) { put("string_query", EncodingUtils.encode(value)); return this; } @@ -303,7 +303,7 @@ public interface QueryApi extends ApiClient.Api { @Headers({ "Accept: text/plain", }) - String testQueryStyleDeepObjectExplodeTrueObject(@Param("queryObject") Pet queryObject); + String testQueryStyleDeepObjectExplodeTrueObject(@Param("queryObject") @javax.annotation.Nullable Pet queryObject); /** * Test query parameter(s) @@ -316,7 +316,7 @@ public interface QueryApi extends ApiClient.Api { @Headers({ "Accept: text/plain", }) - ApiResponse testQueryStyleDeepObjectExplodeTrueObjectWithHttpInfo(@Param("queryObject") Pet queryObject); + ApiResponse testQueryStyleDeepObjectExplodeTrueObjectWithHttpInfo(@Param("queryObject") @javax.annotation.Nullable Pet queryObject); /** @@ -364,7 +364,7 @@ public interface QueryApi extends ApiClient.Api { * testQueryStyleDeepObjectExplodeTrueObject method in a fluent style. */ public static class TestQueryStyleDeepObjectExplodeTrueObjectQueryParams extends HashMap { - public TestQueryStyleDeepObjectExplodeTrueObjectQueryParams queryObject(final Pet value) { + public TestQueryStyleDeepObjectExplodeTrueObjectQueryParams queryObject(@javax.annotation.Nullable final Pet value) { put("query_object", EncodingUtils.encode(value)); return this; } @@ -380,7 +380,7 @@ public interface QueryApi extends ApiClient.Api { @Headers({ "Accept: text/plain", }) - String testQueryStyleDeepObjectExplodeTrueObjectAllOf(@Param("queryObject") TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject); + String testQueryStyleDeepObjectExplodeTrueObjectAllOf(@Param("queryObject") @javax.annotation.Nullable TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject); /** * Test query parameter(s) @@ -393,7 +393,7 @@ public interface QueryApi extends ApiClient.Api { @Headers({ "Accept: text/plain", }) - ApiResponse testQueryStyleDeepObjectExplodeTrueObjectAllOfWithHttpInfo(@Param("queryObject") TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject); + ApiResponse testQueryStyleDeepObjectExplodeTrueObjectAllOfWithHttpInfo(@Param("queryObject") @javax.annotation.Nullable TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject); /** @@ -441,7 +441,7 @@ public interface QueryApi extends ApiClient.Api { * testQueryStyleDeepObjectExplodeTrueObjectAllOf method in a fluent style. */ public static class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryParams extends HashMap { - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryParams queryObject(final TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter value) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryParams queryObject(@javax.annotation.Nullable final TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter value) { put("query_object", EncodingUtils.encode(value)); return this; } @@ -457,7 +457,7 @@ public interface QueryApi extends ApiClient.Api { @Headers({ "Accept: text/plain", }) - String testQueryStyleFormExplodeFalseArrayInteger(@Param("queryObject") List queryObject); + String testQueryStyleFormExplodeFalseArrayInteger(@Param("queryObject") @javax.annotation.Nullable List queryObject); /** * Test query parameter(s) @@ -470,7 +470,7 @@ public interface QueryApi extends ApiClient.Api { @Headers({ "Accept: text/plain", }) - ApiResponse testQueryStyleFormExplodeFalseArrayIntegerWithHttpInfo(@Param("queryObject") List queryObject); + ApiResponse testQueryStyleFormExplodeFalseArrayIntegerWithHttpInfo(@Param("queryObject") @javax.annotation.Nullable List queryObject); /** @@ -518,7 +518,7 @@ public interface QueryApi extends ApiClient.Api { * testQueryStyleFormExplodeFalseArrayInteger method in a fluent style. */ public static class TestQueryStyleFormExplodeFalseArrayIntegerQueryParams extends HashMap { - public TestQueryStyleFormExplodeFalseArrayIntegerQueryParams queryObject(final List value) { + public TestQueryStyleFormExplodeFalseArrayIntegerQueryParams queryObject(@javax.annotation.Nullable final List value) { put("query_object", EncodingUtils.encodeCollection(value, "csv")); return this; } @@ -534,7 +534,7 @@ public interface QueryApi extends ApiClient.Api { @Headers({ "Accept: text/plain", }) - String testQueryStyleFormExplodeFalseArrayString(@Param("queryObject") List queryObject); + String testQueryStyleFormExplodeFalseArrayString(@Param("queryObject") @javax.annotation.Nullable List queryObject); /** * Test query parameter(s) @@ -547,7 +547,7 @@ public interface QueryApi extends ApiClient.Api { @Headers({ "Accept: text/plain", }) - ApiResponse testQueryStyleFormExplodeFalseArrayStringWithHttpInfo(@Param("queryObject") List queryObject); + ApiResponse testQueryStyleFormExplodeFalseArrayStringWithHttpInfo(@Param("queryObject") @javax.annotation.Nullable List queryObject); /** @@ -595,7 +595,7 @@ public interface QueryApi extends ApiClient.Api { * testQueryStyleFormExplodeFalseArrayString method in a fluent style. */ public static class TestQueryStyleFormExplodeFalseArrayStringQueryParams extends HashMap { - public TestQueryStyleFormExplodeFalseArrayStringQueryParams queryObject(final List value) { + public TestQueryStyleFormExplodeFalseArrayStringQueryParams queryObject(@javax.annotation.Nullable final List value) { put("query_object", EncodingUtils.encodeCollection(value, "csv")); return this; } @@ -611,7 +611,7 @@ public interface QueryApi extends ApiClient.Api { @Headers({ "Accept: text/plain", }) - String testQueryStyleFormExplodeTrueArrayString(@Param("queryObject") TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject); + String testQueryStyleFormExplodeTrueArrayString(@Param("queryObject") @javax.annotation.Nullable TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject); /** * Test query parameter(s) @@ -624,7 +624,7 @@ public interface QueryApi extends ApiClient.Api { @Headers({ "Accept: text/plain", }) - ApiResponse testQueryStyleFormExplodeTrueArrayStringWithHttpInfo(@Param("queryObject") TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject); + ApiResponse testQueryStyleFormExplodeTrueArrayStringWithHttpInfo(@Param("queryObject") @javax.annotation.Nullable TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject); /** @@ -672,7 +672,7 @@ public interface QueryApi extends ApiClient.Api { * testQueryStyleFormExplodeTrueArrayString method in a fluent style. */ public static class TestQueryStyleFormExplodeTrueArrayStringQueryParams extends HashMap { - public TestQueryStyleFormExplodeTrueArrayStringQueryParams queryObject(final TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter value) { + public TestQueryStyleFormExplodeTrueArrayStringQueryParams queryObject(@javax.annotation.Nullable final TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter value) { put("query_object", EncodingUtils.encode(value)); return this; } @@ -688,7 +688,7 @@ public interface QueryApi extends ApiClient.Api { @Headers({ "Accept: text/plain", }) - String testQueryStyleFormExplodeTrueObject(@Param("queryObject") Pet queryObject); + String testQueryStyleFormExplodeTrueObject(@Param("queryObject") @javax.annotation.Nullable Pet queryObject); /** * Test query parameter(s) @@ -701,7 +701,7 @@ public interface QueryApi extends ApiClient.Api { @Headers({ "Accept: text/plain", }) - ApiResponse testQueryStyleFormExplodeTrueObjectWithHttpInfo(@Param("queryObject") Pet queryObject); + ApiResponse testQueryStyleFormExplodeTrueObjectWithHttpInfo(@Param("queryObject") @javax.annotation.Nullable Pet queryObject); /** @@ -749,7 +749,7 @@ public interface QueryApi extends ApiClient.Api { * testQueryStyleFormExplodeTrueObject method in a fluent style. */ public static class TestQueryStyleFormExplodeTrueObjectQueryParams extends HashMap { - public TestQueryStyleFormExplodeTrueObjectQueryParams queryObject(final Pet value) { + public TestQueryStyleFormExplodeTrueObjectQueryParams queryObject(@javax.annotation.Nullable final Pet value) { put("query_object", EncodingUtils.encode(value)); return this; } @@ -765,7 +765,7 @@ public interface QueryApi extends ApiClient.Api { @Headers({ "Accept: text/plain", }) - String testQueryStyleFormExplodeTrueObjectAllOf(@Param("queryObject") DataQuery queryObject); + String testQueryStyleFormExplodeTrueObjectAllOf(@Param("queryObject") @javax.annotation.Nullable DataQuery queryObject); /** * Test query parameter(s) @@ -778,7 +778,7 @@ public interface QueryApi extends ApiClient.Api { @Headers({ "Accept: text/plain", }) - ApiResponse testQueryStyleFormExplodeTrueObjectAllOfWithHttpInfo(@Param("queryObject") DataQuery queryObject); + ApiResponse testQueryStyleFormExplodeTrueObjectAllOfWithHttpInfo(@Param("queryObject") @javax.annotation.Nullable DataQuery queryObject); /** @@ -826,7 +826,7 @@ public interface QueryApi extends ApiClient.Api { * testQueryStyleFormExplodeTrueObjectAllOf method in a fluent style. */ public static class TestQueryStyleFormExplodeTrueObjectAllOfQueryParams extends HashMap { - public TestQueryStyleFormExplodeTrueObjectAllOfQueryParams queryObject(final DataQuery value) { + public TestQueryStyleFormExplodeTrueObjectAllOfQueryParams queryObject(@javax.annotation.Nullable final DataQuery value) { put("query_object", EncodingUtils.encode(value)); return this; } diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/BodyApi.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/BodyApi.java index 499f360c739..aed75ebf045 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/BodyApi.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/BodyApi.java @@ -175,7 +175,7 @@ public class BodyApi { * @return String * @throws ApiException if fails to make API call */ - public String testBodyApplicationOctetstreamBinary(File body) throws ApiException { + public String testBodyApplicationOctetstreamBinary(@javax.annotation.Nullable File body) throws ApiException { ApiResponse localVarResponse = testBodyApplicationOctetstreamBinaryWithHttpInfo(body); return localVarResponse.getData(); } @@ -187,7 +187,7 @@ public class BodyApi { * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse testBodyApplicationOctetstreamBinaryWithHttpInfo(File body) throws ApiException { + public ApiResponse testBodyApplicationOctetstreamBinaryWithHttpInfo(@javax.annotation.Nullable File body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testBodyApplicationOctetstreamBinaryRequestBuilder(body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -224,7 +224,7 @@ public class BodyApi { } } - private HttpRequest.Builder testBodyApplicationOctetstreamBinaryRequestBuilder(File body) throws ApiException { + private HttpRequest.Builder testBodyApplicationOctetstreamBinaryRequestBuilder(@javax.annotation.Nullable File body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -257,7 +257,7 @@ public class BodyApi { * @return String * @throws ApiException if fails to make API call */ - public String testBodyMultipartFormdataArrayOfBinary(List files) throws ApiException { + public String testBodyMultipartFormdataArrayOfBinary(@javax.annotation.Nonnull List files) throws ApiException { ApiResponse localVarResponse = testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(files); return localVarResponse.getData(); } @@ -269,7 +269,7 @@ public class BodyApi { * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(List files) throws ApiException { + public ApiResponse testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(@javax.annotation.Nonnull List files) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testBodyMultipartFormdataArrayOfBinaryRequestBuilder(files); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -306,7 +306,7 @@ public class BodyApi { } } - private HttpRequest.Builder testBodyMultipartFormdataArrayOfBinaryRequestBuilder(List files) throws ApiException { + private HttpRequest.Builder testBodyMultipartFormdataArrayOfBinaryRequestBuilder(@javax.annotation.Nonnull List files) throws ApiException { // verify the required parameter 'files' is set if (files == null) { throw new ApiException(400, "Missing the required parameter 'files' when calling testBodyMultipartFormdataArrayOfBinary"); @@ -372,7 +372,7 @@ public class BodyApi { * @return String * @throws ApiException if fails to make API call */ - public String testBodyMultipartFormdataSingleBinary(File myFile) throws ApiException { + public String testBodyMultipartFormdataSingleBinary(@javax.annotation.Nullable File myFile) throws ApiException { ApiResponse localVarResponse = testBodyMultipartFormdataSingleBinaryWithHttpInfo(myFile); return localVarResponse.getData(); } @@ -384,7 +384,7 @@ public class BodyApi { * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse testBodyMultipartFormdataSingleBinaryWithHttpInfo(File myFile) throws ApiException { + public ApiResponse testBodyMultipartFormdataSingleBinaryWithHttpInfo(@javax.annotation.Nullable File myFile) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testBodyMultipartFormdataSingleBinaryRequestBuilder(myFile); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -421,7 +421,7 @@ public class BodyApi { } } - private HttpRequest.Builder testBodyMultipartFormdataSingleBinaryRequestBuilder(File myFile) throws ApiException { + private HttpRequest.Builder testBodyMultipartFormdataSingleBinaryRequestBuilder(@javax.annotation.Nullable File myFile) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -481,7 +481,7 @@ public class BodyApi { * @return Pet * @throws ApiException if fails to make API call */ - public Pet testEchoBodyAllOfPet(Pet pet) throws ApiException { + public Pet testEchoBodyAllOfPet(@javax.annotation.Nullable Pet pet) throws ApiException { ApiResponse localVarResponse = testEchoBodyAllOfPetWithHttpInfo(pet); return localVarResponse.getData(); } @@ -493,7 +493,7 @@ public class BodyApi { * @return ApiResponse<Pet> * @throws ApiException if fails to make API call */ - public ApiResponse testEchoBodyAllOfPetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse testEchoBodyAllOfPetWithHttpInfo(@javax.annotation.Nullable Pet pet) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testEchoBodyAllOfPetRequestBuilder(pet); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -533,7 +533,7 @@ public class BodyApi { } } - private HttpRequest.Builder testEchoBodyAllOfPetRequestBuilder(Pet pet) throws ApiException { + private HttpRequest.Builder testEchoBodyAllOfPetRequestBuilder(@javax.annotation.Nullable Pet pet) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -566,7 +566,7 @@ public class BodyApi { * @return String * @throws ApiException if fails to make API call */ - public String testEchoBodyFreeFormObjectResponseString(Object body) throws ApiException { + public String testEchoBodyFreeFormObjectResponseString(@javax.annotation.Nullable Object body) throws ApiException { ApiResponse localVarResponse = testEchoBodyFreeFormObjectResponseStringWithHttpInfo(body); return localVarResponse.getData(); } @@ -578,7 +578,7 @@ public class BodyApi { * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse testEchoBodyFreeFormObjectResponseStringWithHttpInfo(Object body) throws ApiException { + public ApiResponse testEchoBodyFreeFormObjectResponseStringWithHttpInfo(@javax.annotation.Nullable Object body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testEchoBodyFreeFormObjectResponseStringRequestBuilder(body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -615,7 +615,7 @@ public class BodyApi { } } - private HttpRequest.Builder testEchoBodyFreeFormObjectResponseStringRequestBuilder(Object body) throws ApiException { + private HttpRequest.Builder testEchoBodyFreeFormObjectResponseStringRequestBuilder(@javax.annotation.Nullable Object body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -648,7 +648,7 @@ public class BodyApi { * @return Pet * @throws ApiException if fails to make API call */ - public Pet testEchoBodyPet(Pet pet) throws ApiException { + public Pet testEchoBodyPet(@javax.annotation.Nullable Pet pet) throws ApiException { ApiResponse localVarResponse = testEchoBodyPetWithHttpInfo(pet); return localVarResponse.getData(); } @@ -660,7 +660,7 @@ public class BodyApi { * @return ApiResponse<Pet> * @throws ApiException if fails to make API call */ - public ApiResponse testEchoBodyPetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse testEchoBodyPetWithHttpInfo(@javax.annotation.Nullable Pet pet) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testEchoBodyPetRequestBuilder(pet); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -700,7 +700,7 @@ public class BodyApi { } } - private HttpRequest.Builder testEchoBodyPetRequestBuilder(Pet pet) throws ApiException { + private HttpRequest.Builder testEchoBodyPetRequestBuilder(@javax.annotation.Nullable Pet pet) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -733,7 +733,7 @@ public class BodyApi { * @return String * @throws ApiException if fails to make API call */ - public String testEchoBodyPetResponseString(Pet pet) throws ApiException { + public String testEchoBodyPetResponseString(@javax.annotation.Nullable Pet pet) throws ApiException { ApiResponse localVarResponse = testEchoBodyPetResponseStringWithHttpInfo(pet); return localVarResponse.getData(); } @@ -745,7 +745,7 @@ public class BodyApi { * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse testEchoBodyPetResponseStringWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse testEchoBodyPetResponseStringWithHttpInfo(@javax.annotation.Nullable Pet pet) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testEchoBodyPetResponseStringRequestBuilder(pet); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -782,7 +782,7 @@ public class BodyApi { } } - private HttpRequest.Builder testEchoBodyPetResponseStringRequestBuilder(Pet pet) throws ApiException { + private HttpRequest.Builder testEchoBodyPetResponseStringRequestBuilder(@javax.annotation.Nullable Pet pet) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -815,7 +815,7 @@ public class BodyApi { * @return StringEnumRef * @throws ApiException if fails to make API call */ - public StringEnumRef testEchoBodyStringEnum(String body) throws ApiException { + public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable String body) throws ApiException { ApiResponse localVarResponse = testEchoBodyStringEnumWithHttpInfo(body); return localVarResponse.getData(); } @@ -827,7 +827,7 @@ public class BodyApi { * @return ApiResponse<StringEnumRef> * @throws ApiException if fails to make API call */ - public ApiResponse testEchoBodyStringEnumWithHttpInfo(String body) throws ApiException { + public ApiResponse testEchoBodyStringEnumWithHttpInfo(@javax.annotation.Nullable String body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testEchoBodyStringEnumRequestBuilder(body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -867,7 +867,7 @@ public class BodyApi { } } - private HttpRequest.Builder testEchoBodyStringEnumRequestBuilder(String body) throws ApiException { + private HttpRequest.Builder testEchoBodyStringEnumRequestBuilder(@javax.annotation.Nullable String body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -900,7 +900,7 @@ public class BodyApi { * @return String * @throws ApiException if fails to make API call */ - public String testEchoBodyTagResponseString(Tag tag) throws ApiException { + public String testEchoBodyTagResponseString(@javax.annotation.Nullable Tag tag) throws ApiException { ApiResponse localVarResponse = testEchoBodyTagResponseStringWithHttpInfo(tag); return localVarResponse.getData(); } @@ -912,7 +912,7 @@ public class BodyApi { * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse testEchoBodyTagResponseStringWithHttpInfo(Tag tag) throws ApiException { + public ApiResponse testEchoBodyTagResponseStringWithHttpInfo(@javax.annotation.Nullable Tag tag) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testEchoBodyTagResponseStringRequestBuilder(tag); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -949,7 +949,7 @@ public class BodyApi { } } - private HttpRequest.Builder testEchoBodyTagResponseStringRequestBuilder(Tag tag) throws ApiException { + private HttpRequest.Builder testEchoBodyTagResponseStringRequestBuilder(@javax.annotation.Nullable Tag tag) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/FormApi.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/FormApi.java index 4b8ec4c0b4c..84543791725 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/FormApi.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/FormApi.java @@ -97,7 +97,7 @@ public class FormApi { * @return String * @throws ApiException if fails to make API call */ - public String testFormIntegerBooleanString(Integer integerForm, Boolean booleanForm, String stringForm) throws ApiException { + public String testFormIntegerBooleanString(@javax.annotation.Nullable Integer integerForm, @javax.annotation.Nullable Boolean booleanForm, @javax.annotation.Nullable String stringForm) throws ApiException { ApiResponse localVarResponse = testFormIntegerBooleanStringWithHttpInfo(integerForm, booleanForm, stringForm); return localVarResponse.getData(); } @@ -111,7 +111,7 @@ public class FormApi { * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse testFormIntegerBooleanStringWithHttpInfo(Integer integerForm, Boolean booleanForm, String stringForm) throws ApiException { + public ApiResponse testFormIntegerBooleanStringWithHttpInfo(@javax.annotation.Nullable Integer integerForm, @javax.annotation.Nullable Boolean booleanForm, @javax.annotation.Nullable String stringForm) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testFormIntegerBooleanStringRequestBuilder(integerForm, booleanForm, stringForm); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -148,7 +148,7 @@ public class FormApi { } } - private HttpRequest.Builder testFormIntegerBooleanStringRequestBuilder(Integer integerForm, Boolean booleanForm, String stringForm) throws ApiException { + private HttpRequest.Builder testFormIntegerBooleanStringRequestBuilder(@javax.annotation.Nullable Integer integerForm, @javax.annotation.Nullable Boolean booleanForm, @javax.annotation.Nullable String stringForm) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -195,7 +195,7 @@ public class FormApi { * @return String * @throws ApiException if fails to make API call */ - public String testFormObjectMultipart(TestFormObjectMultipartRequestMarker marker) throws ApiException { + public String testFormObjectMultipart(@javax.annotation.Nonnull TestFormObjectMultipartRequestMarker marker) throws ApiException { ApiResponse localVarResponse = testFormObjectMultipartWithHttpInfo(marker); return localVarResponse.getData(); } @@ -207,7 +207,7 @@ public class FormApi { * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse testFormObjectMultipartWithHttpInfo(TestFormObjectMultipartRequestMarker marker) throws ApiException { + public ApiResponse testFormObjectMultipartWithHttpInfo(@javax.annotation.Nonnull TestFormObjectMultipartRequestMarker marker) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testFormObjectMultipartRequestBuilder(marker); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -244,7 +244,7 @@ public class FormApi { } } - private HttpRequest.Builder testFormObjectMultipartRequestBuilder(TestFormObjectMultipartRequestMarker marker) throws ApiException { + private HttpRequest.Builder testFormObjectMultipartRequestBuilder(@javax.annotation.Nonnull TestFormObjectMultipartRequestMarker marker) throws ApiException { // verify the required parameter 'marker' is set if (marker == null) { throw new ApiException(400, "Missing the required parameter 'marker' when calling testFormObjectMultipart"); @@ -312,7 +312,7 @@ public class FormApi { * @return String * @throws ApiException if fails to make API call */ - public String testFormOneof(String form1, Integer form2, String form3, Boolean form4, Long id, String name) throws ApiException { + 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 ApiException { ApiResponse localVarResponse = testFormOneofWithHttpInfo(form1, form2, form3, form4, id, name); return localVarResponse.getData(); } @@ -329,7 +329,7 @@ public class FormApi { * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse testFormOneofWithHttpInfo(String form1, Integer form2, String form3, Boolean form4, Long id, String name) throws ApiException { + public ApiResponse 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 ApiException { HttpRequest.Builder localVarRequestBuilder = testFormOneofRequestBuilder(form1, form2, form3, form4, id, name); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -366,7 +366,7 @@ public class FormApi { } } - private HttpRequest.Builder testFormOneofRequestBuilder(String form1, Integer form2, String form3, Boolean form4, Long id, String name) throws ApiException { + private HttpRequest.Builder testFormOneofRequestBuilder(@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 ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/HeaderApi.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/HeaderApi.java index 80366d453c0..407d5170055 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/HeaderApi.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/HeaderApi.java @@ -99,7 +99,7 @@ public class HeaderApi { * @return String * @throws ApiException if fails to make API call */ - public String testHeaderIntegerBooleanStringEnums(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader) throws ApiException { + 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 ApiException { ApiResponse localVarResponse = testHeaderIntegerBooleanStringEnumsWithHttpInfo(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader); return localVarResponse.getData(); } @@ -115,7 +115,7 @@ public class HeaderApi { * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse testHeaderIntegerBooleanStringEnumsWithHttpInfo(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader) throws ApiException { + public ApiResponse 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 ApiException { HttpRequest.Builder localVarRequestBuilder = testHeaderIntegerBooleanStringEnumsRequestBuilder(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -152,7 +152,7 @@ public class HeaderApi { } } - private HttpRequest.Builder testHeaderIntegerBooleanStringEnumsRequestBuilder(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader) throws ApiException { + private HttpRequest.Builder testHeaderIntegerBooleanStringEnumsRequestBuilder(@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 ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/PathApi.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/PathApi.java index 39a8c2227a6..b9eea8eca3f 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/PathApi.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/PathApi.java @@ -98,7 +98,7 @@ public class PathApi { * @return String * @throws ApiException if fails to make API call */ - public String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath) throws ApiException { + public String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(@javax.annotation.Nonnull String pathString, @javax.annotation.Nonnull Integer pathInteger, @javax.annotation.Nonnull String enumNonrefStringPath, @javax.annotation.Nonnull StringEnumRef enumRefStringPath) throws ApiException { ApiResponse localVarResponse = testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath); return localVarResponse.getData(); } @@ -113,7 +113,7 @@ public class PathApi { * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath) throws ApiException { + public ApiResponse testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(@javax.annotation.Nonnull String pathString, @javax.annotation.Nonnull Integer pathInteger, @javax.annotation.Nonnull String enumNonrefStringPath, @javax.annotation.Nonnull StringEnumRef enumRefStringPath) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathRequestBuilder(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -150,7 +150,7 @@ public class PathApi { } } - private HttpRequest.Builder testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathRequestBuilder(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath) throws ApiException { + private HttpRequest.Builder testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathRequestBuilder(@javax.annotation.Nonnull String pathString, @javax.annotation.Nonnull Integer pathInteger, @javax.annotation.Nonnull String enumNonrefStringPath, @javax.annotation.Nonnull StringEnumRef enumRefStringPath) throws ApiException { // verify the required parameter 'pathString' is set if (pathString == null) { throw new ApiException(400, "Missing the required parameter 'pathString' when calling testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath"); diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/QueryApi.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/QueryApi.java index 4cedda232a7..8088b5912eb 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/QueryApi.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/QueryApi.java @@ -102,7 +102,7 @@ public class QueryApi { * @return String * @throws ApiException if fails to make API call */ - public String testEnumRefString(String enumNonrefStringQuery, StringEnumRef enumRefStringQuery) throws ApiException { + public String testEnumRefString(@javax.annotation.Nullable String enumNonrefStringQuery, @javax.annotation.Nullable StringEnumRef enumRefStringQuery) throws ApiException { ApiResponse localVarResponse = testEnumRefStringWithHttpInfo(enumNonrefStringQuery, enumRefStringQuery); return localVarResponse.getData(); } @@ -115,7 +115,7 @@ public class QueryApi { * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse testEnumRefStringWithHttpInfo(String enumNonrefStringQuery, StringEnumRef enumRefStringQuery) throws ApiException { + public ApiResponse testEnumRefStringWithHttpInfo(@javax.annotation.Nullable String enumNonrefStringQuery, @javax.annotation.Nullable StringEnumRef enumRefStringQuery) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testEnumRefStringRequestBuilder(enumNonrefStringQuery, enumRefStringQuery); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -152,7 +152,7 @@ public class QueryApi { } } - private HttpRequest.Builder testEnumRefStringRequestBuilder(String enumNonrefStringQuery, StringEnumRef enumRefStringQuery) throws ApiException { + private HttpRequest.Builder testEnumRefStringRequestBuilder(@javax.annotation.Nullable String enumNonrefStringQuery, @javax.annotation.Nullable StringEnumRef enumRefStringQuery) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -198,7 +198,7 @@ public class QueryApi { * @return String * @throws ApiException if fails to make API call */ - public String testQueryDatetimeDateString(Instant datetimeQuery, LocalDate dateQuery, String stringQuery) throws ApiException { + public String testQueryDatetimeDateString(@javax.annotation.Nullable Instant datetimeQuery, @javax.annotation.Nullable LocalDate dateQuery, @javax.annotation.Nullable String stringQuery) throws ApiException { ApiResponse localVarResponse = testQueryDatetimeDateStringWithHttpInfo(datetimeQuery, dateQuery, stringQuery); return localVarResponse.getData(); } @@ -212,7 +212,7 @@ public class QueryApi { * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse testQueryDatetimeDateStringWithHttpInfo(Instant datetimeQuery, LocalDate dateQuery, String stringQuery) throws ApiException { + public ApiResponse testQueryDatetimeDateStringWithHttpInfo(@javax.annotation.Nullable Instant datetimeQuery, @javax.annotation.Nullable LocalDate dateQuery, @javax.annotation.Nullable String stringQuery) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testQueryDatetimeDateStringRequestBuilder(datetimeQuery, dateQuery, stringQuery); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -249,7 +249,7 @@ public class QueryApi { } } - private HttpRequest.Builder testQueryDatetimeDateStringRequestBuilder(Instant datetimeQuery, LocalDate dateQuery, String stringQuery) throws ApiException { + private HttpRequest.Builder testQueryDatetimeDateStringRequestBuilder(@javax.annotation.Nullable Instant datetimeQuery, @javax.annotation.Nullable LocalDate dateQuery, @javax.annotation.Nullable String stringQuery) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -297,7 +297,7 @@ public class QueryApi { * @return String * @throws ApiException if fails to make API call */ - public String testQueryIntegerBooleanString(Integer integerQuery, Boolean booleanQuery, String stringQuery) throws ApiException { + public String testQueryIntegerBooleanString(@javax.annotation.Nullable Integer integerQuery, @javax.annotation.Nullable Boolean booleanQuery, @javax.annotation.Nullable String stringQuery) throws ApiException { ApiResponse localVarResponse = testQueryIntegerBooleanStringWithHttpInfo(integerQuery, booleanQuery, stringQuery); return localVarResponse.getData(); } @@ -311,7 +311,7 @@ public class QueryApi { * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse testQueryIntegerBooleanStringWithHttpInfo(Integer integerQuery, Boolean booleanQuery, String stringQuery) throws ApiException { + public ApiResponse testQueryIntegerBooleanStringWithHttpInfo(@javax.annotation.Nullable Integer integerQuery, @javax.annotation.Nullable Boolean booleanQuery, @javax.annotation.Nullable String stringQuery) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testQueryIntegerBooleanStringRequestBuilder(integerQuery, booleanQuery, stringQuery); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -348,7 +348,7 @@ public class QueryApi { } } - private HttpRequest.Builder testQueryIntegerBooleanStringRequestBuilder(Integer integerQuery, Boolean booleanQuery, String stringQuery) throws ApiException { + private HttpRequest.Builder testQueryIntegerBooleanStringRequestBuilder(@javax.annotation.Nullable Integer integerQuery, @javax.annotation.Nullable Boolean booleanQuery, @javax.annotation.Nullable String stringQuery) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -394,7 +394,7 @@ public class QueryApi { * @return String * @throws ApiException if fails to make API call */ - public String testQueryStyleDeepObjectExplodeTrueObject(Pet queryObject) throws ApiException { + public String testQueryStyleDeepObjectExplodeTrueObject(@javax.annotation.Nullable Pet queryObject) throws ApiException { ApiResponse localVarResponse = testQueryStyleDeepObjectExplodeTrueObjectWithHttpInfo(queryObject); return localVarResponse.getData(); } @@ -406,7 +406,7 @@ public class QueryApi { * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse testQueryStyleDeepObjectExplodeTrueObjectWithHttpInfo(Pet queryObject) throws ApiException { + public ApiResponse testQueryStyleDeepObjectExplodeTrueObjectWithHttpInfo(@javax.annotation.Nullable Pet queryObject) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testQueryStyleDeepObjectExplodeTrueObjectRequestBuilder(queryObject); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -443,7 +443,7 @@ public class QueryApi { } } - private HttpRequest.Builder testQueryStyleDeepObjectExplodeTrueObjectRequestBuilder(Pet queryObject) throws ApiException { + private HttpRequest.Builder testQueryStyleDeepObjectExplodeTrueObjectRequestBuilder(@javax.annotation.Nullable Pet queryObject) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -490,7 +490,7 @@ public class QueryApi { * @return String * @throws ApiException if fails to make API call */ - public String testQueryStyleDeepObjectExplodeTrueObjectAllOf(TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws ApiException { + public String testQueryStyleDeepObjectExplodeTrueObjectAllOf(@javax.annotation.Nullable TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws ApiException { ApiResponse localVarResponse = testQueryStyleDeepObjectExplodeTrueObjectAllOfWithHttpInfo(queryObject); return localVarResponse.getData(); } @@ -502,7 +502,7 @@ public class QueryApi { * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse testQueryStyleDeepObjectExplodeTrueObjectAllOfWithHttpInfo(TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws ApiException { + public ApiResponse testQueryStyleDeepObjectExplodeTrueObjectAllOfWithHttpInfo(@javax.annotation.Nullable TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testQueryStyleDeepObjectExplodeTrueObjectAllOfRequestBuilder(queryObject); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -539,7 +539,7 @@ public class QueryApi { } } - private HttpRequest.Builder testQueryStyleDeepObjectExplodeTrueObjectAllOfRequestBuilder(TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws ApiException { + private HttpRequest.Builder testQueryStyleDeepObjectExplodeTrueObjectAllOfRequestBuilder(@javax.annotation.Nullable TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -586,7 +586,7 @@ public class QueryApi { * @return String * @throws ApiException if fails to make API call */ - public String testQueryStyleFormExplodeFalseArrayInteger(List queryObject) throws ApiException { + public String testQueryStyleFormExplodeFalseArrayInteger(@javax.annotation.Nullable List queryObject) throws ApiException { ApiResponse localVarResponse = testQueryStyleFormExplodeFalseArrayIntegerWithHttpInfo(queryObject); return localVarResponse.getData(); } @@ -598,7 +598,7 @@ public class QueryApi { * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse testQueryStyleFormExplodeFalseArrayIntegerWithHttpInfo(List queryObject) throws ApiException { + public ApiResponse testQueryStyleFormExplodeFalseArrayIntegerWithHttpInfo(@javax.annotation.Nullable List queryObject) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testQueryStyleFormExplodeFalseArrayIntegerRequestBuilder(queryObject); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -635,7 +635,7 @@ public class QueryApi { } } - private HttpRequest.Builder testQueryStyleFormExplodeFalseArrayIntegerRequestBuilder(List queryObject) throws ApiException { + private HttpRequest.Builder testQueryStyleFormExplodeFalseArrayIntegerRequestBuilder(@javax.annotation.Nullable List queryObject) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -677,7 +677,7 @@ public class QueryApi { * @return String * @throws ApiException if fails to make API call */ - public String testQueryStyleFormExplodeFalseArrayString(List queryObject) throws ApiException { + public String testQueryStyleFormExplodeFalseArrayString(@javax.annotation.Nullable List queryObject) throws ApiException { ApiResponse localVarResponse = testQueryStyleFormExplodeFalseArrayStringWithHttpInfo(queryObject); return localVarResponse.getData(); } @@ -689,7 +689,7 @@ public class QueryApi { * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse testQueryStyleFormExplodeFalseArrayStringWithHttpInfo(List queryObject) throws ApiException { + public ApiResponse testQueryStyleFormExplodeFalseArrayStringWithHttpInfo(@javax.annotation.Nullable List queryObject) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testQueryStyleFormExplodeFalseArrayStringRequestBuilder(queryObject); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -726,7 +726,7 @@ public class QueryApi { } } - private HttpRequest.Builder testQueryStyleFormExplodeFalseArrayStringRequestBuilder(List queryObject) throws ApiException { + private HttpRequest.Builder testQueryStyleFormExplodeFalseArrayStringRequestBuilder(@javax.annotation.Nullable List queryObject) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -768,7 +768,7 @@ public class QueryApi { * @return String * @throws ApiException if fails to make API call */ - public String testQueryStyleFormExplodeTrueArrayString(TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws ApiException { + public String testQueryStyleFormExplodeTrueArrayString(@javax.annotation.Nullable TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws ApiException { ApiResponse localVarResponse = testQueryStyleFormExplodeTrueArrayStringWithHttpInfo(queryObject); return localVarResponse.getData(); } @@ -780,7 +780,7 @@ public class QueryApi { * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse testQueryStyleFormExplodeTrueArrayStringWithHttpInfo(TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws ApiException { + public ApiResponse testQueryStyleFormExplodeTrueArrayStringWithHttpInfo(@javax.annotation.Nullable TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testQueryStyleFormExplodeTrueArrayStringRequestBuilder(queryObject); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -817,7 +817,7 @@ public class QueryApi { } } - private HttpRequest.Builder testQueryStyleFormExplodeTrueArrayStringRequestBuilder(TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws ApiException { + private HttpRequest.Builder testQueryStyleFormExplodeTrueArrayStringRequestBuilder(@javax.annotation.Nullable TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -859,7 +859,7 @@ public class QueryApi { * @return String * @throws ApiException if fails to make API call */ - public String testQueryStyleFormExplodeTrueObject(Pet queryObject) throws ApiException { + public String testQueryStyleFormExplodeTrueObject(@javax.annotation.Nullable Pet queryObject) throws ApiException { ApiResponse localVarResponse = testQueryStyleFormExplodeTrueObjectWithHttpInfo(queryObject); return localVarResponse.getData(); } @@ -871,7 +871,7 @@ public class QueryApi { * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse testQueryStyleFormExplodeTrueObjectWithHttpInfo(Pet queryObject) throws ApiException { + public ApiResponse testQueryStyleFormExplodeTrueObjectWithHttpInfo(@javax.annotation.Nullable Pet queryObject) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testQueryStyleFormExplodeTrueObjectRequestBuilder(queryObject); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -908,7 +908,7 @@ public class QueryApi { } } - private HttpRequest.Builder testQueryStyleFormExplodeTrueObjectRequestBuilder(Pet queryObject) throws ApiException { + private HttpRequest.Builder testQueryStyleFormExplodeTrueObjectRequestBuilder(@javax.annotation.Nullable Pet queryObject) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -955,7 +955,7 @@ public class QueryApi { * @return String * @throws ApiException if fails to make API call */ - public String testQueryStyleFormExplodeTrueObjectAllOf(DataQuery queryObject) throws ApiException { + public String testQueryStyleFormExplodeTrueObjectAllOf(@javax.annotation.Nullable DataQuery queryObject) throws ApiException { ApiResponse localVarResponse = testQueryStyleFormExplodeTrueObjectAllOfWithHttpInfo(queryObject); return localVarResponse.getData(); } @@ -967,7 +967,7 @@ public class QueryApi { * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse testQueryStyleFormExplodeTrueObjectAllOfWithHttpInfo(DataQuery queryObject) throws ApiException { + public ApiResponse testQueryStyleFormExplodeTrueObjectAllOfWithHttpInfo(@javax.annotation.Nullable DataQuery queryObject) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testQueryStyleFormExplodeTrueObjectAllOfRequestBuilder(queryObject); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -1004,7 +1004,7 @@ public class QueryApi { } } - private HttpRequest.Builder testQueryStyleFormExplodeTrueObjectAllOfRequestBuilder(DataQuery queryObject) throws ApiException { + private HttpRequest.Builder testQueryStyleFormExplodeTrueObjectAllOfRequestBuilder(@javax.annotation.Nullable DataQuery queryObject) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/api/PetApi.java index 5766da3819b..7c146cd617b 100644 --- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/api/PetApi.java @@ -88,7 +88,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call addPetCall(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addPetCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -136,7 +136,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call addPetValidateBeforeCall(Pet pet, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addPetValidateBeforeCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { // verify the required parameter 'pet' is set if (pet == null) { throw new ApiException("Missing the required parameter 'pet' when calling addPet(Async)"); @@ -160,7 +160,7 @@ public class PetApi { 405 Invalid input - */ - public Pet addPet(Pet pet) throws ApiException { + public Pet addPet(@javax.annotation.Nonnull Pet pet) throws ApiException { ApiResponse localVarResp = addPetWithHttpInfo(pet); return localVarResp.getData(); } @@ -179,7 +179,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse addPetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse addPetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException { okhttp3.Call localVarCall = addPetValidateBeforeCall(pet, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -200,7 +200,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call addPetAsync(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addPetAsync(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = addPetValidateBeforeCall(pet, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -221,7 +221,7 @@ public class PetApi { 400 Invalid pet value - */ - public okhttp3.Call deletePetCall(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deletePetCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -271,7 +271,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deletePetValidateBeforeCall(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deletePetValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling deletePet(Async)"); @@ -294,7 +294,7 @@ public class PetApi { 400 Invalid pet value - */ - public void deletePet(Long petId, String apiKey) throws ApiException { + public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { deletePetWithHttpInfo(petId, apiKey); } @@ -312,7 +312,7 @@ public class PetApi { 400 Invalid pet value - */ - public ApiResponse deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException { + public ApiResponse deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { okhttp3.Call localVarCall = deletePetValidateBeforeCall(petId, apiKey, null); return localVarApiClient.execute(localVarCall); } @@ -332,7 +332,7 @@ public class PetApi { 400 Invalid pet value - */ - public okhttp3.Call deletePetAsync(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deletePetAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deletePetValidateBeforeCall(petId, apiKey, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -352,7 +352,7 @@ public class PetApi { 400 Invalid status value - */ - public okhttp3.Call findPetsByStatusCall(List status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findPetsByStatusCall(@javax.annotation.Nonnull List status, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -402,7 +402,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call findPetsByStatusValidateBeforeCall(List status, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findPetsByStatusValidateBeforeCall(@javax.annotation.Nonnull List status, final ApiCallback _callback) throws ApiException { // verify the required parameter 'status' is set if (status == null) { throw new ApiException("Missing the required parameter 'status' when calling findPetsByStatus(Async)"); @@ -426,7 +426,7 @@ public class PetApi { 400 Invalid status value - */ - public List findPetsByStatus(List status) throws ApiException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws ApiException { ApiResponse> localVarResp = findPetsByStatusWithHttpInfo(status); return localVarResp.getData(); } @@ -445,7 +445,7 @@ public class PetApi { 400 Invalid status value - */ - public ApiResponse> findPetsByStatusWithHttpInfo(List status) throws ApiException { + public ApiResponse> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws ApiException { okhttp3.Call localVarCall = findPetsByStatusValidateBeforeCall(status, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -466,7 +466,7 @@ public class PetApi { 400 Invalid status value - */ - public okhttp3.Call findPetsByStatusAsync(List status, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call findPetsByStatusAsync(@javax.annotation.Nonnull List status, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = findPetsByStatusValidateBeforeCall(status, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); @@ -489,7 +489,7 @@ public class PetApi { * @deprecated */ @Deprecated - public okhttp3.Call findPetsByTagsCall(List tags, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findPetsByTagsCall(@javax.annotation.Nonnull List tags, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -540,7 +540,7 @@ public class PetApi { @Deprecated @SuppressWarnings("rawtypes") - private okhttp3.Call findPetsByTagsValidateBeforeCall(List tags, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findPetsByTagsValidateBeforeCall(@javax.annotation.Nonnull List tags, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tags' is set if (tags == null) { throw new ApiException("Missing the required parameter 'tags' when calling findPetsByTags(Async)"); @@ -566,7 +566,7 @@ public class PetApi { * @deprecated */ @Deprecated - public List findPetsByTags(List tags) throws ApiException { + public List findPetsByTags(@javax.annotation.Nonnull List tags) throws ApiException { ApiResponse> localVarResp = findPetsByTagsWithHttpInfo(tags); return localVarResp.getData(); } @@ -587,7 +587,7 @@ public class PetApi { * @deprecated */ @Deprecated - public ApiResponse> findPetsByTagsWithHttpInfo(List tags) throws ApiException { + public ApiResponse> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull List tags) throws ApiException { okhttp3.Call localVarCall = findPetsByTagsValidateBeforeCall(tags, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -610,7 +610,7 @@ public class PetApi { * @deprecated */ @Deprecated - public okhttp3.Call findPetsByTagsAsync(List tags, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call findPetsByTagsAsync(@javax.annotation.Nonnull List tags, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = findPetsByTagsValidateBeforeCall(tags, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); @@ -632,7 +632,7 @@ public class PetApi { 404 Pet not found - */ - public okhttp3.Call getPetByIdCall(Long petId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPetByIdCall(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -679,7 +679,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getPetByIdValidateBeforeCall(Long petId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPetByIdValidateBeforeCall(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling getPetById(Async)"); @@ -704,7 +704,7 @@ public class PetApi { 404 Pet not found - */ - public Pet getPetById(Long petId) throws ApiException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws ApiException { ApiResponse localVarResp = getPetByIdWithHttpInfo(petId); return localVarResp.getData(); } @@ -724,7 +724,7 @@ public class PetApi { 404 Pet not found - */ - public ApiResponse getPetByIdWithHttpInfo(Long petId) throws ApiException { + public ApiResponse getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws ApiException { okhttp3.Call localVarCall = getPetByIdValidateBeforeCall(petId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -746,7 +746,7 @@ public class PetApi { 404 Pet not found - */ - public okhttp3.Call getPetByIdAsync(Long petId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPetByIdAsync(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPetByIdValidateBeforeCall(petId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -771,7 +771,7 @@ public class PetApi { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public okhttp3.Call updatePetCall(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -819,7 +819,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updatePetValidateBeforeCall(Pet pet, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updatePetValidateBeforeCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { // verify the required parameter 'pet' is set if (pet == null) { throw new ApiException("Missing the required parameter 'pet' when calling updatePet(Async)"); @@ -847,7 +847,7 @@ public class PetApi { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public Pet updatePet(Pet pet) throws ApiException { + public Pet updatePet(@javax.annotation.Nonnull Pet pet) throws ApiException { ApiResponse localVarResp = updatePetWithHttpInfo(pet); return localVarResp.getData(); } @@ -870,7 +870,7 @@ public class PetApi { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public ApiResponse updatePetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse updatePetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException { okhttp3.Call localVarCall = updatePetValidateBeforeCall(pet, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -895,7 +895,7 @@ public class PetApi { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public okhttp3.Call updatePetAsync(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetAsync(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updatePetValidateBeforeCall(pet, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -917,7 +917,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call updatePetWithFormCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetWithFormCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -971,7 +971,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updatePetWithFormValidateBeforeCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updatePetWithFormValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling updatePetWithForm(Async)"); @@ -995,7 +995,7 @@ public class PetApi { 405 Invalid input - */ - public void updatePetWithForm(Long petId, String name, String status) throws ApiException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -1014,7 +1014,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException { + public ApiResponse updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { okhttp3.Call localVarCall = updatePetWithFormValidateBeforeCall(petId, name, status, null); return localVarApiClient.execute(localVarCall); } @@ -1035,7 +1035,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call updatePetWithFormAsync(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetWithFormAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updatePetWithFormValidateBeforeCall(petId, name, status, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -1056,7 +1056,7 @@ public class PetApi { 200 successful operation - */ - public okhttp3.Call uploadFileCall(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1111,7 +1111,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call uploadFileValidateBeforeCall(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + private okhttp3.Call uploadFileValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling uploadFile(Async)"); @@ -1136,7 +1136,7 @@ public class PetApi { 200 successful operation - */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws ApiException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { ApiResponse localVarResp = uploadFileWithHttpInfo(petId, additionalMetadata, _file); return localVarResp.getData(); } @@ -1156,7 +1156,7 @@ public class PetApi { 200 successful operation - */ - public ApiResponse uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws ApiException { + public ApiResponse uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { okhttp3.Call localVarCall = uploadFileValidateBeforeCall(petId, additionalMetadata, _file, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1178,7 +1178,7 @@ public class PetApi { 200 successful operation - */ - public okhttp3.Call uploadFileAsync(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = uploadFileValidateBeforeCall(petId, additionalMetadata, _file, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/api/StoreApi.java index 1572d13a748..e1140a10a68 100644 --- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/api/StoreApi.java @@ -86,7 +86,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call deleteOrderCall(String orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteOrderCall(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -131,7 +131,7 @@ public class StoreApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteOrderValidateBeforeCall(String orderId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteOrderValidateBeforeCall(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new ApiException("Missing the required parameter 'orderId' when calling deleteOrder(Async)"); @@ -154,7 +154,7 @@ public class StoreApi { 404 Order not found - */ - public void deleteOrder(String orderId) throws ApiException { + public void deleteOrder(@javax.annotation.Nonnull String orderId) throws ApiException { deleteOrderWithHttpInfo(orderId); } @@ -172,7 +172,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse deleteOrderWithHttpInfo(String orderId) throws ApiException { + public ApiResponse deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws ApiException { okhttp3.Call localVarCall = deleteOrderValidateBeforeCall(orderId, null); return localVarApiClient.execute(localVarCall); } @@ -192,7 +192,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call deleteOrderAsync(String orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteOrderAsync(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteOrderValidateBeforeCall(orderId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -330,7 +330,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call getOrderByIdCall(Long orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getOrderByIdCall(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -377,7 +377,7 @@ public class StoreApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getOrderByIdValidateBeforeCall(Long orderId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getOrderByIdValidateBeforeCall(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new ApiException("Missing the required parameter 'orderId' when calling getOrderById(Async)"); @@ -402,7 +402,7 @@ public class StoreApi { 404 Order not found - */ - public Order getOrderById(Long orderId) throws ApiException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws ApiException { ApiResponse localVarResp = getOrderByIdWithHttpInfo(orderId); return localVarResp.getData(); } @@ -422,7 +422,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse getOrderByIdWithHttpInfo(Long orderId) throws ApiException { + public ApiResponse getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws ApiException { okhttp3.Call localVarCall = getOrderByIdValidateBeforeCall(orderId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -444,7 +444,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call getOrderByIdAsync(Long orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getOrderByIdAsync(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getOrderByIdValidateBeforeCall(orderId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -465,7 +465,7 @@ public class StoreApi { 400 Invalid Order - */ - public okhttp3.Call placeOrderCall(Order order, final ApiCallback _callback) throws ApiException { + public okhttp3.Call placeOrderCall(@javax.annotation.Nonnull Order order, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -512,7 +512,7 @@ public class StoreApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call placeOrderValidateBeforeCall(Order order, final ApiCallback _callback) throws ApiException { + private okhttp3.Call placeOrderValidateBeforeCall(@javax.annotation.Nonnull Order order, final ApiCallback _callback) throws ApiException { // verify the required parameter 'order' is set if (order == null) { throw new ApiException("Missing the required parameter 'order' when calling placeOrder(Async)"); @@ -536,7 +536,7 @@ public class StoreApi { 400 Invalid Order - */ - public Order placeOrder(Order order) throws ApiException { + public Order placeOrder(@javax.annotation.Nonnull Order order) throws ApiException { ApiResponse localVarResp = placeOrderWithHttpInfo(order); return localVarResp.getData(); } @@ -555,7 +555,7 @@ public class StoreApi { 400 Invalid Order - */ - public ApiResponse placeOrderWithHttpInfo(Order order) throws ApiException { + public ApiResponse placeOrderWithHttpInfo(@javax.annotation.Nonnull Order order) throws ApiException { okhttp3.Call localVarCall = placeOrderValidateBeforeCall(order, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -576,7 +576,7 @@ public class StoreApi { 400 Invalid Order - */ - public okhttp3.Call placeOrderAsync(Order order, final ApiCallback _callback) throws ApiException { + public okhttp3.Call placeOrderAsync(@javax.annotation.Nonnull Order order, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = placeOrderValidateBeforeCall(order, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/api/UserApi.java index 684295ba1bb..34d1386c02e 100644 --- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/api/UserApi.java @@ -86,7 +86,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUserCall(User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUserCall(@javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -131,7 +131,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createUserValidateBeforeCall(User user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUserValidateBeforeCall(@javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling createUser(Async)"); @@ -153,7 +153,7 @@ public class UserApi { 0 successful operation - */ - public void createUser(User user) throws ApiException { + public void createUser(@javax.annotation.Nonnull User user) throws ApiException { createUserWithHttpInfo(user); } @@ -170,7 +170,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUserWithHttpInfo(User user) throws ApiException { + public ApiResponse createUserWithHttpInfo(@javax.annotation.Nonnull User user) throws ApiException { okhttp3.Call localVarCall = createUserValidateBeforeCall(user, null); return localVarApiClient.execute(localVarCall); } @@ -189,7 +189,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUserAsync(User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUserAsync(@javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUserValidateBeforeCall(user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -208,7 +208,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithArrayInputCall(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithArrayInputCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -253,7 +253,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createUsersWithArrayInputValidateBeforeCall(List user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUsersWithArrayInputValidateBeforeCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling createUsersWithArrayInput(Async)"); @@ -275,7 +275,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithArrayInput(List user) throws ApiException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List user) throws ApiException { createUsersWithArrayInputWithHttpInfo(user); } @@ -292,7 +292,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithArrayInputWithHttpInfo(List user) throws ApiException { + public ApiResponse createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List user) throws ApiException { okhttp3.Call localVarCall = createUsersWithArrayInputValidateBeforeCall(user, null); return localVarApiClient.execute(localVarCall); } @@ -311,7 +311,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithArrayInputAsync(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithArrayInputAsync(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUsersWithArrayInputValidateBeforeCall(user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -330,7 +330,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithListInputCall(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithListInputCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -375,7 +375,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createUsersWithListInputValidateBeforeCall(List user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUsersWithListInputValidateBeforeCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling createUsersWithListInput(Async)"); @@ -397,7 +397,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithListInput(List user) throws ApiException { + public void createUsersWithListInput(@javax.annotation.Nonnull List user) throws ApiException { createUsersWithListInputWithHttpInfo(user); } @@ -414,7 +414,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithListInputWithHttpInfo(List user) throws ApiException { + public ApiResponse createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List user) throws ApiException { okhttp3.Call localVarCall = createUsersWithListInputValidateBeforeCall(user, null); return localVarApiClient.execute(localVarCall); } @@ -433,7 +433,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithListInputAsync(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithListInputAsync(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUsersWithListInputValidateBeforeCall(user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -453,7 +453,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call deleteUserCall(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUserCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -498,7 +498,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteUserValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteUserValidateBeforeCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling deleteUser(Async)"); @@ -521,7 +521,7 @@ public class UserApi { 404 User not found - */ - public void deleteUser(String username) throws ApiException { + public void deleteUser(@javax.annotation.Nonnull String username) throws ApiException { deleteUserWithHttpInfo(username); } @@ -539,7 +539,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse deleteUserWithHttpInfo(String username) throws ApiException { + public ApiResponse deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { okhttp3.Call localVarCall = deleteUserValidateBeforeCall(username, null); return localVarApiClient.execute(localVarCall); } @@ -559,7 +559,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call deleteUserAsync(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUserAsync(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteUserValidateBeforeCall(username, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -580,7 +580,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call getUserByNameCall(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUserByNameCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -627,7 +627,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getUserByNameValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserByNameValidateBeforeCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling getUserByName(Async)"); @@ -652,7 +652,7 @@ public class UserApi { 404 User not found - */ - public User getUserByName(String username) throws ApiException { + public User getUserByName(@javax.annotation.Nonnull String username) throws ApiException { ApiResponse localVarResp = getUserByNameWithHttpInfo(username); return localVarResp.getData(); } @@ -672,7 +672,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse getUserByNameWithHttpInfo(String username) throws ApiException { + public ApiResponse getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { okhttp3.Call localVarCall = getUserByNameValidateBeforeCall(username, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -694,7 +694,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call getUserByNameAsync(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUserByNameAsync(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserByNameValidateBeforeCall(username, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -716,7 +716,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public okhttp3.Call loginUserCall(String username, String password, final ApiCallback _callback) throws ApiException { + public okhttp3.Call loginUserCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -770,7 +770,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call loginUserValidateBeforeCall(String username, String password, final ApiCallback _callback) throws ApiException { + private okhttp3.Call loginUserValidateBeforeCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling loginUser(Async)"); @@ -800,7 +800,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public String loginUser(String username, String password) throws ApiException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { ApiResponse localVarResp = loginUserWithHttpInfo(username, password); return localVarResp.getData(); } @@ -820,7 +820,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public ApiResponse loginUserWithHttpInfo(String username, String password) throws ApiException { + public ApiResponse loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { okhttp3.Call localVarCall = loginUserValidateBeforeCall(username, password, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -842,7 +842,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public okhttp3.Call loginUserAsync(String username, String password, final ApiCallback _callback) throws ApiException { + public okhttp3.Call loginUserAsync(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = loginUserValidateBeforeCall(username, password, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -976,7 +976,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call updateUserCall(String username, User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateUserCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1022,7 +1022,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updateUserValidateBeforeCall(String username, User user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateUserValidateBeforeCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling updateUser(Async)"); @@ -1051,7 +1051,7 @@ public class UserApi { 404 User not found - */ - public void updateUser(String username, User user) throws ApiException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { updateUserWithHttpInfo(username, user); } @@ -1070,7 +1070,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse updateUserWithHttpInfo(String username, User user) throws ApiException { + public ApiResponse updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { okhttp3.Call localVarCall = updateUserValidateBeforeCall(username, user, null); return localVarApiClient.execute(localVarCall); } @@ -1091,7 +1091,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call updateUserAsync(String username, User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateUserAsync(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateUserValidateBeforeCall(username, user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/BodyApi.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/BodyApi.java index db1dd7068a8..a5cfe1c136a 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/BodyApi.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/BodyApi.java @@ -205,7 +205,7 @@ public class BodyApi { 200 Successful operation - */ - public okhttp3.Call testBodyApplicationOctetstreamBinaryCall(File body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testBodyApplicationOctetstreamBinaryCall(@javax.annotation.Nullable File body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -251,7 +251,7 @@ public class BodyApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testBodyApplicationOctetstreamBinaryValidateBeforeCall(File body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testBodyApplicationOctetstreamBinaryValidateBeforeCall(@javax.annotation.Nullable File body, final ApiCallback _callback) throws ApiException { return testBodyApplicationOctetstreamBinaryCall(body, _callback); } @@ -269,7 +269,7 @@ public class BodyApi { 200 Successful operation - */ - public String testBodyApplicationOctetstreamBinary(File body) throws ApiException { + public String testBodyApplicationOctetstreamBinary(@javax.annotation.Nullable File body) throws ApiException { ApiResponse localVarResp = testBodyApplicationOctetstreamBinaryWithHttpInfo(body); return localVarResp.getData(); } @@ -287,7 +287,7 @@ public class BodyApi { 200 Successful operation - */ - public ApiResponse testBodyApplicationOctetstreamBinaryWithHttpInfo(File body) throws ApiException { + public ApiResponse testBodyApplicationOctetstreamBinaryWithHttpInfo(@javax.annotation.Nullable File body) throws ApiException { okhttp3.Call localVarCall = testBodyApplicationOctetstreamBinaryValidateBeforeCall(body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -307,7 +307,7 @@ public class BodyApi { 200 Successful operation - */ - public okhttp3.Call testBodyApplicationOctetstreamBinaryAsync(File body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testBodyApplicationOctetstreamBinaryAsync(@javax.annotation.Nullable File body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testBodyApplicationOctetstreamBinaryValidateBeforeCall(body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -327,7 +327,7 @@ public class BodyApi { 200 Successful operation - */ - public okhttp3.Call testBodyMultipartFormdataArrayOfBinaryCall(List files, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testBodyMultipartFormdataArrayOfBinaryCall(@javax.annotation.Nonnull List files, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -377,7 +377,7 @@ public class BodyApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testBodyMultipartFormdataArrayOfBinaryValidateBeforeCall(List files, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testBodyMultipartFormdataArrayOfBinaryValidateBeforeCall(@javax.annotation.Nonnull List files, final ApiCallback _callback) throws ApiException { // verify the required parameter 'files' is set if (files == null) { throw new ApiException("Missing the required parameter 'files' when calling testBodyMultipartFormdataArrayOfBinary(Async)"); @@ -400,7 +400,7 @@ public class BodyApi { 200 Successful operation - */ - public String testBodyMultipartFormdataArrayOfBinary(List files) throws ApiException { + public String testBodyMultipartFormdataArrayOfBinary(@javax.annotation.Nonnull List files) throws ApiException { ApiResponse localVarResp = testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(files); return localVarResp.getData(); } @@ -418,7 +418,7 @@ public class BodyApi { 200 Successful operation - */ - public ApiResponse testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(List files) throws ApiException { + public ApiResponse testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(@javax.annotation.Nonnull List files) throws ApiException { okhttp3.Call localVarCall = testBodyMultipartFormdataArrayOfBinaryValidateBeforeCall(files, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -438,7 +438,7 @@ public class BodyApi { 200 Successful operation - */ - public okhttp3.Call testBodyMultipartFormdataArrayOfBinaryAsync(List files, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testBodyMultipartFormdataArrayOfBinaryAsync(@javax.annotation.Nonnull List files, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testBodyMultipartFormdataArrayOfBinaryValidateBeforeCall(files, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -458,7 +458,7 @@ public class BodyApi { 200 Successful operation - */ - public okhttp3.Call testBodyMultipartFormdataSingleBinaryCall(File myFile, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testBodyMultipartFormdataSingleBinaryCall(@javax.annotation.Nullable File myFile, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -508,7 +508,7 @@ public class BodyApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testBodyMultipartFormdataSingleBinaryValidateBeforeCall(File myFile, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testBodyMultipartFormdataSingleBinaryValidateBeforeCall(@javax.annotation.Nullable File myFile, final ApiCallback _callback) throws ApiException { return testBodyMultipartFormdataSingleBinaryCall(myFile, _callback); } @@ -526,7 +526,7 @@ public class BodyApi { 200 Successful operation - */ - public String testBodyMultipartFormdataSingleBinary(File myFile) throws ApiException { + public String testBodyMultipartFormdataSingleBinary(@javax.annotation.Nullable File myFile) throws ApiException { ApiResponse localVarResp = testBodyMultipartFormdataSingleBinaryWithHttpInfo(myFile); return localVarResp.getData(); } @@ -544,7 +544,7 @@ public class BodyApi { 200 Successful operation - */ - public ApiResponse testBodyMultipartFormdataSingleBinaryWithHttpInfo(File myFile) throws ApiException { + public ApiResponse testBodyMultipartFormdataSingleBinaryWithHttpInfo(@javax.annotation.Nullable File myFile) throws ApiException { okhttp3.Call localVarCall = testBodyMultipartFormdataSingleBinaryValidateBeforeCall(myFile, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -564,7 +564,7 @@ public class BodyApi { 200 Successful operation - */ - public okhttp3.Call testBodyMultipartFormdataSingleBinaryAsync(File myFile, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testBodyMultipartFormdataSingleBinaryAsync(@javax.annotation.Nullable File myFile, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testBodyMultipartFormdataSingleBinaryValidateBeforeCall(myFile, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -584,7 +584,7 @@ public class BodyApi { 200 Successful operation - */ - public okhttp3.Call testEchoBodyAllOfPetCall(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEchoBodyAllOfPetCall(@javax.annotation.Nullable Pet pet, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -630,7 +630,7 @@ public class BodyApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testEchoBodyAllOfPetValidateBeforeCall(Pet pet, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testEchoBodyAllOfPetValidateBeforeCall(@javax.annotation.Nullable Pet pet, final ApiCallback _callback) throws ApiException { return testEchoBodyAllOfPetCall(pet, _callback); } @@ -648,7 +648,7 @@ public class BodyApi { 200 Successful operation - */ - public Pet testEchoBodyAllOfPet(Pet pet) throws ApiException { + public Pet testEchoBodyAllOfPet(@javax.annotation.Nullable Pet pet) throws ApiException { ApiResponse localVarResp = testEchoBodyAllOfPetWithHttpInfo(pet); return localVarResp.getData(); } @@ -666,7 +666,7 @@ public class BodyApi { 200 Successful operation - */ - public ApiResponse testEchoBodyAllOfPetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse testEchoBodyAllOfPetWithHttpInfo(@javax.annotation.Nullable Pet pet) throws ApiException { okhttp3.Call localVarCall = testEchoBodyAllOfPetValidateBeforeCall(pet, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -686,7 +686,7 @@ public class BodyApi { 200 Successful operation - */ - public okhttp3.Call testEchoBodyAllOfPetAsync(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEchoBodyAllOfPetAsync(@javax.annotation.Nullable Pet pet, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testEchoBodyAllOfPetValidateBeforeCall(pet, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -706,7 +706,7 @@ public class BodyApi { 200 Successful operation - */ - public okhttp3.Call testEchoBodyFreeFormObjectResponseStringCall(Object body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEchoBodyFreeFormObjectResponseStringCall(@javax.annotation.Nullable Object body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -752,7 +752,7 @@ public class BodyApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testEchoBodyFreeFormObjectResponseStringValidateBeforeCall(Object body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testEchoBodyFreeFormObjectResponseStringValidateBeforeCall(@javax.annotation.Nullable Object body, final ApiCallback _callback) throws ApiException { return testEchoBodyFreeFormObjectResponseStringCall(body, _callback); } @@ -770,7 +770,7 @@ public class BodyApi { 200 Successful operation - */ - public String testEchoBodyFreeFormObjectResponseString(Object body) throws ApiException { + public String testEchoBodyFreeFormObjectResponseString(@javax.annotation.Nullable Object body) throws ApiException { ApiResponse localVarResp = testEchoBodyFreeFormObjectResponseStringWithHttpInfo(body); return localVarResp.getData(); } @@ -788,7 +788,7 @@ public class BodyApi { 200 Successful operation - */ - public ApiResponse testEchoBodyFreeFormObjectResponseStringWithHttpInfo(Object body) throws ApiException { + public ApiResponse testEchoBodyFreeFormObjectResponseStringWithHttpInfo(@javax.annotation.Nullable Object body) throws ApiException { okhttp3.Call localVarCall = testEchoBodyFreeFormObjectResponseStringValidateBeforeCall(body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -808,7 +808,7 @@ public class BodyApi { 200 Successful operation - */ - public okhttp3.Call testEchoBodyFreeFormObjectResponseStringAsync(Object body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEchoBodyFreeFormObjectResponseStringAsync(@javax.annotation.Nullable Object body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testEchoBodyFreeFormObjectResponseStringValidateBeforeCall(body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -828,7 +828,7 @@ public class BodyApi { 200 Successful operation - */ - public okhttp3.Call testEchoBodyPetCall(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEchoBodyPetCall(@javax.annotation.Nullable Pet pet, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -874,7 +874,7 @@ public class BodyApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testEchoBodyPetValidateBeforeCall(Pet pet, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testEchoBodyPetValidateBeforeCall(@javax.annotation.Nullable Pet pet, final ApiCallback _callback) throws ApiException { return testEchoBodyPetCall(pet, _callback); } @@ -892,7 +892,7 @@ public class BodyApi { 200 Successful operation - */ - public Pet testEchoBodyPet(Pet pet) throws ApiException { + public Pet testEchoBodyPet(@javax.annotation.Nullable Pet pet) throws ApiException { ApiResponse localVarResp = testEchoBodyPetWithHttpInfo(pet); return localVarResp.getData(); } @@ -910,7 +910,7 @@ public class BodyApi { 200 Successful operation - */ - public ApiResponse testEchoBodyPetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse testEchoBodyPetWithHttpInfo(@javax.annotation.Nullable Pet pet) throws ApiException { okhttp3.Call localVarCall = testEchoBodyPetValidateBeforeCall(pet, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -930,7 +930,7 @@ public class BodyApi { 200 Successful operation - */ - public okhttp3.Call testEchoBodyPetAsync(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEchoBodyPetAsync(@javax.annotation.Nullable Pet pet, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testEchoBodyPetValidateBeforeCall(pet, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -950,7 +950,7 @@ public class BodyApi { 200 Successful operation - */ - public okhttp3.Call testEchoBodyPetResponseStringCall(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEchoBodyPetResponseStringCall(@javax.annotation.Nullable Pet pet, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -996,7 +996,7 @@ public class BodyApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testEchoBodyPetResponseStringValidateBeforeCall(Pet pet, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testEchoBodyPetResponseStringValidateBeforeCall(@javax.annotation.Nullable Pet pet, final ApiCallback _callback) throws ApiException { return testEchoBodyPetResponseStringCall(pet, _callback); } @@ -1014,7 +1014,7 @@ public class BodyApi { 200 Successful operation - */ - public String testEchoBodyPetResponseString(Pet pet) throws ApiException { + public String testEchoBodyPetResponseString(@javax.annotation.Nullable Pet pet) throws ApiException { ApiResponse localVarResp = testEchoBodyPetResponseStringWithHttpInfo(pet); return localVarResp.getData(); } @@ -1032,7 +1032,7 @@ public class BodyApi { 200 Successful operation - */ - public ApiResponse testEchoBodyPetResponseStringWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse testEchoBodyPetResponseStringWithHttpInfo(@javax.annotation.Nullable Pet pet) throws ApiException { okhttp3.Call localVarCall = testEchoBodyPetResponseStringValidateBeforeCall(pet, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1052,7 +1052,7 @@ public class BodyApi { 200 Successful operation - */ - public okhttp3.Call testEchoBodyPetResponseStringAsync(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEchoBodyPetResponseStringAsync(@javax.annotation.Nullable Pet pet, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testEchoBodyPetResponseStringValidateBeforeCall(pet, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1072,7 +1072,7 @@ public class BodyApi { 200 Successful operation - */ - public okhttp3.Call testEchoBodyStringEnumCall(String body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEchoBodyStringEnumCall(@javax.annotation.Nullable String body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1118,7 +1118,7 @@ public class BodyApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testEchoBodyStringEnumValidateBeforeCall(String body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testEchoBodyStringEnumValidateBeforeCall(@javax.annotation.Nullable String body, final ApiCallback _callback) throws ApiException { return testEchoBodyStringEnumCall(body, _callback); } @@ -1136,7 +1136,7 @@ public class BodyApi { 200 Successful operation - */ - public StringEnumRef testEchoBodyStringEnum(String body) throws ApiException { + public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable String body) throws ApiException { ApiResponse localVarResp = testEchoBodyStringEnumWithHttpInfo(body); return localVarResp.getData(); } @@ -1154,7 +1154,7 @@ public class BodyApi { 200 Successful operation - */ - public ApiResponse testEchoBodyStringEnumWithHttpInfo(String body) throws ApiException { + public ApiResponse testEchoBodyStringEnumWithHttpInfo(@javax.annotation.Nullable String body) throws ApiException { okhttp3.Call localVarCall = testEchoBodyStringEnumValidateBeforeCall(body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1174,7 +1174,7 @@ public class BodyApi { 200 Successful operation - */ - public okhttp3.Call testEchoBodyStringEnumAsync(String body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEchoBodyStringEnumAsync(@javax.annotation.Nullable String body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testEchoBodyStringEnumValidateBeforeCall(body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1194,7 +1194,7 @@ public class BodyApi { 200 Successful operation - */ - public okhttp3.Call testEchoBodyTagResponseStringCall(Tag tag, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEchoBodyTagResponseStringCall(@javax.annotation.Nullable Tag tag, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1240,7 +1240,7 @@ public class BodyApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testEchoBodyTagResponseStringValidateBeforeCall(Tag tag, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testEchoBodyTagResponseStringValidateBeforeCall(@javax.annotation.Nullable Tag tag, final ApiCallback _callback) throws ApiException { return testEchoBodyTagResponseStringCall(tag, _callback); } @@ -1258,7 +1258,7 @@ public class BodyApi { 200 Successful operation - */ - public String testEchoBodyTagResponseString(Tag tag) throws ApiException { + public String testEchoBodyTagResponseString(@javax.annotation.Nullable Tag tag) throws ApiException { ApiResponse localVarResp = testEchoBodyTagResponseStringWithHttpInfo(tag); return localVarResp.getData(); } @@ -1276,7 +1276,7 @@ public class BodyApi { 200 Successful operation - */ - public ApiResponse testEchoBodyTagResponseStringWithHttpInfo(Tag tag) throws ApiException { + public ApiResponse testEchoBodyTagResponseStringWithHttpInfo(@javax.annotation.Nullable Tag tag) throws ApiException { okhttp3.Call localVarCall = testEchoBodyTagResponseStringValidateBeforeCall(tag, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1296,7 +1296,7 @@ public class BodyApi { 200 Successful operation - */ - public okhttp3.Call testEchoBodyTagResponseStringAsync(Tag tag, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEchoBodyTagResponseStringAsync(@javax.annotation.Nullable Tag tag, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testEchoBodyTagResponseStringValidateBeforeCall(tag, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/FormApi.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/FormApi.java index 1dd1f55b39c..fce6a3eb71d 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/FormApi.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/FormApi.java @@ -87,7 +87,7 @@ public class FormApi { 200 Successful operation - */ - public okhttp3.Call testFormIntegerBooleanStringCall(Integer integerForm, Boolean booleanForm, String stringForm, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testFormIntegerBooleanStringCall(@javax.annotation.Nullable Integer integerForm, @javax.annotation.Nullable Boolean booleanForm, @javax.annotation.Nullable String stringForm, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -145,7 +145,7 @@ public class FormApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testFormIntegerBooleanStringValidateBeforeCall(Integer integerForm, Boolean booleanForm, String stringForm, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testFormIntegerBooleanStringValidateBeforeCall(@javax.annotation.Nullable Integer integerForm, @javax.annotation.Nullable Boolean booleanForm, @javax.annotation.Nullable String stringForm, final ApiCallback _callback) throws ApiException { return testFormIntegerBooleanStringCall(integerForm, booleanForm, stringForm, _callback); } @@ -165,7 +165,7 @@ public class FormApi { 200 Successful operation - */ - public String testFormIntegerBooleanString(Integer integerForm, Boolean booleanForm, String stringForm) throws ApiException { + public String testFormIntegerBooleanString(@javax.annotation.Nullable Integer integerForm, @javax.annotation.Nullable Boolean booleanForm, @javax.annotation.Nullable String stringForm) throws ApiException { ApiResponse localVarResp = testFormIntegerBooleanStringWithHttpInfo(integerForm, booleanForm, stringForm); return localVarResp.getData(); } @@ -185,7 +185,7 @@ public class FormApi { 200 Successful operation - */ - public ApiResponse testFormIntegerBooleanStringWithHttpInfo(Integer integerForm, Boolean booleanForm, String stringForm) throws ApiException { + public ApiResponse testFormIntegerBooleanStringWithHttpInfo(@javax.annotation.Nullable Integer integerForm, @javax.annotation.Nullable Boolean booleanForm, @javax.annotation.Nullable String stringForm) throws ApiException { okhttp3.Call localVarCall = testFormIntegerBooleanStringValidateBeforeCall(integerForm, booleanForm, stringForm, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -207,7 +207,7 @@ public class FormApi { 200 Successful operation - */ - public okhttp3.Call testFormIntegerBooleanStringAsync(Integer integerForm, Boolean booleanForm, String stringForm, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testFormIntegerBooleanStringAsync(@javax.annotation.Nullable Integer integerForm, @javax.annotation.Nullable Boolean booleanForm, @javax.annotation.Nullable String stringForm, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testFormIntegerBooleanStringValidateBeforeCall(integerForm, booleanForm, stringForm, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -227,7 +227,7 @@ public class FormApi { 200 Successful operation - */ - public okhttp3.Call testFormObjectMultipartCall(TestFormObjectMultipartRequestMarker marker, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testFormObjectMultipartCall(@javax.annotation.Nonnull TestFormObjectMultipartRequestMarker marker, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -277,7 +277,7 @@ public class FormApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testFormObjectMultipartValidateBeforeCall(TestFormObjectMultipartRequestMarker marker, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testFormObjectMultipartValidateBeforeCall(@javax.annotation.Nonnull TestFormObjectMultipartRequestMarker marker, final ApiCallback _callback) throws ApiException { // verify the required parameter 'marker' is set if (marker == null) { throw new ApiException("Missing the required parameter 'marker' when calling testFormObjectMultipart(Async)"); @@ -300,7 +300,7 @@ public class FormApi { 200 Successful operation - */ - public String testFormObjectMultipart(TestFormObjectMultipartRequestMarker marker) throws ApiException { + public String testFormObjectMultipart(@javax.annotation.Nonnull TestFormObjectMultipartRequestMarker marker) throws ApiException { ApiResponse localVarResp = testFormObjectMultipartWithHttpInfo(marker); return localVarResp.getData(); } @@ -318,7 +318,7 @@ public class FormApi { 200 Successful operation - */ - public ApiResponse testFormObjectMultipartWithHttpInfo(TestFormObjectMultipartRequestMarker marker) throws ApiException { + public ApiResponse testFormObjectMultipartWithHttpInfo(@javax.annotation.Nonnull TestFormObjectMultipartRequestMarker marker) throws ApiException { okhttp3.Call localVarCall = testFormObjectMultipartValidateBeforeCall(marker, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -338,7 +338,7 @@ public class FormApi { 200 Successful operation - */ - public okhttp3.Call testFormObjectMultipartAsync(TestFormObjectMultipartRequestMarker marker, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testFormObjectMultipartAsync(@javax.annotation.Nonnull TestFormObjectMultipartRequestMarker marker, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testFormObjectMultipartValidateBeforeCall(marker, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -363,7 +363,7 @@ public class FormApi { 200 Successful operation - */ - public okhttp3.Call testFormOneofCall(String form1, Integer form2, String form3, Boolean form4, Long id, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testFormOneofCall(@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, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -433,7 +433,7 @@ public class FormApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testFormOneofValidateBeforeCall(String form1, Integer form2, String form3, Boolean form4, Long id, String name, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testFormOneofValidateBeforeCall(@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, final ApiCallback _callback) throws ApiException { return testFormOneofCall(form1, form2, form3, form4, id, name, _callback); } @@ -456,7 +456,7 @@ public class FormApi { 200 Successful operation - */ - public String testFormOneof(String form1, Integer form2, String form3, Boolean form4, Long id, String name) throws ApiException { + 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 ApiException { ApiResponse localVarResp = testFormOneofWithHttpInfo(form1, form2, form3, form4, id, name); return localVarResp.getData(); } @@ -479,7 +479,7 @@ public class FormApi { 200 Successful operation - */ - public ApiResponse testFormOneofWithHttpInfo(String form1, Integer form2, String form3, Boolean form4, Long id, String name) throws ApiException { + public ApiResponse 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 ApiException { okhttp3.Call localVarCall = testFormOneofValidateBeforeCall(form1, form2, form3, form4, id, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -504,7 +504,7 @@ public class FormApi { 200 Successful operation - */ - public okhttp3.Call testFormOneofAsync(String form1, Integer form2, String form3, Boolean form4, Long id, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testFormOneofAsync(@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, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testFormOneofValidateBeforeCall(form1, form2, form3, form4, id, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/HeaderApi.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/HeaderApi.java index f8b1cbce441..10391a5d5e7 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/HeaderApi.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/HeaderApi.java @@ -89,7 +89,7 @@ public class HeaderApi { 200 Successful operation - */ - public okhttp3.Call testHeaderIntegerBooleanStringEnumsCall(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testHeaderIntegerBooleanStringEnumsCall(@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, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -159,7 +159,7 @@ public class HeaderApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testHeaderIntegerBooleanStringEnumsValidateBeforeCall(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testHeaderIntegerBooleanStringEnumsValidateBeforeCall(@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, final ApiCallback _callback) throws ApiException { return testHeaderIntegerBooleanStringEnumsCall(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader, _callback); } @@ -181,7 +181,7 @@ public class HeaderApi { 200 Successful operation - */ - public String testHeaderIntegerBooleanStringEnums(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader) throws ApiException { + 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 ApiException { ApiResponse localVarResp = testHeaderIntegerBooleanStringEnumsWithHttpInfo(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader); return localVarResp.getData(); } @@ -203,7 +203,7 @@ public class HeaderApi { 200 Successful operation - */ - public ApiResponse testHeaderIntegerBooleanStringEnumsWithHttpInfo(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader) throws ApiException { + public ApiResponse 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 ApiException { okhttp3.Call localVarCall = testHeaderIntegerBooleanStringEnumsValidateBeforeCall(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -227,7 +227,7 @@ public class HeaderApi { 200 Successful operation - */ - public okhttp3.Call testHeaderIntegerBooleanStringEnumsAsync(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testHeaderIntegerBooleanStringEnumsAsync(@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, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testHeaderIntegerBooleanStringEnumsValidateBeforeCall(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/PathApi.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/PathApi.java index cca3d0e9f34..08a874a9222 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/PathApi.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/PathApi.java @@ -88,7 +88,7 @@ public class PathApi { 200 Successful operation - */ - public okhttp3.Call testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathCall(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathCall(@javax.annotation.Nonnull String pathString, @javax.annotation.Nonnull Integer pathInteger, @javax.annotation.Nonnull String enumNonrefStringPath, @javax.annotation.Nonnull StringEnumRef enumRefStringPath, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -137,7 +137,7 @@ public class PathApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathValidateBeforeCall(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathValidateBeforeCall(@javax.annotation.Nonnull String pathString, @javax.annotation.Nonnull Integer pathInteger, @javax.annotation.Nonnull String enumNonrefStringPath, @javax.annotation.Nonnull StringEnumRef enumRefStringPath, final ApiCallback _callback) throws ApiException { // verify the required parameter 'pathString' is set if (pathString == null) { throw new ApiException("Missing the required parameter 'pathString' when calling testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(Async)"); @@ -178,7 +178,7 @@ public class PathApi { 200 Successful operation - */ - public String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath) throws ApiException { + public String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(@javax.annotation.Nonnull String pathString, @javax.annotation.Nonnull Integer pathInteger, @javax.annotation.Nonnull String enumNonrefStringPath, @javax.annotation.Nonnull StringEnumRef enumRefStringPath) throws ApiException { ApiResponse localVarResp = testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath); return localVarResp.getData(); } @@ -199,7 +199,7 @@ public class PathApi { 200 Successful operation - */ - public ApiResponse testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath) throws ApiException { + public ApiResponse testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(@javax.annotation.Nonnull String pathString, @javax.annotation.Nonnull Integer pathInteger, @javax.annotation.Nonnull String enumNonrefStringPath, @javax.annotation.Nonnull StringEnumRef enumRefStringPath) throws ApiException { okhttp3.Call localVarCall = testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathValidateBeforeCall(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -222,7 +222,7 @@ public class PathApi { 200 Successful operation - */ - public okhttp3.Call testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathAsync(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathAsync(@javax.annotation.Nonnull String pathString, @javax.annotation.Nonnull Integer pathInteger, @javax.annotation.Nonnull String enumNonrefStringPath, @javax.annotation.Nonnull StringEnumRef enumRefStringPath, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathValidateBeforeCall(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/QueryApi.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/QueryApi.java index 43b317e4f8f..8c7b967515c 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/QueryApi.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/QueryApi.java @@ -92,7 +92,7 @@ public class QueryApi { 200 Successful operation - */ - public okhttp3.Call testEnumRefStringCall(String enumNonrefStringQuery, StringEnumRef enumRefStringQuery, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEnumRefStringCall(@javax.annotation.Nullable String enumNonrefStringQuery, @javax.annotation.Nullable StringEnumRef enumRefStringQuery, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -145,7 +145,7 @@ public class QueryApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testEnumRefStringValidateBeforeCall(String enumNonrefStringQuery, StringEnumRef enumRefStringQuery, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testEnumRefStringValidateBeforeCall(@javax.annotation.Nullable String enumNonrefStringQuery, @javax.annotation.Nullable StringEnumRef enumRefStringQuery, final ApiCallback _callback) throws ApiException { return testEnumRefStringCall(enumNonrefStringQuery, enumRefStringQuery, _callback); } @@ -164,7 +164,7 @@ public class QueryApi { 200 Successful operation - */ - public String testEnumRefString(String enumNonrefStringQuery, StringEnumRef enumRefStringQuery) throws ApiException { + public String testEnumRefString(@javax.annotation.Nullable String enumNonrefStringQuery, @javax.annotation.Nullable StringEnumRef enumRefStringQuery) throws ApiException { ApiResponse localVarResp = testEnumRefStringWithHttpInfo(enumNonrefStringQuery, enumRefStringQuery); return localVarResp.getData(); } @@ -183,7 +183,7 @@ public class QueryApi { 200 Successful operation - */ - public ApiResponse testEnumRefStringWithHttpInfo(String enumNonrefStringQuery, StringEnumRef enumRefStringQuery) throws ApiException { + public ApiResponse testEnumRefStringWithHttpInfo(@javax.annotation.Nullable String enumNonrefStringQuery, @javax.annotation.Nullable StringEnumRef enumRefStringQuery) throws ApiException { okhttp3.Call localVarCall = testEnumRefStringValidateBeforeCall(enumNonrefStringQuery, enumRefStringQuery, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -204,7 +204,7 @@ public class QueryApi { 200 Successful operation - */ - public okhttp3.Call testEnumRefStringAsync(String enumNonrefStringQuery, StringEnumRef enumRefStringQuery, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEnumRefStringAsync(@javax.annotation.Nullable String enumNonrefStringQuery, @javax.annotation.Nullable StringEnumRef enumRefStringQuery, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testEnumRefStringValidateBeforeCall(enumNonrefStringQuery, enumRefStringQuery, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -226,7 +226,7 @@ public class QueryApi { 200 Successful operation - */ - public okhttp3.Call testQueryDatetimeDateStringCall(OffsetDateTime datetimeQuery, LocalDate dateQuery, String stringQuery, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testQueryDatetimeDateStringCall(@javax.annotation.Nullable OffsetDateTime datetimeQuery, @javax.annotation.Nullable LocalDate dateQuery, @javax.annotation.Nullable String stringQuery, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -283,7 +283,7 @@ public class QueryApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testQueryDatetimeDateStringValidateBeforeCall(OffsetDateTime datetimeQuery, LocalDate dateQuery, String stringQuery, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testQueryDatetimeDateStringValidateBeforeCall(@javax.annotation.Nullable OffsetDateTime datetimeQuery, @javax.annotation.Nullable LocalDate dateQuery, @javax.annotation.Nullable String stringQuery, final ApiCallback _callback) throws ApiException { return testQueryDatetimeDateStringCall(datetimeQuery, dateQuery, stringQuery, _callback); } @@ -303,7 +303,7 @@ public class QueryApi { 200 Successful operation - */ - public String testQueryDatetimeDateString(OffsetDateTime datetimeQuery, LocalDate dateQuery, String stringQuery) throws ApiException { + public String testQueryDatetimeDateString(@javax.annotation.Nullable OffsetDateTime datetimeQuery, @javax.annotation.Nullable LocalDate dateQuery, @javax.annotation.Nullable String stringQuery) throws ApiException { ApiResponse localVarResp = testQueryDatetimeDateStringWithHttpInfo(datetimeQuery, dateQuery, stringQuery); return localVarResp.getData(); } @@ -323,7 +323,7 @@ public class QueryApi { 200 Successful operation - */ - public ApiResponse testQueryDatetimeDateStringWithHttpInfo(OffsetDateTime datetimeQuery, LocalDate dateQuery, String stringQuery) throws ApiException { + public ApiResponse testQueryDatetimeDateStringWithHttpInfo(@javax.annotation.Nullable OffsetDateTime datetimeQuery, @javax.annotation.Nullable LocalDate dateQuery, @javax.annotation.Nullable String stringQuery) throws ApiException { okhttp3.Call localVarCall = testQueryDatetimeDateStringValidateBeforeCall(datetimeQuery, dateQuery, stringQuery, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -345,7 +345,7 @@ public class QueryApi { 200 Successful operation - */ - public okhttp3.Call testQueryDatetimeDateStringAsync(OffsetDateTime datetimeQuery, LocalDate dateQuery, String stringQuery, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testQueryDatetimeDateStringAsync(@javax.annotation.Nullable OffsetDateTime datetimeQuery, @javax.annotation.Nullable LocalDate dateQuery, @javax.annotation.Nullable String stringQuery, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testQueryDatetimeDateStringValidateBeforeCall(datetimeQuery, dateQuery, stringQuery, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -367,7 +367,7 @@ public class QueryApi { 200 Successful operation - */ - public okhttp3.Call testQueryIntegerBooleanStringCall(Integer integerQuery, Boolean booleanQuery, String stringQuery, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testQueryIntegerBooleanStringCall(@javax.annotation.Nullable Integer integerQuery, @javax.annotation.Nullable Boolean booleanQuery, @javax.annotation.Nullable String stringQuery, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -424,7 +424,7 @@ public class QueryApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testQueryIntegerBooleanStringValidateBeforeCall(Integer integerQuery, Boolean booleanQuery, String stringQuery, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testQueryIntegerBooleanStringValidateBeforeCall(@javax.annotation.Nullable Integer integerQuery, @javax.annotation.Nullable Boolean booleanQuery, @javax.annotation.Nullable String stringQuery, final ApiCallback _callback) throws ApiException { return testQueryIntegerBooleanStringCall(integerQuery, booleanQuery, stringQuery, _callback); } @@ -444,7 +444,7 @@ public class QueryApi { 200 Successful operation - */ - public String testQueryIntegerBooleanString(Integer integerQuery, Boolean booleanQuery, String stringQuery) throws ApiException { + public String testQueryIntegerBooleanString(@javax.annotation.Nullable Integer integerQuery, @javax.annotation.Nullable Boolean booleanQuery, @javax.annotation.Nullable String stringQuery) throws ApiException { ApiResponse localVarResp = testQueryIntegerBooleanStringWithHttpInfo(integerQuery, booleanQuery, stringQuery); return localVarResp.getData(); } @@ -464,7 +464,7 @@ public class QueryApi { 200 Successful operation - */ - public ApiResponse testQueryIntegerBooleanStringWithHttpInfo(Integer integerQuery, Boolean booleanQuery, String stringQuery) throws ApiException { + public ApiResponse testQueryIntegerBooleanStringWithHttpInfo(@javax.annotation.Nullable Integer integerQuery, @javax.annotation.Nullable Boolean booleanQuery, @javax.annotation.Nullable String stringQuery) throws ApiException { okhttp3.Call localVarCall = testQueryIntegerBooleanStringValidateBeforeCall(integerQuery, booleanQuery, stringQuery, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -486,7 +486,7 @@ public class QueryApi { 200 Successful operation - */ - public okhttp3.Call testQueryIntegerBooleanStringAsync(Integer integerQuery, Boolean booleanQuery, String stringQuery, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testQueryIntegerBooleanStringAsync(@javax.annotation.Nullable Integer integerQuery, @javax.annotation.Nullable Boolean booleanQuery, @javax.annotation.Nullable String stringQuery, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testQueryIntegerBooleanStringValidateBeforeCall(integerQuery, booleanQuery, stringQuery, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -506,7 +506,7 @@ public class QueryApi { 200 Successful operation - */ - public okhttp3.Call testQueryStyleDeepObjectExplodeTrueObjectCall(Pet queryObject, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testQueryStyleDeepObjectExplodeTrueObjectCall(@javax.annotation.Nullable Pet queryObject, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -555,7 +555,7 @@ public class QueryApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testQueryStyleDeepObjectExplodeTrueObjectValidateBeforeCall(Pet queryObject, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testQueryStyleDeepObjectExplodeTrueObjectValidateBeforeCall(@javax.annotation.Nullable Pet queryObject, final ApiCallback _callback) throws ApiException { return testQueryStyleDeepObjectExplodeTrueObjectCall(queryObject, _callback); } @@ -573,7 +573,7 @@ public class QueryApi { 200 Successful operation - */ - public String testQueryStyleDeepObjectExplodeTrueObject(Pet queryObject) throws ApiException { + public String testQueryStyleDeepObjectExplodeTrueObject(@javax.annotation.Nullable Pet queryObject) throws ApiException { ApiResponse localVarResp = testQueryStyleDeepObjectExplodeTrueObjectWithHttpInfo(queryObject); return localVarResp.getData(); } @@ -591,7 +591,7 @@ public class QueryApi { 200 Successful operation - */ - public ApiResponse testQueryStyleDeepObjectExplodeTrueObjectWithHttpInfo(Pet queryObject) throws ApiException { + public ApiResponse testQueryStyleDeepObjectExplodeTrueObjectWithHttpInfo(@javax.annotation.Nullable Pet queryObject) throws ApiException { okhttp3.Call localVarCall = testQueryStyleDeepObjectExplodeTrueObjectValidateBeforeCall(queryObject, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -611,7 +611,7 @@ public class QueryApi { 200 Successful operation - */ - public okhttp3.Call testQueryStyleDeepObjectExplodeTrueObjectAsync(Pet queryObject, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testQueryStyleDeepObjectExplodeTrueObjectAsync(@javax.annotation.Nullable Pet queryObject, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testQueryStyleDeepObjectExplodeTrueObjectValidateBeforeCall(queryObject, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -631,7 +631,7 @@ public class QueryApi { 200 Successful operation - */ - public okhttp3.Call testQueryStyleDeepObjectExplodeTrueObjectAllOfCall(TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testQueryStyleDeepObjectExplodeTrueObjectAllOfCall(@javax.annotation.Nullable TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -680,7 +680,7 @@ public class QueryApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testQueryStyleDeepObjectExplodeTrueObjectAllOfValidateBeforeCall(TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testQueryStyleDeepObjectExplodeTrueObjectAllOfValidateBeforeCall(@javax.annotation.Nullable TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject, final ApiCallback _callback) throws ApiException { return testQueryStyleDeepObjectExplodeTrueObjectAllOfCall(queryObject, _callback); } @@ -698,7 +698,7 @@ public class QueryApi { 200 Successful operation - */ - public String testQueryStyleDeepObjectExplodeTrueObjectAllOf(TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws ApiException { + public String testQueryStyleDeepObjectExplodeTrueObjectAllOf(@javax.annotation.Nullable TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws ApiException { ApiResponse localVarResp = testQueryStyleDeepObjectExplodeTrueObjectAllOfWithHttpInfo(queryObject); return localVarResp.getData(); } @@ -716,7 +716,7 @@ public class QueryApi { 200 Successful operation - */ - public ApiResponse testQueryStyleDeepObjectExplodeTrueObjectAllOfWithHttpInfo(TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws ApiException { + public ApiResponse testQueryStyleDeepObjectExplodeTrueObjectAllOfWithHttpInfo(@javax.annotation.Nullable TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws ApiException { okhttp3.Call localVarCall = testQueryStyleDeepObjectExplodeTrueObjectAllOfValidateBeforeCall(queryObject, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -736,7 +736,7 @@ public class QueryApi { 200 Successful operation - */ - public okhttp3.Call testQueryStyleDeepObjectExplodeTrueObjectAllOfAsync(TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testQueryStyleDeepObjectExplodeTrueObjectAllOfAsync(@javax.annotation.Nullable TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testQueryStyleDeepObjectExplodeTrueObjectAllOfValidateBeforeCall(queryObject, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -756,7 +756,7 @@ public class QueryApi { 200 Successful operation - */ - public okhttp3.Call testQueryStyleFormExplodeFalseArrayIntegerCall(List queryObject, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testQueryStyleFormExplodeFalseArrayIntegerCall(@javax.annotation.Nullable List queryObject, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -805,7 +805,7 @@ public class QueryApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testQueryStyleFormExplodeFalseArrayIntegerValidateBeforeCall(List queryObject, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testQueryStyleFormExplodeFalseArrayIntegerValidateBeforeCall(@javax.annotation.Nullable List queryObject, final ApiCallback _callback) throws ApiException { return testQueryStyleFormExplodeFalseArrayIntegerCall(queryObject, _callback); } @@ -823,7 +823,7 @@ public class QueryApi { 200 Successful operation - */ - public String testQueryStyleFormExplodeFalseArrayInteger(List queryObject) throws ApiException { + public String testQueryStyleFormExplodeFalseArrayInteger(@javax.annotation.Nullable List queryObject) throws ApiException { ApiResponse localVarResp = testQueryStyleFormExplodeFalseArrayIntegerWithHttpInfo(queryObject); return localVarResp.getData(); } @@ -841,7 +841,7 @@ public class QueryApi { 200 Successful operation - */ - public ApiResponse testQueryStyleFormExplodeFalseArrayIntegerWithHttpInfo(List queryObject) throws ApiException { + public ApiResponse testQueryStyleFormExplodeFalseArrayIntegerWithHttpInfo(@javax.annotation.Nullable List queryObject) throws ApiException { okhttp3.Call localVarCall = testQueryStyleFormExplodeFalseArrayIntegerValidateBeforeCall(queryObject, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -861,7 +861,7 @@ public class QueryApi { 200 Successful operation - */ - public okhttp3.Call testQueryStyleFormExplodeFalseArrayIntegerAsync(List queryObject, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testQueryStyleFormExplodeFalseArrayIntegerAsync(@javax.annotation.Nullable List queryObject, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testQueryStyleFormExplodeFalseArrayIntegerValidateBeforeCall(queryObject, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -881,7 +881,7 @@ public class QueryApi { 200 Successful operation - */ - public okhttp3.Call testQueryStyleFormExplodeFalseArrayStringCall(List queryObject, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testQueryStyleFormExplodeFalseArrayStringCall(@javax.annotation.Nullable List queryObject, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -930,7 +930,7 @@ public class QueryApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testQueryStyleFormExplodeFalseArrayStringValidateBeforeCall(List queryObject, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testQueryStyleFormExplodeFalseArrayStringValidateBeforeCall(@javax.annotation.Nullable List queryObject, final ApiCallback _callback) throws ApiException { return testQueryStyleFormExplodeFalseArrayStringCall(queryObject, _callback); } @@ -948,7 +948,7 @@ public class QueryApi { 200 Successful operation - */ - public String testQueryStyleFormExplodeFalseArrayString(List queryObject) throws ApiException { + public String testQueryStyleFormExplodeFalseArrayString(@javax.annotation.Nullable List queryObject) throws ApiException { ApiResponse localVarResp = testQueryStyleFormExplodeFalseArrayStringWithHttpInfo(queryObject); return localVarResp.getData(); } @@ -966,7 +966,7 @@ public class QueryApi { 200 Successful operation - */ - public ApiResponse testQueryStyleFormExplodeFalseArrayStringWithHttpInfo(List queryObject) throws ApiException { + public ApiResponse testQueryStyleFormExplodeFalseArrayStringWithHttpInfo(@javax.annotation.Nullable List queryObject) throws ApiException { okhttp3.Call localVarCall = testQueryStyleFormExplodeFalseArrayStringValidateBeforeCall(queryObject, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -986,7 +986,7 @@ public class QueryApi { 200 Successful operation - */ - public okhttp3.Call testQueryStyleFormExplodeFalseArrayStringAsync(List queryObject, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testQueryStyleFormExplodeFalseArrayStringAsync(@javax.annotation.Nullable List queryObject, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testQueryStyleFormExplodeFalseArrayStringValidateBeforeCall(queryObject, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1006,7 +1006,7 @@ public class QueryApi { 200 Successful operation - */ - public okhttp3.Call testQueryStyleFormExplodeTrueArrayStringCall(TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testQueryStyleFormExplodeTrueArrayStringCall(@javax.annotation.Nullable TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1055,7 +1055,7 @@ public class QueryApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testQueryStyleFormExplodeTrueArrayStringValidateBeforeCall(TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testQueryStyleFormExplodeTrueArrayStringValidateBeforeCall(@javax.annotation.Nullable TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject, final ApiCallback _callback) throws ApiException { return testQueryStyleFormExplodeTrueArrayStringCall(queryObject, _callback); } @@ -1073,7 +1073,7 @@ public class QueryApi { 200 Successful operation - */ - public String testQueryStyleFormExplodeTrueArrayString(TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws ApiException { + public String testQueryStyleFormExplodeTrueArrayString(@javax.annotation.Nullable TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws ApiException { ApiResponse localVarResp = testQueryStyleFormExplodeTrueArrayStringWithHttpInfo(queryObject); return localVarResp.getData(); } @@ -1091,7 +1091,7 @@ public class QueryApi { 200 Successful operation - */ - public ApiResponse testQueryStyleFormExplodeTrueArrayStringWithHttpInfo(TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws ApiException { + public ApiResponse testQueryStyleFormExplodeTrueArrayStringWithHttpInfo(@javax.annotation.Nullable TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws ApiException { okhttp3.Call localVarCall = testQueryStyleFormExplodeTrueArrayStringValidateBeforeCall(queryObject, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1111,7 +1111,7 @@ public class QueryApi { 200 Successful operation - */ - public okhttp3.Call testQueryStyleFormExplodeTrueArrayStringAsync(TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testQueryStyleFormExplodeTrueArrayStringAsync(@javax.annotation.Nullable TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testQueryStyleFormExplodeTrueArrayStringValidateBeforeCall(queryObject, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1131,7 +1131,7 @@ public class QueryApi { 200 Successful operation - */ - public okhttp3.Call testQueryStyleFormExplodeTrueObjectCall(Pet queryObject, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testQueryStyleFormExplodeTrueObjectCall(@javax.annotation.Nullable Pet queryObject, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1180,7 +1180,7 @@ public class QueryApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testQueryStyleFormExplodeTrueObjectValidateBeforeCall(Pet queryObject, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testQueryStyleFormExplodeTrueObjectValidateBeforeCall(@javax.annotation.Nullable Pet queryObject, final ApiCallback _callback) throws ApiException { return testQueryStyleFormExplodeTrueObjectCall(queryObject, _callback); } @@ -1198,7 +1198,7 @@ public class QueryApi { 200 Successful operation - */ - public String testQueryStyleFormExplodeTrueObject(Pet queryObject) throws ApiException { + public String testQueryStyleFormExplodeTrueObject(@javax.annotation.Nullable Pet queryObject) throws ApiException { ApiResponse localVarResp = testQueryStyleFormExplodeTrueObjectWithHttpInfo(queryObject); return localVarResp.getData(); } @@ -1216,7 +1216,7 @@ public class QueryApi { 200 Successful operation - */ - public ApiResponse testQueryStyleFormExplodeTrueObjectWithHttpInfo(Pet queryObject) throws ApiException { + public ApiResponse testQueryStyleFormExplodeTrueObjectWithHttpInfo(@javax.annotation.Nullable Pet queryObject) throws ApiException { okhttp3.Call localVarCall = testQueryStyleFormExplodeTrueObjectValidateBeforeCall(queryObject, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1236,7 +1236,7 @@ public class QueryApi { 200 Successful operation - */ - public okhttp3.Call testQueryStyleFormExplodeTrueObjectAsync(Pet queryObject, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testQueryStyleFormExplodeTrueObjectAsync(@javax.annotation.Nullable Pet queryObject, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testQueryStyleFormExplodeTrueObjectValidateBeforeCall(queryObject, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1256,7 +1256,7 @@ public class QueryApi { 200 Successful operation - */ - public okhttp3.Call testQueryStyleFormExplodeTrueObjectAllOfCall(DataQuery queryObject, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testQueryStyleFormExplodeTrueObjectAllOfCall(@javax.annotation.Nullable DataQuery queryObject, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1305,7 +1305,7 @@ public class QueryApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testQueryStyleFormExplodeTrueObjectAllOfValidateBeforeCall(DataQuery queryObject, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testQueryStyleFormExplodeTrueObjectAllOfValidateBeforeCall(@javax.annotation.Nullable DataQuery queryObject, final ApiCallback _callback) throws ApiException { return testQueryStyleFormExplodeTrueObjectAllOfCall(queryObject, _callback); } @@ -1323,7 +1323,7 @@ public class QueryApi { 200 Successful operation - */ - public String testQueryStyleFormExplodeTrueObjectAllOf(DataQuery queryObject) throws ApiException { + public String testQueryStyleFormExplodeTrueObjectAllOf(@javax.annotation.Nullable DataQuery queryObject) throws ApiException { ApiResponse localVarResp = testQueryStyleFormExplodeTrueObjectAllOfWithHttpInfo(queryObject); return localVarResp.getData(); } @@ -1341,7 +1341,7 @@ public class QueryApi { 200 Successful operation - */ - public ApiResponse testQueryStyleFormExplodeTrueObjectAllOfWithHttpInfo(DataQuery queryObject) throws ApiException { + public ApiResponse testQueryStyleFormExplodeTrueObjectAllOfWithHttpInfo(@javax.annotation.Nullable DataQuery queryObject) throws ApiException { okhttp3.Call localVarCall = testQueryStyleFormExplodeTrueObjectAllOfValidateBeforeCall(queryObject, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1361,7 +1361,7 @@ public class QueryApi { 200 Successful operation - */ - public okhttp3.Call testQueryStyleFormExplodeTrueObjectAllOfAsync(DataQuery queryObject, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testQueryStyleFormExplodeTrueObjectAllOfAsync(@javax.annotation.Nullable DataQuery queryObject, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testQueryStyleFormExplodeTrueObjectAllOfValidateBeforeCall(queryObject, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/BodyApi.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/BodyApi.java index 8e6fc67c630..6a2d0446736 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/BodyApi.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/BodyApi.java @@ -119,7 +119,7 @@ public class BodyApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testBodyApplicationOctetstreamBinaryRequestCreation(File body) throws RestClientResponseException { + private ResponseSpec testBodyApplicationOctetstreamBinaryRequestCreation(@jakarta.annotation.Nullable File body) throws RestClientResponseException { Object postBody = body; // create path and map variables final Map pathParams = new HashMap<>(); @@ -152,7 +152,7 @@ public class BodyApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String testBodyApplicationOctetstreamBinary(File body) throws RestClientResponseException { + public String testBodyApplicationOctetstreamBinary(@jakarta.annotation.Nullable File body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testBodyApplicationOctetstreamBinaryRequestCreation(body).body(localVarReturnType); } @@ -165,7 +165,7 @@ public class BodyApi { * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testBodyApplicationOctetstreamBinaryWithHttpInfo(File body) throws RestClientResponseException { + public ResponseEntity testBodyApplicationOctetstreamBinaryWithHttpInfo(@jakarta.annotation.Nullable File body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testBodyApplicationOctetstreamBinaryRequestCreation(body).toEntity(localVarReturnType); } @@ -178,7 +178,7 @@ public class BodyApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testBodyApplicationOctetstreamBinaryWithResponseSpec(File body) throws RestClientResponseException { + public ResponseSpec testBodyApplicationOctetstreamBinaryWithResponseSpec(@jakarta.annotation.Nullable File body) throws RestClientResponseException { return testBodyApplicationOctetstreamBinaryRequestCreation(body); } /** @@ -189,7 +189,7 @@ public class BodyApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testBodyMultipartFormdataArrayOfBinaryRequestCreation(List files) throws RestClientResponseException { + private ResponseSpec testBodyMultipartFormdataArrayOfBinaryRequestCreation(@jakarta.annotation.Nonnull List files) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'files' is set if (files == null) { @@ -229,7 +229,7 @@ public class BodyApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String testBodyMultipartFormdataArrayOfBinary(List files) throws RestClientResponseException { + public String testBodyMultipartFormdataArrayOfBinary(@jakarta.annotation.Nonnull List files) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testBodyMultipartFormdataArrayOfBinaryRequestCreation(files).body(localVarReturnType); } @@ -242,7 +242,7 @@ public class BodyApi { * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(List files) throws RestClientResponseException { + public ResponseEntity testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(@jakarta.annotation.Nonnull List files) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testBodyMultipartFormdataArrayOfBinaryRequestCreation(files).toEntity(localVarReturnType); } @@ -255,7 +255,7 @@ public class BodyApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testBodyMultipartFormdataArrayOfBinaryWithResponseSpec(List files) throws RestClientResponseException { + public ResponseSpec testBodyMultipartFormdataArrayOfBinaryWithResponseSpec(@jakarta.annotation.Nonnull List files) throws RestClientResponseException { return testBodyMultipartFormdataArrayOfBinaryRequestCreation(files); } /** @@ -266,7 +266,7 @@ public class BodyApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testBodyMultipartFormdataSingleBinaryRequestCreation(File myFile) throws RestClientResponseException { + private ResponseSpec testBodyMultipartFormdataSingleBinaryRequestCreation(@jakarta.annotation.Nullable File myFile) throws RestClientResponseException { Object postBody = null; // create path and map variables final Map pathParams = new HashMap<>(); @@ -302,7 +302,7 @@ public class BodyApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String testBodyMultipartFormdataSingleBinary(File myFile) throws RestClientResponseException { + public String testBodyMultipartFormdataSingleBinary(@jakarta.annotation.Nullable File myFile) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testBodyMultipartFormdataSingleBinaryRequestCreation(myFile).body(localVarReturnType); } @@ -315,7 +315,7 @@ public class BodyApi { * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testBodyMultipartFormdataSingleBinaryWithHttpInfo(File myFile) throws RestClientResponseException { + public ResponseEntity testBodyMultipartFormdataSingleBinaryWithHttpInfo(@jakarta.annotation.Nullable File myFile) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testBodyMultipartFormdataSingleBinaryRequestCreation(myFile).toEntity(localVarReturnType); } @@ -328,7 +328,7 @@ public class BodyApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testBodyMultipartFormdataSingleBinaryWithResponseSpec(File myFile) throws RestClientResponseException { + public ResponseSpec testBodyMultipartFormdataSingleBinaryWithResponseSpec(@jakarta.annotation.Nullable File myFile) throws RestClientResponseException { return testBodyMultipartFormdataSingleBinaryRequestCreation(myFile); } /** @@ -339,7 +339,7 @@ public class BodyApi { * @return Pet * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testEchoBodyAllOfPetRequestCreation(Pet pet) throws RestClientResponseException { + private ResponseSpec testEchoBodyAllOfPetRequestCreation(@jakarta.annotation.Nullable Pet pet) throws RestClientResponseException { Object postBody = pet; // create path and map variables final Map pathParams = new HashMap<>(); @@ -372,7 +372,7 @@ public class BodyApi { * @return Pet * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public Pet testEchoBodyAllOfPet(Pet pet) throws RestClientResponseException { + public Pet testEchoBodyAllOfPet(@jakarta.annotation.Nullable Pet pet) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testEchoBodyAllOfPetRequestCreation(pet).body(localVarReturnType); } @@ -385,7 +385,7 @@ public class BodyApi { * @return ResponseEntity<Pet> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEchoBodyAllOfPetWithHttpInfo(Pet pet) throws RestClientResponseException { + public ResponseEntity testEchoBodyAllOfPetWithHttpInfo(@jakarta.annotation.Nullable Pet pet) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testEchoBodyAllOfPetRequestCreation(pet).toEntity(localVarReturnType); } @@ -398,7 +398,7 @@ public class BodyApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testEchoBodyAllOfPetWithResponseSpec(Pet pet) throws RestClientResponseException { + public ResponseSpec testEchoBodyAllOfPetWithResponseSpec(@jakarta.annotation.Nullable Pet pet) throws RestClientResponseException { return testEchoBodyAllOfPetRequestCreation(pet); } /** @@ -409,7 +409,7 @@ public class BodyApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testEchoBodyFreeFormObjectResponseStringRequestCreation(Object body) throws RestClientResponseException { + private ResponseSpec testEchoBodyFreeFormObjectResponseStringRequestCreation(@jakarta.annotation.Nullable Object body) throws RestClientResponseException { Object postBody = body; // create path and map variables final Map pathParams = new HashMap<>(); @@ -442,7 +442,7 @@ public class BodyApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String testEchoBodyFreeFormObjectResponseString(Object body) throws RestClientResponseException { + public String testEchoBodyFreeFormObjectResponseString(@jakarta.annotation.Nullable Object body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testEchoBodyFreeFormObjectResponseStringRequestCreation(body).body(localVarReturnType); } @@ -455,7 +455,7 @@ public class BodyApi { * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEchoBodyFreeFormObjectResponseStringWithHttpInfo(Object body) throws RestClientResponseException { + public ResponseEntity testEchoBodyFreeFormObjectResponseStringWithHttpInfo(@jakarta.annotation.Nullable Object body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testEchoBodyFreeFormObjectResponseStringRequestCreation(body).toEntity(localVarReturnType); } @@ -468,7 +468,7 @@ public class BodyApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testEchoBodyFreeFormObjectResponseStringWithResponseSpec(Object body) throws RestClientResponseException { + public ResponseSpec testEchoBodyFreeFormObjectResponseStringWithResponseSpec(@jakarta.annotation.Nullable Object body) throws RestClientResponseException { return testEchoBodyFreeFormObjectResponseStringRequestCreation(body); } /** @@ -479,7 +479,7 @@ public class BodyApi { * @return Pet * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testEchoBodyPetRequestCreation(Pet pet) throws RestClientResponseException { + private ResponseSpec testEchoBodyPetRequestCreation(@jakarta.annotation.Nullable Pet pet) throws RestClientResponseException { Object postBody = pet; // create path and map variables final Map pathParams = new HashMap<>(); @@ -512,7 +512,7 @@ public class BodyApi { * @return Pet * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public Pet testEchoBodyPet(Pet pet) throws RestClientResponseException { + public Pet testEchoBodyPet(@jakarta.annotation.Nullable Pet pet) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testEchoBodyPetRequestCreation(pet).body(localVarReturnType); } @@ -525,7 +525,7 @@ public class BodyApi { * @return ResponseEntity<Pet> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEchoBodyPetWithHttpInfo(Pet pet) throws RestClientResponseException { + public ResponseEntity testEchoBodyPetWithHttpInfo(@jakarta.annotation.Nullable Pet pet) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testEchoBodyPetRequestCreation(pet).toEntity(localVarReturnType); } @@ -538,7 +538,7 @@ public class BodyApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testEchoBodyPetWithResponseSpec(Pet pet) throws RestClientResponseException { + public ResponseSpec testEchoBodyPetWithResponseSpec(@jakarta.annotation.Nullable Pet pet) throws RestClientResponseException { return testEchoBodyPetRequestCreation(pet); } /** @@ -549,7 +549,7 @@ public class BodyApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testEchoBodyPetResponseStringRequestCreation(Pet pet) throws RestClientResponseException { + private ResponseSpec testEchoBodyPetResponseStringRequestCreation(@jakarta.annotation.Nullable Pet pet) throws RestClientResponseException { Object postBody = pet; // create path and map variables final Map pathParams = new HashMap<>(); @@ -582,7 +582,7 @@ public class BodyApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String testEchoBodyPetResponseString(Pet pet) throws RestClientResponseException { + public String testEchoBodyPetResponseString(@jakarta.annotation.Nullable Pet pet) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testEchoBodyPetResponseStringRequestCreation(pet).body(localVarReturnType); } @@ -595,7 +595,7 @@ public class BodyApi { * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEchoBodyPetResponseStringWithHttpInfo(Pet pet) throws RestClientResponseException { + public ResponseEntity testEchoBodyPetResponseStringWithHttpInfo(@jakarta.annotation.Nullable Pet pet) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testEchoBodyPetResponseStringRequestCreation(pet).toEntity(localVarReturnType); } @@ -608,7 +608,7 @@ public class BodyApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testEchoBodyPetResponseStringWithResponseSpec(Pet pet) throws RestClientResponseException { + public ResponseSpec testEchoBodyPetResponseStringWithResponseSpec(@jakarta.annotation.Nullable Pet pet) throws RestClientResponseException { return testEchoBodyPetResponseStringRequestCreation(pet); } /** @@ -619,7 +619,7 @@ public class BodyApi { * @return StringEnumRef * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testEchoBodyStringEnumRequestCreation(String body) throws RestClientResponseException { + private ResponseSpec testEchoBodyStringEnumRequestCreation(@jakarta.annotation.Nullable String body) throws RestClientResponseException { Object postBody = body; // create path and map variables final Map pathParams = new HashMap<>(); @@ -652,7 +652,7 @@ public class BodyApi { * @return StringEnumRef * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public StringEnumRef testEchoBodyStringEnum(String body) throws RestClientResponseException { + public StringEnumRef testEchoBodyStringEnum(@jakarta.annotation.Nullable String body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testEchoBodyStringEnumRequestCreation(body).body(localVarReturnType); } @@ -665,7 +665,7 @@ public class BodyApi { * @return ResponseEntity<StringEnumRef> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEchoBodyStringEnumWithHttpInfo(String body) throws RestClientResponseException { + public ResponseEntity testEchoBodyStringEnumWithHttpInfo(@jakarta.annotation.Nullable String body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testEchoBodyStringEnumRequestCreation(body).toEntity(localVarReturnType); } @@ -678,7 +678,7 @@ public class BodyApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testEchoBodyStringEnumWithResponseSpec(String body) throws RestClientResponseException { + public ResponseSpec testEchoBodyStringEnumWithResponseSpec(@jakarta.annotation.Nullable String body) throws RestClientResponseException { return testEchoBodyStringEnumRequestCreation(body); } /** @@ -689,7 +689,7 @@ public class BodyApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testEchoBodyTagResponseStringRequestCreation(Tag tag) throws RestClientResponseException { + private ResponseSpec testEchoBodyTagResponseStringRequestCreation(@jakarta.annotation.Nullable Tag tag) throws RestClientResponseException { Object postBody = tag; // create path and map variables final Map pathParams = new HashMap<>(); @@ -722,7 +722,7 @@ public class BodyApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String testEchoBodyTagResponseString(Tag tag) throws RestClientResponseException { + public String testEchoBodyTagResponseString(@jakarta.annotation.Nullable Tag tag) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testEchoBodyTagResponseStringRequestCreation(tag).body(localVarReturnType); } @@ -735,7 +735,7 @@ public class BodyApi { * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEchoBodyTagResponseStringWithHttpInfo(Tag tag) throws RestClientResponseException { + public ResponseEntity testEchoBodyTagResponseStringWithHttpInfo(@jakarta.annotation.Nullable Tag tag) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testEchoBodyTagResponseStringRequestCreation(tag).toEntity(localVarReturnType); } @@ -748,7 +748,7 @@ public class BodyApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testEchoBodyTagResponseStringWithResponseSpec(Tag tag) throws RestClientResponseException { + public ResponseSpec testEchoBodyTagResponseStringWithResponseSpec(@jakarta.annotation.Nullable Tag tag) throws RestClientResponseException { return testEchoBodyTagResponseStringRequestCreation(tag); } } diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/FormApi.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/FormApi.java index 434625d6f3d..f79d4725eba 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/FormApi.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/FormApi.java @@ -54,7 +54,7 @@ public class FormApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testFormIntegerBooleanStringRequestCreation(Integer integerForm, Boolean booleanForm, String stringForm) throws RestClientResponseException { + private ResponseSpec testFormIntegerBooleanStringRequestCreation(@jakarta.annotation.Nullable Integer integerForm, @jakarta.annotation.Nullable Boolean booleanForm, @jakarta.annotation.Nullable String stringForm) throws RestClientResponseException { Object postBody = null; // create path and map variables final Map pathParams = new HashMap<>(); @@ -96,7 +96,7 @@ public class FormApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String testFormIntegerBooleanString(Integer integerForm, Boolean booleanForm, String stringForm) throws RestClientResponseException { + public String testFormIntegerBooleanString(@jakarta.annotation.Nullable Integer integerForm, @jakarta.annotation.Nullable Boolean booleanForm, @jakarta.annotation.Nullable String stringForm) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testFormIntegerBooleanStringRequestCreation(integerForm, booleanForm, stringForm).body(localVarReturnType); } @@ -111,7 +111,7 @@ public class FormApi { * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testFormIntegerBooleanStringWithHttpInfo(Integer integerForm, Boolean booleanForm, String stringForm) throws RestClientResponseException { + public ResponseEntity testFormIntegerBooleanStringWithHttpInfo(@jakarta.annotation.Nullable Integer integerForm, @jakarta.annotation.Nullable Boolean booleanForm, @jakarta.annotation.Nullable String stringForm) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testFormIntegerBooleanStringRequestCreation(integerForm, booleanForm, stringForm).toEntity(localVarReturnType); } @@ -126,7 +126,7 @@ public class FormApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testFormIntegerBooleanStringWithResponseSpec(Integer integerForm, Boolean booleanForm, String stringForm) throws RestClientResponseException { + public ResponseSpec testFormIntegerBooleanStringWithResponseSpec(@jakarta.annotation.Nullable Integer integerForm, @jakarta.annotation.Nullable Boolean booleanForm, @jakarta.annotation.Nullable String stringForm) throws RestClientResponseException { return testFormIntegerBooleanStringRequestCreation(integerForm, booleanForm, stringForm); } /** @@ -137,7 +137,7 @@ public class FormApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testFormObjectMultipartRequestCreation(TestFormObjectMultipartRequestMarker marker) throws RestClientResponseException { + private ResponseSpec testFormObjectMultipartRequestCreation(@jakarta.annotation.Nonnull TestFormObjectMultipartRequestMarker marker) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'marker' is set if (marker == null) { @@ -177,7 +177,7 @@ public class FormApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String testFormObjectMultipart(TestFormObjectMultipartRequestMarker marker) throws RestClientResponseException { + public String testFormObjectMultipart(@jakarta.annotation.Nonnull TestFormObjectMultipartRequestMarker marker) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testFormObjectMultipartRequestCreation(marker).body(localVarReturnType); } @@ -190,7 +190,7 @@ public class FormApi { * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testFormObjectMultipartWithHttpInfo(TestFormObjectMultipartRequestMarker marker) throws RestClientResponseException { + public ResponseEntity testFormObjectMultipartWithHttpInfo(@jakarta.annotation.Nonnull TestFormObjectMultipartRequestMarker marker) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testFormObjectMultipartRequestCreation(marker).toEntity(localVarReturnType); } @@ -203,7 +203,7 @@ public class FormApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testFormObjectMultipartWithResponseSpec(TestFormObjectMultipartRequestMarker marker) throws RestClientResponseException { + public ResponseSpec testFormObjectMultipartWithResponseSpec(@jakarta.annotation.Nonnull TestFormObjectMultipartRequestMarker marker) throws RestClientResponseException { return testFormObjectMultipartRequestCreation(marker); } /** @@ -219,7 +219,7 @@ public class FormApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testFormOneofRequestCreation(String form1, Integer form2, String form3, Boolean form4, Long id, String name) throws RestClientResponseException { + private ResponseSpec testFormOneofRequestCreation(@jakarta.annotation.Nullable String form1, @jakarta.annotation.Nullable Integer form2, @jakarta.annotation.Nullable String form3, @jakarta.annotation.Nullable Boolean form4, @jakarta.annotation.Nullable Long id, @jakarta.annotation.Nullable String name) throws RestClientResponseException { Object postBody = null; // create path and map variables final Map pathParams = new HashMap<>(); @@ -270,7 +270,7 @@ public class FormApi { * @return String * @throws RestClientResponseException 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 RestClientResponseException { + public String testFormOneof(@jakarta.annotation.Nullable String form1, @jakarta.annotation.Nullable Integer form2, @jakarta.annotation.Nullable String form3, @jakarta.annotation.Nullable Boolean form4, @jakarta.annotation.Nullable Long id, @jakarta.annotation.Nullable String name) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testFormOneofRequestCreation(form1, form2, form3, form4, id, name).body(localVarReturnType); } @@ -288,7 +288,7 @@ public class FormApi { * @return ResponseEntity<String> * @throws RestClientResponseException 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 RestClientResponseException { + public ResponseEntity testFormOneofWithHttpInfo(@jakarta.annotation.Nullable String form1, @jakarta.annotation.Nullable Integer form2, @jakarta.annotation.Nullable String form3, @jakarta.annotation.Nullable Boolean form4, @jakarta.annotation.Nullable Long id, @jakarta.annotation.Nullable String name) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testFormOneofRequestCreation(form1, form2, form3, form4, id, name).toEntity(localVarReturnType); } @@ -306,7 +306,7 @@ public class FormApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testFormOneofWithResponseSpec(String form1, Integer form2, String form3, Boolean form4, Long id, String name) throws RestClientResponseException { + public ResponseSpec testFormOneofWithResponseSpec(@jakarta.annotation.Nullable String form1, @jakarta.annotation.Nullable Integer form2, @jakarta.annotation.Nullable String form3, @jakarta.annotation.Nullable Boolean form4, @jakarta.annotation.Nullable Long id, @jakarta.annotation.Nullable String name) throws RestClientResponseException { return testFormOneofRequestCreation(form1, form2, form3, form4, id, name); } } diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/HeaderApi.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/HeaderApi.java index fb97bfb5bc4..1fd014e05c8 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/HeaderApi.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/HeaderApi.java @@ -56,7 +56,7 @@ public class HeaderApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testHeaderIntegerBooleanStringEnumsRequestCreation(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader) throws RestClientResponseException { + private ResponseSpec testHeaderIntegerBooleanStringEnumsRequestCreation(@jakarta.annotation.Nullable Integer integerHeader, @jakarta.annotation.Nullable Boolean booleanHeader, @jakarta.annotation.Nullable String stringHeader, @jakarta.annotation.Nullable String enumNonrefStringHeader, @jakarta.annotation.Nullable StringEnumRef enumRefStringHeader) throws RestClientResponseException { Object postBody = null; // create path and map variables final Map pathParams = new HashMap<>(); @@ -102,7 +102,7 @@ public class HeaderApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String testHeaderIntegerBooleanStringEnums(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader) throws RestClientResponseException { + public String testHeaderIntegerBooleanStringEnums(@jakarta.annotation.Nullable Integer integerHeader, @jakarta.annotation.Nullable Boolean booleanHeader, @jakarta.annotation.Nullable String stringHeader, @jakarta.annotation.Nullable String enumNonrefStringHeader, @jakarta.annotation.Nullable StringEnumRef enumRefStringHeader) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testHeaderIntegerBooleanStringEnumsRequestCreation(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader).body(localVarReturnType); } @@ -119,7 +119,7 @@ public class HeaderApi { * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testHeaderIntegerBooleanStringEnumsWithHttpInfo(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader) throws RestClientResponseException { + public ResponseEntity testHeaderIntegerBooleanStringEnumsWithHttpInfo(@jakarta.annotation.Nullable Integer integerHeader, @jakarta.annotation.Nullable Boolean booleanHeader, @jakarta.annotation.Nullable String stringHeader, @jakarta.annotation.Nullable String enumNonrefStringHeader, @jakarta.annotation.Nullable StringEnumRef enumRefStringHeader) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testHeaderIntegerBooleanStringEnumsRequestCreation(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader).toEntity(localVarReturnType); } @@ -136,7 +136,7 @@ public class HeaderApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testHeaderIntegerBooleanStringEnumsWithResponseSpec(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader) throws RestClientResponseException { + public ResponseSpec testHeaderIntegerBooleanStringEnumsWithResponseSpec(@jakarta.annotation.Nullable Integer integerHeader, @jakarta.annotation.Nullable Boolean booleanHeader, @jakarta.annotation.Nullable String stringHeader, @jakarta.annotation.Nullable String enumNonrefStringHeader, @jakarta.annotation.Nullable StringEnumRef enumRefStringHeader) throws RestClientResponseException { return testHeaderIntegerBooleanStringEnumsRequestCreation(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader); } } diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/PathApi.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/PathApi.java index 0db2835af26..e054053ba77 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/PathApi.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/PathApi.java @@ -55,7 +55,7 @@ public class PathApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathRequestCreation(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath) throws RestClientResponseException { + private ResponseSpec testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathRequestCreation(@jakarta.annotation.Nonnull String pathString, @jakarta.annotation.Nonnull Integer pathInteger, @jakarta.annotation.Nonnull String enumNonrefStringPath, @jakarta.annotation.Nonnull StringEnumRef enumRefStringPath) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'pathString' is set if (pathString == null) { @@ -110,7 +110,7 @@ public class PathApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath) throws RestClientResponseException { + public String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(@jakarta.annotation.Nonnull String pathString, @jakarta.annotation.Nonnull Integer pathInteger, @jakarta.annotation.Nonnull String enumNonrefStringPath, @jakarta.annotation.Nonnull StringEnumRef enumRefStringPath) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathRequestCreation(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath).body(localVarReturnType); } @@ -126,7 +126,7 @@ public class PathApi { * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath) throws RestClientResponseException { + public ResponseEntity testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(@jakarta.annotation.Nonnull String pathString, @jakarta.annotation.Nonnull Integer pathInteger, @jakarta.annotation.Nonnull String enumNonrefStringPath, @jakarta.annotation.Nonnull StringEnumRef enumRefStringPath) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathRequestCreation(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath).toEntity(localVarReturnType); } @@ -142,7 +142,7 @@ public class PathApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithResponseSpec(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath) throws RestClientResponseException { + public ResponseSpec testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithResponseSpec(@jakarta.annotation.Nonnull String pathString, @jakarta.annotation.Nonnull Integer pathInteger, @jakarta.annotation.Nonnull String enumNonrefStringPath, @jakarta.annotation.Nonnull StringEnumRef enumRefStringPath) throws RestClientResponseException { return testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathRequestCreation(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath); } } diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/QueryApi.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/QueryApi.java index 48a36f9626c..fdd7aec2b93 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/QueryApi.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/QueryApi.java @@ -59,7 +59,7 @@ public class QueryApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testEnumRefStringRequestCreation(String enumNonrefStringQuery, StringEnumRef enumRefStringQuery) throws RestClientResponseException { + private ResponseSpec testEnumRefStringRequestCreation(@jakarta.annotation.Nullable String enumNonrefStringQuery, @jakarta.annotation.Nullable StringEnumRef enumRefStringQuery) throws RestClientResponseException { Object postBody = null; // create path and map variables final Map pathParams = new HashMap<>(); @@ -94,7 +94,7 @@ public class QueryApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String testEnumRefString(String enumNonrefStringQuery, StringEnumRef enumRefStringQuery) throws RestClientResponseException { + public String testEnumRefString(@jakarta.annotation.Nullable String enumNonrefStringQuery, @jakarta.annotation.Nullable StringEnumRef enumRefStringQuery) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testEnumRefStringRequestCreation(enumNonrefStringQuery, enumRefStringQuery).body(localVarReturnType); } @@ -108,7 +108,7 @@ public class QueryApi { * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEnumRefStringWithHttpInfo(String enumNonrefStringQuery, StringEnumRef enumRefStringQuery) throws RestClientResponseException { + public ResponseEntity testEnumRefStringWithHttpInfo(@jakarta.annotation.Nullable String enumNonrefStringQuery, @jakarta.annotation.Nullable StringEnumRef enumRefStringQuery) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testEnumRefStringRequestCreation(enumNonrefStringQuery, enumRefStringQuery).toEntity(localVarReturnType); } @@ -122,7 +122,7 @@ public class QueryApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testEnumRefStringWithResponseSpec(String enumNonrefStringQuery, StringEnumRef enumRefStringQuery) throws RestClientResponseException { + public ResponseSpec testEnumRefStringWithResponseSpec(@jakarta.annotation.Nullable String enumNonrefStringQuery, @jakarta.annotation.Nullable StringEnumRef enumRefStringQuery) throws RestClientResponseException { return testEnumRefStringRequestCreation(enumNonrefStringQuery, enumRefStringQuery); } /** @@ -135,7 +135,7 @@ public class QueryApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testQueryDatetimeDateStringRequestCreation(Instant datetimeQuery, LocalDate dateQuery, String stringQuery) throws RestClientResponseException { + private ResponseSpec testQueryDatetimeDateStringRequestCreation(@jakarta.annotation.Nullable Instant datetimeQuery, @jakarta.annotation.Nullable LocalDate dateQuery, @jakarta.annotation.Nullable String stringQuery) throws RestClientResponseException { Object postBody = null; // create path and map variables final Map pathParams = new HashMap<>(); @@ -172,7 +172,7 @@ public class QueryApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String testQueryDatetimeDateString(Instant datetimeQuery, LocalDate dateQuery, String stringQuery) throws RestClientResponseException { + public String testQueryDatetimeDateString(@jakarta.annotation.Nullable Instant datetimeQuery, @jakarta.annotation.Nullable LocalDate dateQuery, @jakarta.annotation.Nullable String stringQuery) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testQueryDatetimeDateStringRequestCreation(datetimeQuery, dateQuery, stringQuery).body(localVarReturnType); } @@ -187,7 +187,7 @@ public class QueryApi { * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryDatetimeDateStringWithHttpInfo(Instant datetimeQuery, LocalDate dateQuery, String stringQuery) throws RestClientResponseException { + public ResponseEntity testQueryDatetimeDateStringWithHttpInfo(@jakarta.annotation.Nullable Instant datetimeQuery, @jakarta.annotation.Nullable LocalDate dateQuery, @jakarta.annotation.Nullable String stringQuery) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testQueryDatetimeDateStringRequestCreation(datetimeQuery, dateQuery, stringQuery).toEntity(localVarReturnType); } @@ -202,7 +202,7 @@ public class QueryApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testQueryDatetimeDateStringWithResponseSpec(Instant datetimeQuery, LocalDate dateQuery, String stringQuery) throws RestClientResponseException { + public ResponseSpec testQueryDatetimeDateStringWithResponseSpec(@jakarta.annotation.Nullable Instant datetimeQuery, @jakarta.annotation.Nullable LocalDate dateQuery, @jakarta.annotation.Nullable String stringQuery) throws RestClientResponseException { return testQueryDatetimeDateStringRequestCreation(datetimeQuery, dateQuery, stringQuery); } /** @@ -215,7 +215,7 @@ public class QueryApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testQueryIntegerBooleanStringRequestCreation(Integer integerQuery, Boolean booleanQuery, String stringQuery) throws RestClientResponseException { + private ResponseSpec testQueryIntegerBooleanStringRequestCreation(@jakarta.annotation.Nullable Integer integerQuery, @jakarta.annotation.Nullable Boolean booleanQuery, @jakarta.annotation.Nullable String stringQuery) throws RestClientResponseException { Object postBody = null; // create path and map variables final Map pathParams = new HashMap<>(); @@ -252,7 +252,7 @@ public class QueryApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String testQueryIntegerBooleanString(Integer integerQuery, Boolean booleanQuery, String stringQuery) throws RestClientResponseException { + public String testQueryIntegerBooleanString(@jakarta.annotation.Nullable Integer integerQuery, @jakarta.annotation.Nullable Boolean booleanQuery, @jakarta.annotation.Nullable String stringQuery) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testQueryIntegerBooleanStringRequestCreation(integerQuery, booleanQuery, stringQuery).body(localVarReturnType); } @@ -267,7 +267,7 @@ public class QueryApi { * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryIntegerBooleanStringWithHttpInfo(Integer integerQuery, Boolean booleanQuery, String stringQuery) throws RestClientResponseException { + public ResponseEntity testQueryIntegerBooleanStringWithHttpInfo(@jakarta.annotation.Nullable Integer integerQuery, @jakarta.annotation.Nullable Boolean booleanQuery, @jakarta.annotation.Nullable String stringQuery) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testQueryIntegerBooleanStringRequestCreation(integerQuery, booleanQuery, stringQuery).toEntity(localVarReturnType); } @@ -282,7 +282,7 @@ public class QueryApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testQueryIntegerBooleanStringWithResponseSpec(Integer integerQuery, Boolean booleanQuery, String stringQuery) throws RestClientResponseException { + public ResponseSpec testQueryIntegerBooleanStringWithResponseSpec(@jakarta.annotation.Nullable Integer integerQuery, @jakarta.annotation.Nullable Boolean booleanQuery, @jakarta.annotation.Nullable String stringQuery) throws RestClientResponseException { return testQueryIntegerBooleanStringRequestCreation(integerQuery, booleanQuery, stringQuery); } /** @@ -293,7 +293,7 @@ public class QueryApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testQueryStyleDeepObjectExplodeTrueObjectRequestCreation(Pet queryObject) throws RestClientResponseException { + private ResponseSpec testQueryStyleDeepObjectExplodeTrueObjectRequestCreation(@jakarta.annotation.Nullable Pet queryObject) throws RestClientResponseException { Object postBody = null; // create path and map variables final Map pathParams = new HashMap<>(); @@ -331,7 +331,7 @@ public class QueryApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String testQueryStyleDeepObjectExplodeTrueObject(Pet queryObject) throws RestClientResponseException { + public String testQueryStyleDeepObjectExplodeTrueObject(@jakarta.annotation.Nullable Pet queryObject) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testQueryStyleDeepObjectExplodeTrueObjectRequestCreation(queryObject).body(localVarReturnType); } @@ -344,7 +344,7 @@ public class QueryApi { * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryStyleDeepObjectExplodeTrueObjectWithHttpInfo(Pet queryObject) throws RestClientResponseException { + public ResponseEntity testQueryStyleDeepObjectExplodeTrueObjectWithHttpInfo(@jakarta.annotation.Nullable Pet queryObject) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testQueryStyleDeepObjectExplodeTrueObjectRequestCreation(queryObject).toEntity(localVarReturnType); } @@ -357,7 +357,7 @@ public class QueryApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testQueryStyleDeepObjectExplodeTrueObjectWithResponseSpec(Pet queryObject) throws RestClientResponseException { + public ResponseSpec testQueryStyleDeepObjectExplodeTrueObjectWithResponseSpec(@jakarta.annotation.Nullable Pet queryObject) throws RestClientResponseException { return testQueryStyleDeepObjectExplodeTrueObjectRequestCreation(queryObject); } /** @@ -368,7 +368,7 @@ public class QueryApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testQueryStyleDeepObjectExplodeTrueObjectAllOfRequestCreation(TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws RestClientResponseException { + private ResponseSpec testQueryStyleDeepObjectExplodeTrueObjectAllOfRequestCreation(@jakarta.annotation.Nullable TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws RestClientResponseException { Object postBody = null; // create path and map variables final Map pathParams = new HashMap<>(); @@ -401,7 +401,7 @@ public class QueryApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String testQueryStyleDeepObjectExplodeTrueObjectAllOf(TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws RestClientResponseException { + public String testQueryStyleDeepObjectExplodeTrueObjectAllOf(@jakarta.annotation.Nullable TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testQueryStyleDeepObjectExplodeTrueObjectAllOfRequestCreation(queryObject).body(localVarReturnType); } @@ -414,7 +414,7 @@ public class QueryApi { * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryStyleDeepObjectExplodeTrueObjectAllOfWithHttpInfo(TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws RestClientResponseException { + public ResponseEntity testQueryStyleDeepObjectExplodeTrueObjectAllOfWithHttpInfo(@jakarta.annotation.Nullable TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testQueryStyleDeepObjectExplodeTrueObjectAllOfRequestCreation(queryObject).toEntity(localVarReturnType); } @@ -427,7 +427,7 @@ public class QueryApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testQueryStyleDeepObjectExplodeTrueObjectAllOfWithResponseSpec(TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws RestClientResponseException { + public ResponseSpec testQueryStyleDeepObjectExplodeTrueObjectAllOfWithResponseSpec(@jakarta.annotation.Nullable TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws RestClientResponseException { return testQueryStyleDeepObjectExplodeTrueObjectAllOfRequestCreation(queryObject); } /** @@ -438,7 +438,7 @@ public class QueryApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testQueryStyleFormExplodeFalseArrayIntegerRequestCreation(List queryObject) throws RestClientResponseException { + private ResponseSpec testQueryStyleFormExplodeFalseArrayIntegerRequestCreation(@jakarta.annotation.Nullable List queryObject) throws RestClientResponseException { Object postBody = null; // create path and map variables final Map pathParams = new HashMap<>(); @@ -471,7 +471,7 @@ public class QueryApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String testQueryStyleFormExplodeFalseArrayInteger(List queryObject) throws RestClientResponseException { + public String testQueryStyleFormExplodeFalseArrayInteger(@jakarta.annotation.Nullable List queryObject) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testQueryStyleFormExplodeFalseArrayIntegerRequestCreation(queryObject).body(localVarReturnType); } @@ -484,7 +484,7 @@ public class QueryApi { * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryStyleFormExplodeFalseArrayIntegerWithHttpInfo(List queryObject) throws RestClientResponseException { + public ResponseEntity testQueryStyleFormExplodeFalseArrayIntegerWithHttpInfo(@jakarta.annotation.Nullable List queryObject) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testQueryStyleFormExplodeFalseArrayIntegerRequestCreation(queryObject).toEntity(localVarReturnType); } @@ -497,7 +497,7 @@ public class QueryApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testQueryStyleFormExplodeFalseArrayIntegerWithResponseSpec(List queryObject) throws RestClientResponseException { + public ResponseSpec testQueryStyleFormExplodeFalseArrayIntegerWithResponseSpec(@jakarta.annotation.Nullable List queryObject) throws RestClientResponseException { return testQueryStyleFormExplodeFalseArrayIntegerRequestCreation(queryObject); } /** @@ -508,7 +508,7 @@ public class QueryApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testQueryStyleFormExplodeFalseArrayStringRequestCreation(List queryObject) throws RestClientResponseException { + private ResponseSpec testQueryStyleFormExplodeFalseArrayStringRequestCreation(@jakarta.annotation.Nullable List queryObject) throws RestClientResponseException { Object postBody = null; // create path and map variables final Map pathParams = new HashMap<>(); @@ -541,7 +541,7 @@ public class QueryApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String testQueryStyleFormExplodeFalseArrayString(List queryObject) throws RestClientResponseException { + public String testQueryStyleFormExplodeFalseArrayString(@jakarta.annotation.Nullable List queryObject) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testQueryStyleFormExplodeFalseArrayStringRequestCreation(queryObject).body(localVarReturnType); } @@ -554,7 +554,7 @@ public class QueryApi { * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryStyleFormExplodeFalseArrayStringWithHttpInfo(List queryObject) throws RestClientResponseException { + public ResponseEntity testQueryStyleFormExplodeFalseArrayStringWithHttpInfo(@jakarta.annotation.Nullable List queryObject) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testQueryStyleFormExplodeFalseArrayStringRequestCreation(queryObject).toEntity(localVarReturnType); } @@ -567,7 +567,7 @@ public class QueryApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testQueryStyleFormExplodeFalseArrayStringWithResponseSpec(List queryObject) throws RestClientResponseException { + public ResponseSpec testQueryStyleFormExplodeFalseArrayStringWithResponseSpec(@jakarta.annotation.Nullable List queryObject) throws RestClientResponseException { return testQueryStyleFormExplodeFalseArrayStringRequestCreation(queryObject); } /** @@ -578,7 +578,7 @@ public class QueryApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testQueryStyleFormExplodeTrueArrayStringRequestCreation(TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws RestClientResponseException { + private ResponseSpec testQueryStyleFormExplodeTrueArrayStringRequestCreation(@jakarta.annotation.Nullable TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws RestClientResponseException { Object postBody = null; // create path and map variables final Map pathParams = new HashMap<>(); @@ -611,7 +611,7 @@ public class QueryApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String testQueryStyleFormExplodeTrueArrayString(TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws RestClientResponseException { + public String testQueryStyleFormExplodeTrueArrayString(@jakarta.annotation.Nullable TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testQueryStyleFormExplodeTrueArrayStringRequestCreation(queryObject).body(localVarReturnType); } @@ -624,7 +624,7 @@ public class QueryApi { * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryStyleFormExplodeTrueArrayStringWithHttpInfo(TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws RestClientResponseException { + public ResponseEntity testQueryStyleFormExplodeTrueArrayStringWithHttpInfo(@jakarta.annotation.Nullable TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testQueryStyleFormExplodeTrueArrayStringRequestCreation(queryObject).toEntity(localVarReturnType); } @@ -637,7 +637,7 @@ public class QueryApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testQueryStyleFormExplodeTrueArrayStringWithResponseSpec(TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws RestClientResponseException { + public ResponseSpec testQueryStyleFormExplodeTrueArrayStringWithResponseSpec(@jakarta.annotation.Nullable TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws RestClientResponseException { return testQueryStyleFormExplodeTrueArrayStringRequestCreation(queryObject); } /** @@ -648,7 +648,7 @@ public class QueryApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testQueryStyleFormExplodeTrueObjectRequestCreation(Pet queryObject) throws RestClientResponseException { + private ResponseSpec testQueryStyleFormExplodeTrueObjectRequestCreation(@jakarta.annotation.Nullable Pet queryObject) throws RestClientResponseException { Object postBody = null; // create path and map variables final Map pathParams = new HashMap<>(); @@ -686,7 +686,7 @@ public class QueryApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String testQueryStyleFormExplodeTrueObject(Pet queryObject) throws RestClientResponseException { + public String testQueryStyleFormExplodeTrueObject(@jakarta.annotation.Nullable Pet queryObject) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testQueryStyleFormExplodeTrueObjectRequestCreation(queryObject).body(localVarReturnType); } @@ -699,7 +699,7 @@ public class QueryApi { * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryStyleFormExplodeTrueObjectWithHttpInfo(Pet queryObject) throws RestClientResponseException { + public ResponseEntity testQueryStyleFormExplodeTrueObjectWithHttpInfo(@jakarta.annotation.Nullable Pet queryObject) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testQueryStyleFormExplodeTrueObjectRequestCreation(queryObject).toEntity(localVarReturnType); } @@ -712,7 +712,7 @@ public class QueryApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testQueryStyleFormExplodeTrueObjectWithResponseSpec(Pet queryObject) throws RestClientResponseException { + public ResponseSpec testQueryStyleFormExplodeTrueObjectWithResponseSpec(@jakarta.annotation.Nullable Pet queryObject) throws RestClientResponseException { return testQueryStyleFormExplodeTrueObjectRequestCreation(queryObject); } /** @@ -723,7 +723,7 @@ public class QueryApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testQueryStyleFormExplodeTrueObjectAllOfRequestCreation(DataQuery queryObject) throws RestClientResponseException { + private ResponseSpec testQueryStyleFormExplodeTrueObjectAllOfRequestCreation(@jakarta.annotation.Nullable DataQuery queryObject) throws RestClientResponseException { Object postBody = null; // create path and map variables final Map pathParams = new HashMap<>(); @@ -756,7 +756,7 @@ public class QueryApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String testQueryStyleFormExplodeTrueObjectAllOf(DataQuery queryObject) throws RestClientResponseException { + public String testQueryStyleFormExplodeTrueObjectAllOf(@jakarta.annotation.Nullable DataQuery queryObject) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testQueryStyleFormExplodeTrueObjectAllOfRequestCreation(queryObject).body(localVarReturnType); } @@ -769,7 +769,7 @@ public class QueryApi { * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryStyleFormExplodeTrueObjectAllOfWithHttpInfo(DataQuery queryObject) throws RestClientResponseException { + public ResponseEntity testQueryStyleFormExplodeTrueObjectAllOfWithHttpInfo(@jakarta.annotation.Nullable DataQuery queryObject) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testQueryStyleFormExplodeTrueObjectAllOfRequestCreation(queryObject).toEntity(localVarReturnType); } @@ -782,7 +782,7 @@ public class QueryApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testQueryStyleFormExplodeTrueObjectAllOfWithResponseSpec(DataQuery queryObject) throws RestClientResponseException { + public ResponseSpec testQueryStyleFormExplodeTrueObjectAllOfWithResponseSpec(@jakarta.annotation.Nullable DataQuery queryObject) throws RestClientResponseException { return testQueryStyleFormExplodeTrueObjectAllOfRequestCreation(queryObject); } } diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/api/BodyApi.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/api/BodyApi.java index 7ec0b652a86..82edeaad7ad 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/api/BodyApi.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/api/BodyApi.java @@ -81,7 +81,7 @@ public class BodyApi { * @return a {@code String} * @throws ApiException if fails to make API call */ - public String testBodyApplicationOctetstreamBinary(File body) throws ApiException { + public String testBodyApplicationOctetstreamBinary(@javax.annotation.Nullable File body) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -119,7 +119,7 @@ public class BodyApi { * @return a {@code String} * @throws ApiException if fails to make API call */ - public String testBodyMultipartFormdataArrayOfBinary(List files) throws ApiException { + public String testBodyMultipartFormdataArrayOfBinary(@javax.annotation.Nonnull List files) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'files' is set @@ -164,7 +164,7 @@ public class BodyApi { * @return a {@code String} * @throws ApiException if fails to make API call */ - public String testBodyMultipartFormdataSingleBinary(File myFile) throws ApiException { + public String testBodyMultipartFormdataSingleBinary(@javax.annotation.Nullable File myFile) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -204,7 +204,7 @@ public class BodyApi { * @return a {@code Pet} * @throws ApiException if fails to make API call */ - public Pet testEchoBodyAllOfPet(Pet pet) throws ApiException { + public Pet testEchoBodyAllOfPet(@javax.annotation.Nullable Pet pet) throws ApiException { Object localVarPostBody = pet; // create path and map variables @@ -242,7 +242,7 @@ public class BodyApi { * @return a {@code String} * @throws ApiException if fails to make API call */ - public String testEchoBodyFreeFormObjectResponseString(Object body) throws ApiException { + public String testEchoBodyFreeFormObjectResponseString(@javax.annotation.Nullable Object body) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -280,7 +280,7 @@ public class BodyApi { * @return a {@code Pet} * @throws ApiException if fails to make API call */ - public Pet testEchoBodyPet(Pet pet) throws ApiException { + public Pet testEchoBodyPet(@javax.annotation.Nullable Pet pet) throws ApiException { Object localVarPostBody = pet; // create path and map variables @@ -318,7 +318,7 @@ public class BodyApi { * @return a {@code String} * @throws ApiException if fails to make API call */ - public String testEchoBodyPetResponseString(Pet pet) throws ApiException { + public String testEchoBodyPetResponseString(@javax.annotation.Nullable Pet pet) throws ApiException { Object localVarPostBody = pet; // create path and map variables @@ -356,7 +356,7 @@ public class BodyApi { * @return a {@code StringEnumRef} * @throws ApiException if fails to make API call */ - public StringEnumRef testEchoBodyStringEnum(String body) throws ApiException { + public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable String body) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -394,7 +394,7 @@ public class BodyApi { * @return a {@code String} * @throws ApiException if fails to make API call */ - public String testEchoBodyTagResponseString(Tag tag) throws ApiException { + public String testEchoBodyTagResponseString(@javax.annotation.Nullable Tag tag) throws ApiException { Object localVarPostBody = tag; // create path and map variables diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/api/FormApi.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/api/FormApi.java index 415986eef15..3333e08c6a9 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/api/FormApi.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/api/FormApi.java @@ -43,7 +43,7 @@ public class FormApi { * @return a {@code String} * @throws ApiException if fails to make API call */ - public String testFormIntegerBooleanString(Integer integerForm, Boolean booleanForm, String stringForm) throws ApiException { + public String testFormIntegerBooleanString(@javax.annotation.Nullable Integer integerForm, @javax.annotation.Nullable Boolean booleanForm, @javax.annotation.Nullable String stringForm) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -87,7 +87,7 @@ if (stringForm != null) * @return a {@code String} * @throws ApiException if fails to make API call */ - public String testFormObjectMultipart(TestFormObjectMultipartRequestMarker marker) throws ApiException { + public String testFormObjectMultipart(@javax.annotation.Nonnull TestFormObjectMultipartRequestMarker marker) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'marker' is set @@ -137,7 +137,7 @@ if (stringForm != null) * @return a {@code String} * @throws ApiException if fails to make API call */ - public String testFormOneof(String form1, Integer form2, String form3, Boolean form4, Long id, String name) throws ApiException { + 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 ApiException { Object localVarPostBody = null; // create path and map variables diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/api/HeaderApi.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/api/HeaderApi.java index 78639de689b..7b55d691d62 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/api/HeaderApi.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/api/HeaderApi.java @@ -45,7 +45,7 @@ public class HeaderApi { * @return a {@code String} * @throws ApiException if fails to make API call */ - public String testHeaderIntegerBooleanStringEnums(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader) throws ApiException { + 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 ApiException { Object localVarPostBody = null; // create path and map variables diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/api/PathApi.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/api/PathApi.java index dcb5cce1792..3b3eb374d89 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/api/PathApi.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/api/PathApi.java @@ -44,7 +44,7 @@ public class PathApi { * @return a {@code String} * @throws ApiException if fails to make API call */ - public String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath) throws ApiException { + public String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(@javax.annotation.Nonnull String pathString, @javax.annotation.Nonnull Integer pathInteger, @javax.annotation.Nonnull String enumNonrefStringPath, @javax.annotation.Nonnull StringEnumRef enumRefStringPath) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'pathString' is set diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/api/QueryApi.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/api/QueryApi.java index d626d2c37a1..b0a9c6b4c60 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/api/QueryApi.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/api/QueryApi.java @@ -48,7 +48,7 @@ public class QueryApi { * @return a {@code String} * @throws ApiException if fails to make API call */ - public String testEnumRefString(String enumNonrefStringQuery, StringEnumRef enumRefStringQuery) throws ApiException { + public String testEnumRefString(@javax.annotation.Nullable String enumNonrefStringQuery, @javax.annotation.Nullable StringEnumRef enumRefStringQuery) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -90,7 +90,7 @@ public class QueryApi { * @return a {@code String} * @throws ApiException if fails to make API call */ - public String testQueryDatetimeDateString(OffsetDateTime datetimeQuery, LocalDate dateQuery, String stringQuery) throws ApiException { + public String testQueryDatetimeDateString(@javax.annotation.Nullable OffsetDateTime datetimeQuery, @javax.annotation.Nullable LocalDate dateQuery, @javax.annotation.Nullable String stringQuery) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -133,7 +133,7 @@ public class QueryApi { * @return a {@code String} * @throws ApiException if fails to make API call */ - public String testQueryIntegerBooleanString(Integer integerQuery, Boolean booleanQuery, String stringQuery) throws ApiException { + public String testQueryIntegerBooleanString(@javax.annotation.Nullable Integer integerQuery, @javax.annotation.Nullable Boolean booleanQuery, @javax.annotation.Nullable String stringQuery) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -174,7 +174,7 @@ public class QueryApi { * @return a {@code String} * @throws ApiException if fails to make API call */ - public String testQueryStyleDeepObjectExplodeTrueObject(Pet queryObject) throws ApiException { + public String testQueryStyleDeepObjectExplodeTrueObject(@javax.annotation.Nullable Pet queryObject) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -213,7 +213,7 @@ public class QueryApi { * @return a {@code String} * @throws ApiException if fails to make API call */ - public String testQueryStyleDeepObjectExplodeTrueObjectAllOf(TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws ApiException { + public String testQueryStyleDeepObjectExplodeTrueObjectAllOf(@javax.annotation.Nullable TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -252,7 +252,7 @@ public class QueryApi { * @return a {@code String} * @throws ApiException if fails to make API call */ - public String testQueryStyleFormExplodeFalseArrayInteger(List queryObject) throws ApiException { + public String testQueryStyleFormExplodeFalseArrayInteger(@javax.annotation.Nullable List queryObject) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -291,7 +291,7 @@ public class QueryApi { * @return a {@code String} * @throws ApiException if fails to make API call */ - public String testQueryStyleFormExplodeFalseArrayString(List queryObject) throws ApiException { + public String testQueryStyleFormExplodeFalseArrayString(@javax.annotation.Nullable List queryObject) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -330,7 +330,7 @@ public class QueryApi { * @return a {@code String} * @throws ApiException if fails to make API call */ - public String testQueryStyleFormExplodeTrueArrayString(TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws ApiException { + public String testQueryStyleFormExplodeTrueArrayString(@javax.annotation.Nullable TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -369,7 +369,7 @@ public class QueryApi { * @return a {@code String} * @throws ApiException if fails to make API call */ - public String testQueryStyleFormExplodeTrueObject(Pet queryObject) throws ApiException { + public String testQueryStyleFormExplodeTrueObject(@javax.annotation.Nullable Pet queryObject) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -408,7 +408,7 @@ public class QueryApi { * @return a {@code String} * @throws ApiException if fails to make API call */ - public String testQueryStyleFormExplodeTrueObjectAllOf(DataQuery queryObject) throws ApiException { + public String testQueryStyleFormExplodeTrueObjectAllOf(@javax.annotation.Nullable DataQuery queryObject) throws ApiException { Object localVarPostBody = null; // create path and map variables diff --git a/samples/client/others/java/okhttp-gson-oneOf/src/main/java/org/openapitools/client/api/DefaultApi.java b/samples/client/others/java/okhttp-gson-oneOf/src/main/java/org/openapitools/client/api/DefaultApi.java index b695230ccfe..6055cdd2305 100644 --- a/samples/client/others/java/okhttp-gson-oneOf/src/main/java/org/openapitools/client/api/DefaultApi.java +++ b/samples/client/others/java/okhttp-gson-oneOf/src/main/java/org/openapitools/client/api/DefaultApi.java @@ -85,7 +85,7 @@ public class DefaultApi { 200 OK - */ - public okhttp3.Call myExamplePostCall(MyExamplePostRequest myExamplePostRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call myExamplePostCall(@javax.annotation.Nullable MyExamplePostRequest myExamplePostRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -130,7 +130,7 @@ public class DefaultApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call myExamplePostValidateBeforeCall(MyExamplePostRequest myExamplePostRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call myExamplePostValidateBeforeCall(@javax.annotation.Nullable MyExamplePostRequest myExamplePostRequest, final ApiCallback _callback) throws ApiException { return myExamplePostCall(myExamplePostRequest, _callback); } @@ -147,7 +147,7 @@ public class DefaultApi { 200 OK - */ - public void myExamplePost(MyExamplePostRequest myExamplePostRequest) throws ApiException { + public void myExamplePost(@javax.annotation.Nullable MyExamplePostRequest myExamplePostRequest) throws ApiException { myExamplePostWithHttpInfo(myExamplePostRequest); } @@ -164,7 +164,7 @@ public class DefaultApi { 200 OK - */ - public ApiResponse myExamplePostWithHttpInfo(MyExamplePostRequest myExamplePostRequest) throws ApiException { + public ApiResponse myExamplePostWithHttpInfo(@javax.annotation.Nullable MyExamplePostRequest myExamplePostRequest) throws ApiException { okhttp3.Call localVarCall = myExamplePostValidateBeforeCall(myExamplePostRequest, null); return localVarApiClient.execute(localVarCall); } @@ -183,7 +183,7 @@ public class DefaultApi { 200 OK - */ - public okhttp3.Call myExamplePostAsync(MyExamplePostRequest myExamplePostRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call myExamplePostAsync(@javax.annotation.Nullable MyExamplePostRequest myExamplePostRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = myExamplePostValidateBeforeCall(myExamplePostRequest, _callback); localVarApiClient.executeAsync(localVarCall, _callback); diff --git a/samples/client/others/java/okhttp-gson-streaming/src/main/java/org/openapitools/client/api/PingApi.java b/samples/client/others/java/okhttp-gson-streaming/src/main/java/org/openapitools/client/api/PingApi.java index d7f31107c80..c70fd049472 100644 --- a/samples/client/others/java/okhttp-gson-streaming/src/main/java/org/openapitools/client/api/PingApi.java +++ b/samples/client/others/java/okhttp-gson-streaming/src/main/java/org/openapitools/client/api/PingApi.java @@ -73,7 +73,7 @@ public class PingApi { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call getPingCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPingCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -131,7 +131,7 @@ public class PingApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getPingValidateBeforeCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPingValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling getPing(Async)"); @@ -142,13 +142,13 @@ public class PingApi { } - private InputStream getPingWithHttpInfo(Long petId, String name, String status) throws ApiException { + private InputStream getPingWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { okhttp3.Call localVarCall = getPingValidateBeforeCall(petId, name, status, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.executeStream(localVarCall, localVarReturnType); } - private okhttp3.Call getPingAsync(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPingAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPingValidateBeforeCall(petId, name, status, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -157,11 +157,14 @@ public class PingApi { } public class APIgetPingRequest { + @javax.annotation.Nonnull private final Long petId; + @javax.annotation.Nullable private String name; + @javax.annotation.Nullable private String status; - private APIgetPingRequest(Long petId) { + private APIgetPingRequest(@javax.annotation.Nonnull Long petId) { this.petId = petId; } @@ -170,7 +173,7 @@ public class PingApi { * @param name Updated name of the pet (optional) * @return APIgetPingRequest */ - public APIgetPingRequest name(String name) { + public APIgetPingRequest name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -180,7 +183,7 @@ public class PingApi { * @param status Updated status of the pet (optional) * @return APIgetPingRequest */ - public APIgetPingRequest status(String status) { + public APIgetPingRequest status(@javax.annotation.Nullable String status) { this.status = status; return this; } @@ -260,7 +263,7 @@ public class PingApi { 200 OK - */ - public APIgetPingRequest getPing(Long petId) { + public APIgetPingRequest getPing(@javax.annotation.Nonnull Long petId) { return new APIgetPingRequest(petId); } /** @@ -276,7 +279,7 @@ public class PingApi { 200 OK - */ - public okhttp3.Call postPingCall(SomeObj someObj, final ApiCallback _callback) throws ApiException { + public okhttp3.Call postPingCall(@javax.annotation.Nullable SomeObj someObj, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -322,7 +325,7 @@ public class PingApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call postPingValidateBeforeCall(SomeObj someObj, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postPingValidateBeforeCall(@javax.annotation.Nullable SomeObj someObj, final ApiCallback _callback) throws ApiException { return postPingCall(someObj, _callback); } @@ -340,7 +343,7 @@ public class PingApi { 200 OK - */ - public InputStream postPing(SomeObj someObj) throws ApiException { + public InputStream postPing(@javax.annotation.Nullable SomeObj someObj) throws ApiException { InputStream localVarResp = postPingWithHttpInfo(someObj); return localVarResp; } @@ -358,7 +361,7 @@ public class PingApi { 200 OK - */ - public InputStream postPingWithHttpInfo(SomeObj someObj) throws ApiException { + public InputStream postPingWithHttpInfo(@javax.annotation.Nullable SomeObj someObj) throws ApiException { okhttp3.Call localVarCall = postPingValidateBeforeCall(someObj, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.executeStream(localVarCall, localVarReturnType); @@ -378,7 +381,7 @@ public class PingApi { 200 OK - */ - public okhttp3.Call postPingAsync(SomeObj someObj, final ApiCallback _callback) throws ApiException { + public okhttp3.Call postPingAsync(@javax.annotation.Nullable SomeObj someObj, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = postPingValidateBeforeCall(someObj, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 30a25c3f852..57300ce91d9 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -48,7 +48,7 @@ public class AnotherFakeApi extends BaseApi { * @return Client * @throws ApiException if fails to make API call */ - public Client call123testSpecialTags(Client client) throws ApiException { + public Client call123testSpecialTags(@javax.annotation.Nonnull Client client) throws ApiException { return this.call123testSpecialTags(client, Collections.emptyMap()); } @@ -61,7 +61,7 @@ public class AnotherFakeApi extends BaseApi { * @return Client * @throws ApiException if fails to make API call */ - public Client call123testSpecialTags(Client client, Map additionalHeaders) throws ApiException { + public Client call123testSpecialTags(@javax.annotation.Nonnull Client client, Map additionalHeaders) throws ApiException { Object localVarPostBody = client; // verify the required parameter 'client' is set diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/FakeApi.java index b8a5d0f3795..f804bac8e2a 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/FakeApi.java @@ -197,7 +197,7 @@ public class FakeApi extends BaseApi { * @param header1 header parameter (optional) * @throws ApiException if fails to make API call */ - public void fakeHttpSignatureTest(Pet pet, String query1, String header1) throws ApiException { + public void fakeHttpSignatureTest(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1) throws ApiException { this.fakeHttpSignatureTest(pet, query1, header1, Collections.emptyMap()); } @@ -211,7 +211,7 @@ public class FakeApi extends BaseApi { * @param additionalHeaders additionalHeaders for this call * @throws ApiException if fails to make API call */ - public void fakeHttpSignatureTest(Pet pet, String query1, String header1, Map additionalHeaders) throws ApiException { + public void fakeHttpSignatureTest(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1, Map additionalHeaders) throws ApiException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -274,7 +274,7 @@ public class FakeApi extends BaseApi { * @return Boolean * @throws ApiException if fails to make API call */ - public Boolean fakeOuterBooleanSerialize(Boolean body) throws ApiException { + public Boolean fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body) throws ApiException { return this.fakeOuterBooleanSerialize(body, Collections.emptyMap()); } @@ -287,7 +287,7 @@ public class FakeApi extends BaseApi { * @return Boolean * @throws ApiException if fails to make API call */ - public Boolean fakeOuterBooleanSerialize(Boolean body, Map additionalHeaders) throws ApiException { + public Boolean fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body, Map additionalHeaders) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -343,7 +343,7 @@ public class FakeApi extends BaseApi { * @return OuterComposite * @throws ApiException if fails to make API call */ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException { + public OuterComposite fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite outerComposite) throws ApiException { return this.fakeOuterCompositeSerialize(outerComposite, Collections.emptyMap()); } @@ -356,7 +356,7 @@ public class FakeApi extends BaseApi { * @return OuterComposite * @throws ApiException if fails to make API call */ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite, Map additionalHeaders) throws ApiException { + public OuterComposite fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite outerComposite, Map additionalHeaders) throws ApiException { Object localVarPostBody = outerComposite; // create path and map variables @@ -412,7 +412,7 @@ public class FakeApi extends BaseApi { * @return BigDecimal * @throws ApiException if fails to make API call */ - public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws ApiException { + public BigDecimal fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body) throws ApiException { return this.fakeOuterNumberSerialize(body, Collections.emptyMap()); } @@ -425,7 +425,7 @@ public class FakeApi extends BaseApi { * @return BigDecimal * @throws ApiException if fails to make API call */ - public BigDecimal fakeOuterNumberSerialize(BigDecimal body, Map additionalHeaders) throws ApiException { + public BigDecimal fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body, Map additionalHeaders) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -481,7 +481,7 @@ public class FakeApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String fakeOuterStringSerialize(String body) throws ApiException { + public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws ApiException { return this.fakeOuterStringSerialize(body, Collections.emptyMap()); } @@ -494,7 +494,7 @@ public class FakeApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String fakeOuterStringSerialize(String body, Map additionalHeaders) throws ApiException { + public String fakeOuterStringSerialize(@javax.annotation.Nullable String body, Map additionalHeaders) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -550,7 +550,7 @@ public class FakeApi extends BaseApi { * @return OuterObjectWithEnumProperty * @throws ApiException if fails to make API call */ - public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws ApiException { + public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws ApiException { return this.fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty, Collections.emptyMap()); } @@ -563,7 +563,7 @@ public class FakeApi extends BaseApi { * @return OuterObjectWithEnumProperty * @throws ApiException if fails to make API call */ - public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty, Map additionalHeaders) throws ApiException { + public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty, Map additionalHeaders) throws ApiException { Object localVarPostBody = outerObjectWithEnumProperty; // verify the required parameter 'outerObjectWithEnumProperty' is set @@ -623,7 +623,7 @@ public class FakeApi extends BaseApi { * @param requestBody request body (required) * @throws ApiException if fails to make API call */ - public void testAdditionalPropertiesReference(Map requestBody) throws ApiException { + public void testAdditionalPropertiesReference(@javax.annotation.Nonnull Map requestBody) throws ApiException { this.testAdditionalPropertiesReference(requestBody, Collections.emptyMap()); } @@ -635,7 +635,7 @@ public class FakeApi extends BaseApi { * @param additionalHeaders additionalHeaders for this call * @throws ApiException if fails to make API call */ - public void testAdditionalPropertiesReference(Map requestBody, Map additionalHeaders) throws ApiException { + public void testAdditionalPropertiesReference(@javax.annotation.Nonnull Map requestBody, Map additionalHeaders) throws ApiException { Object localVarPostBody = requestBody; // verify the required parameter 'requestBody' is set @@ -694,7 +694,7 @@ public class FakeApi extends BaseApi { * @param body image to upload (required) * @throws ApiException if fails to make API call */ - public void testBodyWithBinary(File body) throws ApiException { + public void testBodyWithBinary(@javax.annotation.Nullable File body) throws ApiException { this.testBodyWithBinary(body, Collections.emptyMap()); } @@ -706,7 +706,7 @@ public class FakeApi extends BaseApi { * @param additionalHeaders additionalHeaders for this call * @throws ApiException if fails to make API call */ - public void testBodyWithBinary(File body, Map additionalHeaders) throws ApiException { + public void testBodyWithBinary(@javax.annotation.Nullable File body, Map additionalHeaders) throws ApiException { Object localVarPostBody = body; // verify the required parameter 'body' is set @@ -765,7 +765,7 @@ public class FakeApi extends BaseApi { * @param fileSchemaTestClass (required) * @throws ApiException if fails to make API call */ - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException { + public void testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws ApiException { this.testBodyWithFileSchema(fileSchemaTestClass, Collections.emptyMap()); } @@ -777,7 +777,7 @@ public class FakeApi extends BaseApi { * @param additionalHeaders additionalHeaders for this call * @throws ApiException if fails to make API call */ - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass, Map additionalHeaders) throws ApiException { + public void testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass, Map additionalHeaders) throws ApiException { Object localVarPostBody = fileSchemaTestClass; // verify the required parameter 'fileSchemaTestClass' is set @@ -837,7 +837,7 @@ public class FakeApi extends BaseApi { * @param user (required) * @throws ApiException if fails to make API call */ - public void testBodyWithQueryParams(String query, User user) throws ApiException { + public void testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws ApiException { this.testBodyWithQueryParams(query, user, Collections.emptyMap()); } @@ -850,7 +850,7 @@ public class FakeApi extends BaseApi { * @param additionalHeaders additionalHeaders for this call * @throws ApiException if fails to make API call */ - public void testBodyWithQueryParams(String query, User user, Map additionalHeaders) throws ApiException { + public void testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user, Map additionalHeaders) throws ApiException { Object localVarPostBody = user; // verify the required parameter 'query' is set @@ -916,7 +916,7 @@ public class FakeApi extends BaseApi { * @return Client * @throws ApiException if fails to make API call */ - public Client testClientModel(Client client) throws ApiException { + public Client testClientModel(@javax.annotation.Nonnull Client client) throws ApiException { return this.testClientModel(client, Collections.emptyMap()); } @@ -929,7 +929,7 @@ public class FakeApi extends BaseApi { * @return Client * @throws ApiException if fails to make API call */ - public Client testClientModel(Client client, Map additionalHeaders) throws ApiException { + public Client testClientModel(@javax.annotation.Nonnull Client client, Map additionalHeaders) throws ApiException { Object localVarPostBody = client; // verify the required parameter 'client' is set @@ -1002,7 +1002,7 @@ public class FakeApi extends BaseApi { * @param paramCallback None (optional) * @throws ApiException if fails to make API call */ - 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 ApiException { + 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 ApiException { this.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback, Collections.emptyMap()); } @@ -1027,7 +1027,7 @@ public class FakeApi extends BaseApi { * @param additionalHeaders additionalHeaders for this call * @throws ApiException if fails to make API call */ - 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, Map additionalHeaders) throws ApiException { + 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, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'number' is set @@ -1137,7 +1137,7 @@ if (paramCallback != null) * @param enumFormString Form parameter enum test (string) (optional, default to -efg) * @throws ApiException if fails to make API call */ - public void testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws ApiException { + 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 ApiException { this.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString, Collections.emptyMap()); } @@ -1157,7 +1157,7 @@ if (paramCallback != null) * @param additionalHeaders additionalHeaders for this call * @throws ApiException if fails to make API call */ - public void testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString, Map additionalHeaders) throws ApiException { + 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, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -1229,7 +1229,7 @@ if (enumFormString != null) * @param int64Group Integer in group parameters (optional) * @throws ApiException if fails to make API call */ - public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { + 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 ApiException { this.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, Collections.emptyMap()); } @@ -1246,7 +1246,7 @@ if (enumFormString != null) * @param additionalHeaders additionalHeaders for this call * @throws ApiException if fails to make API call */ - public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group, Map additionalHeaders) throws ApiException { + 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, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'requiredStringGroup' is set @@ -1323,7 +1323,7 @@ if (booleanGroup != null) * @param requestBody request body (required) * @throws ApiException if fails to make API call */ - public void testInlineAdditionalProperties(Map requestBody) throws ApiException { + public void testInlineAdditionalProperties(@javax.annotation.Nonnull Map requestBody) throws ApiException { this.testInlineAdditionalProperties(requestBody, Collections.emptyMap()); } @@ -1335,7 +1335,7 @@ if (booleanGroup != null) * @param additionalHeaders additionalHeaders for this call * @throws ApiException if fails to make API call */ - public void testInlineAdditionalProperties(Map requestBody, Map additionalHeaders) throws ApiException { + public void testInlineAdditionalProperties(@javax.annotation.Nonnull Map requestBody, Map additionalHeaders) throws ApiException { Object localVarPostBody = requestBody; // verify the required parameter 'requestBody' is set @@ -1394,7 +1394,7 @@ if (booleanGroup != null) * @param testInlineFreeformAdditionalPropertiesRequest request body (required) * @throws ApiException if fails to make API call */ - public void testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { + public void testInlineFreeformAdditionalProperties(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { this.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest, Collections.emptyMap()); } @@ -1406,7 +1406,7 @@ if (booleanGroup != null) * @param additionalHeaders additionalHeaders for this call * @throws ApiException if fails to make API call */ - public void testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest, Map additionalHeaders) throws ApiException { + public void testInlineFreeformAdditionalProperties(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest, Map additionalHeaders) throws ApiException { Object localVarPostBody = testInlineFreeformAdditionalPropertiesRequest; // verify the required parameter 'testInlineFreeformAdditionalPropertiesRequest' is set @@ -1466,7 +1466,7 @@ if (booleanGroup != null) * @param param2 field2 (required) * @throws ApiException if fails to make API call */ - public void testJsonFormData(String param, String param2) throws ApiException { + public void testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws ApiException { this.testJsonFormData(param, param2, Collections.emptyMap()); } @@ -1479,7 +1479,7 @@ if (booleanGroup != null) * @param additionalHeaders additionalHeaders for this call * @throws ApiException if fails to make API call */ - public void testJsonFormData(String param, String param2, Map additionalHeaders) throws ApiException { + public void testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'param' is set @@ -1547,7 +1547,7 @@ if (param2 != null) * @param childWithNullable request body (required) * @throws ApiException if fails to make API call */ - public void testNullable(ChildWithNullable childWithNullable) throws ApiException { + public void testNullable(@javax.annotation.Nonnull ChildWithNullable childWithNullable) throws ApiException { this.testNullable(childWithNullable, Collections.emptyMap()); } @@ -1559,7 +1559,7 @@ if (param2 != null) * @param additionalHeaders additionalHeaders for this call * @throws ApiException if fails to make API call */ - public void testNullable(ChildWithNullable childWithNullable, Map additionalHeaders) throws ApiException { + public void testNullable(@javax.annotation.Nonnull ChildWithNullable childWithNullable, Map additionalHeaders) throws ApiException { Object localVarPostBody = childWithNullable; // verify the required parameter 'childWithNullable' is set @@ -1624,7 +1624,7 @@ if (param2 != null) * @param language (optional) * @throws ApiException if fails to make API call */ - public void testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws ApiException { + 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 ApiException { this.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language, Collections.emptyMap()); } @@ -1642,7 +1642,7 @@ if (param2 != null) * @param additionalHeaders additionalHeaders for this call * @throws ApiException if fails to make API call */ - public void testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language, Map additionalHeaders) throws ApiException { + 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, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'pipe' is set @@ -1733,7 +1733,7 @@ if (param2 != null) * @param requestBody request body (required) * @throws ApiException if fails to make API call */ - public void testStringMapReference(Map requestBody) throws ApiException { + public void testStringMapReference(@javax.annotation.Nonnull Map requestBody) throws ApiException { this.testStringMapReference(requestBody, Collections.emptyMap()); } @@ -1745,7 +1745,7 @@ if (param2 != null) * @param additionalHeaders additionalHeaders for this call * @throws ApiException if fails to make API call */ - public void testStringMapReference(Map requestBody, Map additionalHeaders) throws ApiException { + public void testStringMapReference(@javax.annotation.Nonnull Map requestBody, Map additionalHeaders) throws ApiException { Object localVarPostBody = requestBody; // verify the required parameter 'requestBody' is set diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index f9fdf22ae6e..b11f1671106 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -48,7 +48,7 @@ public class FakeClassnameTags123Api extends BaseApi { * @return Client * @throws ApiException if fails to make API call */ - public Client testClassname(Client client) throws ApiException { + public Client testClassname(@javax.annotation.Nonnull Client client) throws ApiException { return this.testClassname(client, Collections.emptyMap()); } @@ -61,7 +61,7 @@ public class FakeClassnameTags123Api extends BaseApi { * @return Client * @throws ApiException if fails to make API call */ - public Client testClassname(Client client, Map additionalHeaders) throws ApiException { + public Client testClassname(@javax.annotation.Nonnull Client client, Map additionalHeaders) throws ApiException { Object localVarPostBody = client; // verify the required parameter 'client' is set diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/PetApi.java index d66baadaf4b..c4daa339d2a 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/PetApi.java @@ -50,7 +50,7 @@ public class PetApi extends BaseApi { * @param pet Pet object that needs to be added to the store (required) * @throws ApiException if fails to make API call */ - public void addPet(Pet pet) throws ApiException { + public void addPet(@javax.annotation.Nonnull Pet pet) throws ApiException { this.addPet(pet, Collections.emptyMap()); } @@ -62,7 +62,7 @@ public class PetApi extends BaseApi { * @param additionalHeaders additionalHeaders for this call * @throws ApiException if fails to make API call */ - public void addPet(Pet pet, Map additionalHeaders) throws ApiException { + public void addPet(@javax.annotation.Nonnull Pet pet, Map additionalHeaders) throws ApiException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -122,7 +122,7 @@ public class PetApi extends BaseApi { * @param apiKey (optional) * @throws ApiException if fails to make API call */ - public void deletePet(Long petId, String apiKey) throws ApiException { + public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { this.deletePet(petId, apiKey, Collections.emptyMap()); } @@ -135,7 +135,7 @@ public class PetApi extends BaseApi { * @param additionalHeaders additionalHeaders for this call * @throws ApiException if fails to make API call */ - public void deletePet(Long petId, String apiKey, Map additionalHeaders) throws ApiException { + public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -198,7 +198,7 @@ public class PetApi extends BaseApi { * @return List<Pet> * @throws ApiException if fails to make API call */ - public List findPetsByStatus(List status) throws ApiException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws ApiException { return this.findPetsByStatus(status, Collections.emptyMap()); } @@ -211,7 +211,7 @@ public class PetApi extends BaseApi { * @return List<Pet> * @throws ApiException if fails to make API call */ - public List findPetsByStatus(List status, Map additionalHeaders) throws ApiException { + public List findPetsByStatus(@javax.annotation.Nonnull List status, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'status' is set @@ -275,7 +275,7 @@ public class PetApi extends BaseApi { * @deprecated */ @Deprecated - public Set findPetsByTags(Set tags) throws ApiException { + public Set findPetsByTags(@javax.annotation.Nonnull Set tags) throws ApiException { return this.findPetsByTags(tags, Collections.emptyMap()); } @@ -290,7 +290,7 @@ public class PetApi extends BaseApi { * @deprecated */ @Deprecated - public Set findPetsByTags(Set tags, Map additionalHeaders) throws ApiException { + public Set findPetsByTags(@javax.annotation.Nonnull Set tags, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'tags' is set @@ -352,7 +352,7 @@ public class PetApi extends BaseApi { * @return Pet * @throws ApiException if fails to make API call */ - public Pet getPetById(Long petId) throws ApiException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws ApiException { return this.getPetById(petId, Collections.emptyMap()); } @@ -365,7 +365,7 @@ public class PetApi extends BaseApi { * @return Pet * @throws ApiException if fails to make API call */ - public Pet getPetById(Long petId, Map additionalHeaders) throws ApiException { + public Pet getPetById(@javax.annotation.Nonnull Long petId, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -426,7 +426,7 @@ public class PetApi extends BaseApi { * @param pet Pet object that needs to be added to the store (required) * @throws ApiException if fails to make API call */ - public void updatePet(Pet pet) throws ApiException { + public void updatePet(@javax.annotation.Nonnull Pet pet) throws ApiException { this.updatePet(pet, Collections.emptyMap()); } @@ -438,7 +438,7 @@ public class PetApi extends BaseApi { * @param additionalHeaders additionalHeaders for this call * @throws ApiException if fails to make API call */ - public void updatePet(Pet pet, Map additionalHeaders) throws ApiException { + public void updatePet(@javax.annotation.Nonnull Pet pet, Map additionalHeaders) throws ApiException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -499,7 +499,7 @@ public class PetApi extends BaseApi { * @param status Updated status of the pet (optional) * @throws ApiException if fails to make API call */ - public void updatePetWithForm(Long petId, String name, String status) throws ApiException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { this.updatePetWithForm(petId, name, status, Collections.emptyMap()); } @@ -513,7 +513,7 @@ public class PetApi extends BaseApi { * @param additionalHeaders additionalHeaders for this call * @throws ApiException if fails to make API call */ - public void updatePetWithForm(Long petId, String name, String status, Map additionalHeaders) throws ApiException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -580,7 +580,7 @@ if (status != null) * @return ModelApiResponse * @throws ApiException if fails to make API call */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws ApiException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { return this.uploadFile(petId, additionalMetadata, _file, Collections.emptyMap()); } @@ -595,7 +595,7 @@ if (status != null) * @return ModelApiResponse * @throws ApiException if fails to make API call */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file, Map additionalHeaders) throws ApiException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -663,7 +663,7 @@ if (_file != null) * @return ModelApiResponse * @throws ApiException if fails to make API call */ - public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws ApiException { + public ModelApiResponse uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws ApiException { return this.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata, Collections.emptyMap()); } @@ -678,7 +678,7 @@ if (_file != null) * @return ModelApiResponse * @throws ApiException if fails to make API call */ - public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata, Map additionalHeaders) throws ApiException { + public ModelApiResponse uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'petId' is set diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/StoreApi.java index f38ff9a87c6..4ba6d85826f 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/StoreApi.java @@ -47,7 +47,7 @@ public class StoreApi extends BaseApi { * @param orderId ID of the order that needs to be deleted (required) * @throws ApiException if fails to make API call */ - public void deleteOrder(String orderId) throws ApiException { + public void deleteOrder(@javax.annotation.Nonnull String orderId) throws ApiException { this.deleteOrder(orderId, Collections.emptyMap()); } @@ -59,7 +59,7 @@ public class StoreApi extends BaseApi { * @param additionalHeaders additionalHeaders for this call * @throws ApiException if fails to make API call */ - public void deleteOrder(String orderId, Map additionalHeaders) throws ApiException { + public void deleteOrder(@javax.annotation.Nonnull String orderId, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'orderId' is set @@ -187,7 +187,7 @@ public class StoreApi extends BaseApi { * @return Order * @throws ApiException if fails to make API call */ - public Order getOrderById(Long orderId) throws ApiException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws ApiException { return this.getOrderById(orderId, Collections.emptyMap()); } @@ -200,7 +200,7 @@ public class StoreApi extends BaseApi { * @return Order * @throws ApiException if fails to make API call */ - public Order getOrderById(Long orderId, Map additionalHeaders) throws ApiException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'orderId' is set @@ -262,7 +262,7 @@ public class StoreApi extends BaseApi { * @return Order * @throws ApiException if fails to make API call */ - public Order placeOrder(Order order) throws ApiException { + public Order placeOrder(@javax.annotation.Nonnull Order order) throws ApiException { return this.placeOrder(order, Collections.emptyMap()); } @@ -275,7 +275,7 @@ public class StoreApi extends BaseApi { * @return Order * @throws ApiException if fails to make API call */ - public Order placeOrder(Order order, Map additionalHeaders) throws ApiException { + public Order placeOrder(@javax.annotation.Nonnull Order order, Map additionalHeaders) throws ApiException { Object localVarPostBody = order; // verify the required parameter 'order' is set diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/UserApi.java index 42997e7c6d8..d83afde5b2e 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/UserApi.java @@ -48,7 +48,7 @@ public class UserApi extends BaseApi { * @param user Created user object (required) * @throws ApiException if fails to make API call */ - public void createUser(User user) throws ApiException { + public void createUser(@javax.annotation.Nonnull User user) throws ApiException { this.createUser(user, Collections.emptyMap()); } @@ -60,7 +60,7 @@ public class UserApi extends BaseApi { * @param additionalHeaders additionalHeaders for this call * @throws ApiException if fails to make API call */ - public void createUser(User user, Map additionalHeaders) throws ApiException { + public void createUser(@javax.annotation.Nonnull User user, Map additionalHeaders) throws ApiException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -119,7 +119,7 @@ public class UserApi extends BaseApi { * @param user List of user object (required) * @throws ApiException if fails to make API call */ - public void createUsersWithArrayInput(List user) throws ApiException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List user) throws ApiException { this.createUsersWithArrayInput(user, Collections.emptyMap()); } @@ -131,7 +131,7 @@ public class UserApi extends BaseApi { * @param additionalHeaders additionalHeaders for this call * @throws ApiException if fails to make API call */ - public void createUsersWithArrayInput(List user, Map additionalHeaders) throws ApiException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List user, Map additionalHeaders) throws ApiException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -190,7 +190,7 @@ public class UserApi extends BaseApi { * @param user List of user object (required) * @throws ApiException if fails to make API call */ - public void createUsersWithListInput(List user) throws ApiException { + public void createUsersWithListInput(@javax.annotation.Nonnull List user) throws ApiException { this.createUsersWithListInput(user, Collections.emptyMap()); } @@ -202,7 +202,7 @@ public class UserApi extends BaseApi { * @param additionalHeaders additionalHeaders for this call * @throws ApiException if fails to make API call */ - public void createUsersWithListInput(List user, Map additionalHeaders) throws ApiException { + public void createUsersWithListInput(@javax.annotation.Nonnull List user, Map additionalHeaders) throws ApiException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -261,7 +261,7 @@ public class UserApi extends BaseApi { * @param username The name that needs to be deleted (required) * @throws ApiException if fails to make API call */ - public void deleteUser(String username) throws ApiException { + public void deleteUser(@javax.annotation.Nonnull String username) throws ApiException { this.deleteUser(username, Collections.emptyMap()); } @@ -273,7 +273,7 @@ public class UserApi extends BaseApi { * @param additionalHeaders additionalHeaders for this call * @throws ApiException if fails to make API call */ - public void deleteUser(String username, Map additionalHeaders) throws ApiException { + public void deleteUser(@javax.annotation.Nonnull String username, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -334,7 +334,7 @@ public class UserApi extends BaseApi { * @return User * @throws ApiException if fails to make API call */ - public User getUserByName(String username) throws ApiException { + public User getUserByName(@javax.annotation.Nonnull String username) throws ApiException { return this.getUserByName(username, Collections.emptyMap()); } @@ -347,7 +347,7 @@ public class UserApi extends BaseApi { * @return User * @throws ApiException if fails to make API call */ - public User getUserByName(String username, Map additionalHeaders) throws ApiException { + public User getUserByName(@javax.annotation.Nonnull String username, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -410,7 +410,7 @@ public class UserApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String loginUser(String username, String password) throws ApiException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { return this.loginUser(username, password, Collections.emptyMap()); } @@ -424,7 +424,7 @@ public class UserApi extends BaseApi { * @return String * @throws ApiException if fails to make API call */ - public String loginUser(String username, String password, Map additionalHeaders) throws ApiException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, Map additionalHeaders) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -556,7 +556,7 @@ public class UserApi extends BaseApi { * @param user Updated user object (required) * @throws ApiException if fails to make API call */ - public void updateUser(String username, User user) throws ApiException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { this.updateUser(username, user, Collections.emptyMap()); } @@ -569,7 +569,7 @@ public class UserApi extends BaseApi { * @param additionalHeaders additionalHeaders for this call * @throws ApiException if fails to make API call */ - public void updateUser(String username, User user, Map additionalHeaders) throws ApiException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user, Map additionalHeaders) throws ApiException { Object localVarPostBody = user; // verify the required parameter 'username' is set diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index c2beb534ced..5a187ebd92b 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -30,7 +30,7 @@ public interface AnotherFakeApi extends ApiClient.Api { "Accept: application/json", "uuid_test: {uuidTest}" }) - Client call123testSpecialTags(@Param("uuidTest") UUID uuidTest, Client body); + Client call123testSpecialTags(@Param("uuidTest") @javax.annotation.Nonnull UUID uuidTest, @javax.annotation.Nonnull Client body); /** * To test special tags @@ -46,7 +46,7 @@ public interface AnotherFakeApi extends ApiClient.Api { "Accept: application/json", "uuid_test: {uuidTest}" }) - ApiResponse call123testSpecialTagsWithHttpInfo(@Param("uuidTest") UUID uuidTest, Client body); + ApiResponse call123testSpecialTagsWithHttpInfo(@Param("uuidTest") @javax.annotation.Nonnull UUID uuidTest, @javax.annotation.Nonnull Client body); } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/FakeApi.java index c60382ef5a8..8413d9d8b5e 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/FakeApi.java @@ -34,7 +34,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/xml", "Accept: application/json", }) - void createXmlItem(XmlItem xmlItem); + void createXmlItem(@javax.annotation.Nonnull XmlItem xmlItem); /** * creates an XmlItem @@ -47,7 +47,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/xml", "Accept: application/json", }) - ApiResponse createXmlItemWithHttpInfo(XmlItem xmlItem); + ApiResponse createXmlItemWithHttpInfo(@javax.annotation.Nonnull XmlItem xmlItem); @@ -62,7 +62,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: */*", "Accept: */*", }) - Boolean fakeOuterBooleanSerialize(Boolean body); + Boolean fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body); /** * @@ -76,7 +76,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: */*", "Accept: */*", }) - ApiResponse fakeOuterBooleanSerializeWithHttpInfo(Boolean body); + ApiResponse fakeOuterBooleanSerializeWithHttpInfo(@javax.annotation.Nullable Boolean body); @@ -91,7 +91,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: */*", "Accept: */*", }) - OuterComposite fakeOuterCompositeSerialize(OuterComposite body); + OuterComposite fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite body); /** * @@ -105,7 +105,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: */*", "Accept: */*", }) - ApiResponse fakeOuterCompositeSerializeWithHttpInfo(OuterComposite body); + ApiResponse fakeOuterCompositeSerializeWithHttpInfo(@javax.annotation.Nullable OuterComposite body); @@ -120,7 +120,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: */*", "Accept: */*", }) - BigDecimal fakeOuterNumberSerialize(BigDecimal body); + BigDecimal fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body); /** * @@ -134,7 +134,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: */*", "Accept: */*", }) - ApiResponse fakeOuterNumberSerializeWithHttpInfo(BigDecimal body); + ApiResponse fakeOuterNumberSerializeWithHttpInfo(@javax.annotation.Nullable BigDecimal body); @@ -149,7 +149,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: */*", "Accept: */*", }) - String fakeOuterStringSerialize(String body); + String fakeOuterStringSerialize(@javax.annotation.Nullable String body); /** * @@ -163,7 +163,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: */*", "Accept: */*", }) - ApiResponse fakeOuterStringSerializeWithHttpInfo(String body); + ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body); @@ -177,7 +177,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - void testBodyWithFileSchema(FileSchemaTestClass body); + void testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass body); /** * @@ -190,7 +190,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body); + ApiResponse testBodyWithFileSchemaWithHttpInfo(@javax.annotation.Nonnull FileSchemaTestClass body); @@ -205,7 +205,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - void testBodyWithQueryParams(@Param("query") String query, User body); + void testBodyWithQueryParams(@Param("query") @javax.annotation.Nonnull String query, @javax.annotation.Nonnull User body); /** * @@ -219,7 +219,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse testBodyWithQueryParamsWithHttpInfo(@Param("query") String query, User body); + ApiResponse testBodyWithQueryParamsWithHttpInfo(@Param("query") @javax.annotation.Nonnull String query, @javax.annotation.Nonnull User body); /** @@ -242,7 +242,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - void testBodyWithQueryParams(User body, @QueryMap(encoded=true) TestBodyWithQueryParamsQueryParams queryParams); + void testBodyWithQueryParams(@javax.annotation.Nonnull User body, @QueryMap(encoded=true) TestBodyWithQueryParamsQueryParams queryParams); /** * @@ -261,7 +261,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse testBodyWithQueryParamsWithHttpInfo(User body, @QueryMap(encoded=true) TestBodyWithQueryParamsQueryParams queryParams); + ApiResponse testBodyWithQueryParamsWithHttpInfo(@javax.annotation.Nonnull User body, @QueryMap(encoded=true) TestBodyWithQueryParamsQueryParams queryParams); /** @@ -269,7 +269,7 @@ public interface FakeApi extends ApiClient.Api { * testBodyWithQueryParams method in a fluent style. */ public static class TestBodyWithQueryParamsQueryParams extends HashMap { - public TestBodyWithQueryParamsQueryParams query(final String value) { + public TestBodyWithQueryParamsQueryParams query(@javax.annotation.Nonnull final String value) { put("query", EncodingUtils.encode(value)); return this; } @@ -286,7 +286,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - Client testClientModel(Client body); + Client testClientModel(@javax.annotation.Nonnull Client body); /** * To test \"client\" model @@ -300,7 +300,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse testClientModelWithHttpInfo(Client body); + ApiResponse testClientModelWithHttpInfo(@javax.annotation.Nonnull Client body); @@ -327,7 +327,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/x-www-form-urlencoded", "Accept: application/json", }) - void testEndpointParameters(@Param("number") BigDecimal number, @Param("double") Double _double, @Param("pattern_without_delimiter") String patternWithoutDelimiter, @Param("byte") byte[] _byte, @Param("integer") Integer integer, @Param("int32") Integer int32, @Param("int64") Long int64, @Param("float") Float _float, @Param("string") String string, @Param("binary") File binary, @Param("date") LocalDate date, @Param("dateTime") OffsetDateTime dateTime, @Param("password") String password, @Param("callback") String paramCallback); + void testEndpointParameters(@Param("number") @javax.annotation.Nonnull BigDecimal number, @Param("double") @javax.annotation.Nonnull Double _double, @Param("pattern_without_delimiter") @javax.annotation.Nonnull String patternWithoutDelimiter, @Param("byte") @javax.annotation.Nonnull byte[] _byte, @Param("integer") @javax.annotation.Nullable Integer integer, @Param("int32") @javax.annotation.Nullable Integer int32, @Param("int64") @javax.annotation.Nullable Long int64, @Param("float") @javax.annotation.Nullable Float _float, @Param("string") @javax.annotation.Nullable String string, @Param("binary") @javax.annotation.Nullable File binary, @Param("date") @javax.annotation.Nullable LocalDate date, @Param("dateTime") @javax.annotation.Nullable OffsetDateTime dateTime, @Param("password") @javax.annotation.Nullable String password, @Param("callback") @javax.annotation.Nullable String paramCallback); /** * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -353,7 +353,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/x-www-form-urlencoded", "Accept: application/json", }) - ApiResponse testEndpointParametersWithHttpInfo(@Param("number") BigDecimal number, @Param("double") Double _double, @Param("pattern_without_delimiter") String patternWithoutDelimiter, @Param("byte") byte[] _byte, @Param("integer") Integer integer, @Param("int32") Integer int32, @Param("int64") Long int64, @Param("float") Float _float, @Param("string") String string, @Param("binary") File binary, @Param("date") LocalDate date, @Param("dateTime") OffsetDateTime dateTime, @Param("password") String password, @Param("callback") String paramCallback); + ApiResponse testEndpointParametersWithHttpInfo(@Param("number") @javax.annotation.Nonnull BigDecimal number, @Param("double") @javax.annotation.Nonnull Double _double, @Param("pattern_without_delimiter") @javax.annotation.Nonnull String patternWithoutDelimiter, @Param("byte") @javax.annotation.Nonnull byte[] _byte, @Param("integer") @javax.annotation.Nullable Integer integer, @Param("int32") @javax.annotation.Nullable Integer int32, @Param("int64") @javax.annotation.Nullable Long int64, @Param("float") @javax.annotation.Nullable Float _float, @Param("string") @javax.annotation.Nullable String string, @Param("binary") @javax.annotation.Nullable File binary, @Param("date") @javax.annotation.Nullable LocalDate date, @Param("dateTime") @javax.annotation.Nullable OffsetDateTime dateTime, @Param("password") @javax.annotation.Nullable String password, @Param("callback") @javax.annotation.Nullable String paramCallback); @@ -377,7 +377,7 @@ public interface FakeApi extends ApiClient.Api { "enum_header_string: {enumHeaderString}" }) - void testEnumParameters(@Param("enumHeaderStringArray") List enumHeaderStringArray, @Param("enumHeaderString") String enumHeaderString, @Param("enumQueryStringArray") List enumQueryStringArray, @Param("enumQueryString") String enumQueryString, @Param("enumQueryInteger") Integer enumQueryInteger, @Param("enumQueryDouble") Double enumQueryDouble, @Param("enum_form_string_array") List enumFormStringArray, @Param("enum_form_string") String enumFormString); + void testEnumParameters(@Param("enumHeaderStringArray") @javax.annotation.Nullable List enumHeaderStringArray, @Param("enumHeaderString") @javax.annotation.Nullable String enumHeaderString, @Param("enumQueryStringArray") @javax.annotation.Nullable List enumQueryStringArray, @Param("enumQueryString") @javax.annotation.Nullable String enumQueryString, @Param("enumQueryInteger") @javax.annotation.Nullable Integer enumQueryInteger, @Param("enumQueryDouble") @javax.annotation.Nullable Double enumQueryDouble, @Param("enum_form_string_array") @javax.annotation.Nullable List enumFormStringArray, @Param("enum_form_string") @javax.annotation.Nullable String enumFormString); /** * To test enum parameters @@ -400,7 +400,7 @@ public interface FakeApi extends ApiClient.Api { "enum_header_string: {enumHeaderString}" }) - ApiResponse testEnumParametersWithHttpInfo(@Param("enumHeaderStringArray") List enumHeaderStringArray, @Param("enumHeaderString") String enumHeaderString, @Param("enumQueryStringArray") List enumQueryStringArray, @Param("enumQueryString") String enumQueryString, @Param("enumQueryInteger") Integer enumQueryInteger, @Param("enumQueryDouble") Double enumQueryDouble, @Param("enum_form_string_array") List enumFormStringArray, @Param("enum_form_string") String enumFormString); + ApiResponse testEnumParametersWithHttpInfo(@Param("enumHeaderStringArray") @javax.annotation.Nullable List enumHeaderStringArray, @Param("enumHeaderString") @javax.annotation.Nullable String enumHeaderString, @Param("enumQueryStringArray") @javax.annotation.Nullable List enumQueryStringArray, @Param("enumQueryString") @javax.annotation.Nullable String enumQueryString, @Param("enumQueryInteger") @javax.annotation.Nullable Integer enumQueryInteger, @Param("enumQueryDouble") @javax.annotation.Nullable Double enumQueryDouble, @Param("enum_form_string_array") @javax.annotation.Nullable List enumFormStringArray, @Param("enum_form_string") @javax.annotation.Nullable String enumFormString); /** @@ -432,7 +432,7 @@ public interface FakeApi extends ApiClient.Api { "enum_header_string: {enumHeaderString}" }) - void testEnumParameters(@Param("enumHeaderStringArray") List enumHeaderStringArray, @Param("enumHeaderString") String enumHeaderString, @Param("enum_form_string_array") List enumFormStringArray, @Param("enum_form_string") String enumFormString, @QueryMap(encoded=true) TestEnumParametersQueryParams queryParams); + void testEnumParameters(@Param("enumHeaderStringArray") @javax.annotation.Nullable List enumHeaderStringArray, @Param("enumHeaderString") @javax.annotation.Nullable String enumHeaderString, @Param("enum_form_string_array") @javax.annotation.Nullable List enumFormStringArray, @Param("enum_form_string") @javax.annotation.Nullable String enumFormString, @QueryMap(encoded=true) TestEnumParametersQueryParams queryParams); /** * To test enum parameters @@ -460,7 +460,7 @@ public interface FakeApi extends ApiClient.Api { "enum_header_string: {enumHeaderString}" }) - ApiResponse testEnumParametersWithHttpInfo(@Param("enumHeaderStringArray") List enumHeaderStringArray, @Param("enumHeaderString") String enumHeaderString, @Param("enum_form_string_array") List enumFormStringArray, @Param("enum_form_string") String enumFormString, @QueryMap(encoded=true) TestEnumParametersQueryParams queryParams); + ApiResponse testEnumParametersWithHttpInfo(@Param("enumHeaderStringArray") @javax.annotation.Nullable List enumHeaderStringArray, @Param("enumHeaderString") @javax.annotation.Nullable String enumHeaderString, @Param("enum_form_string_array") @javax.annotation.Nullable List enumFormStringArray, @Param("enum_form_string") @javax.annotation.Nullable String enumFormString, @QueryMap(encoded=true) TestEnumParametersQueryParams queryParams); /** @@ -468,19 +468,19 @@ public interface FakeApi extends ApiClient.Api { * testEnumParameters method in a fluent style. */ public static class TestEnumParametersQueryParams extends HashMap { - public TestEnumParametersQueryParams enumQueryStringArray(final List value) { + public TestEnumParametersQueryParams enumQueryStringArray(@javax.annotation.Nullable final List value) { put("enum_query_string_array", EncodingUtils.encodeCollection(value, "csv")); return this; } - public TestEnumParametersQueryParams enumQueryString(final String value) { + public TestEnumParametersQueryParams enumQueryString(@javax.annotation.Nullable final String value) { put("enum_query_string", EncodingUtils.encode(value)); return this; } - public TestEnumParametersQueryParams enumQueryInteger(final Integer value) { + public TestEnumParametersQueryParams enumQueryInteger(@javax.annotation.Nullable final Integer value) { put("enum_query_integer", EncodingUtils.encode(value)); return this; } - public TestEnumParametersQueryParams enumQueryDouble(final Double value) { + public TestEnumParametersQueryParams enumQueryDouble(@javax.annotation.Nullable final Double value) { put("enum_query_double", EncodingUtils.encode(value)); return this; } @@ -503,7 +503,7 @@ public interface FakeApi extends ApiClient.Api { "boolean_group: {booleanGroup}" }) - void testGroupParameters(@Param("requiredStringGroup") Integer requiredStringGroup, @Param("requiredBooleanGroup") Boolean requiredBooleanGroup, @Param("requiredInt64Group") Long requiredInt64Group, @Param("stringGroup") Integer stringGroup, @Param("booleanGroup") Boolean booleanGroup, @Param("int64Group") Long int64Group); + void testGroupParameters(@Param("requiredStringGroup") @javax.annotation.Nonnull Integer requiredStringGroup, @Param("requiredBooleanGroup") @javax.annotation.Nonnull Boolean requiredBooleanGroup, @Param("requiredInt64Group") @javax.annotation.Nonnull Long requiredInt64Group, @Param("stringGroup") @javax.annotation.Nullable Integer stringGroup, @Param("booleanGroup") @javax.annotation.Nullable Boolean booleanGroup, @Param("int64Group") @javax.annotation.Nullable Long int64Group); /** * Fake endpoint to test group parameters (optional) @@ -523,7 +523,7 @@ public interface FakeApi extends ApiClient.Api { "boolean_group: {booleanGroup}" }) - ApiResponse testGroupParametersWithHttpInfo(@Param("requiredStringGroup") Integer requiredStringGroup, @Param("requiredBooleanGroup") Boolean requiredBooleanGroup, @Param("requiredInt64Group") Long requiredInt64Group, @Param("stringGroup") Integer stringGroup, @Param("booleanGroup") Boolean booleanGroup, @Param("int64Group") Long int64Group); + ApiResponse testGroupParametersWithHttpInfo(@Param("requiredStringGroup") @javax.annotation.Nonnull Integer requiredStringGroup, @Param("requiredBooleanGroup") @javax.annotation.Nonnull Boolean requiredBooleanGroup, @Param("requiredInt64Group") @javax.annotation.Nonnull Long requiredInt64Group, @Param("stringGroup") @javax.annotation.Nullable Integer stringGroup, @Param("booleanGroup") @javax.annotation.Nullable Boolean booleanGroup, @Param("int64Group") @javax.annotation.Nullable Long int64Group); /** @@ -552,7 +552,7 @@ public interface FakeApi extends ApiClient.Api { "boolean_group: {booleanGroup}" }) - void testGroupParameters(@Param("requiredBooleanGroup") Boolean requiredBooleanGroup, @Param("booleanGroup") Boolean booleanGroup, @QueryMap(encoded=true) TestGroupParametersQueryParams queryParams); + void testGroupParameters(@Param("requiredBooleanGroup") @javax.annotation.Nonnull Boolean requiredBooleanGroup, @Param("booleanGroup") @javax.annotation.Nullable Boolean booleanGroup, @QueryMap(encoded=true) TestGroupParametersQueryParams queryParams); /** * Fake endpoint to test group parameters (optional) @@ -577,7 +577,7 @@ public interface FakeApi extends ApiClient.Api { "boolean_group: {booleanGroup}" }) - ApiResponse testGroupParametersWithHttpInfo(@Param("requiredBooleanGroup") Boolean requiredBooleanGroup, @Param("booleanGroup") Boolean booleanGroup, @QueryMap(encoded=true) TestGroupParametersQueryParams queryParams); + ApiResponse testGroupParametersWithHttpInfo(@Param("requiredBooleanGroup") @javax.annotation.Nonnull Boolean requiredBooleanGroup, @Param("booleanGroup") @javax.annotation.Nullable Boolean booleanGroup, @QueryMap(encoded=true) TestGroupParametersQueryParams queryParams); /** @@ -585,19 +585,19 @@ public interface FakeApi extends ApiClient.Api { * testGroupParameters method in a fluent style. */ public static class TestGroupParametersQueryParams extends HashMap { - public TestGroupParametersQueryParams requiredStringGroup(final Integer value) { + public TestGroupParametersQueryParams requiredStringGroup(@javax.annotation.Nonnull final Integer value) { put("required_string_group", EncodingUtils.encode(value)); return this; } - public TestGroupParametersQueryParams requiredInt64Group(final Long value) { + public TestGroupParametersQueryParams requiredInt64Group(@javax.annotation.Nonnull final Long value) { put("required_int64_group", EncodingUtils.encode(value)); return this; } - public TestGroupParametersQueryParams stringGroup(final Integer value) { + public TestGroupParametersQueryParams stringGroup(@javax.annotation.Nullable final Integer value) { put("string_group", EncodingUtils.encode(value)); return this; } - public TestGroupParametersQueryParams int64Group(final Long value) { + public TestGroupParametersQueryParams int64Group(@javax.annotation.Nullable final Long value) { put("int64_group", EncodingUtils.encode(value)); return this; } @@ -613,7 +613,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - void testInlineAdditionalProperties(Map param); + void testInlineAdditionalProperties(@javax.annotation.Nonnull Map param); /** * test inline additionalProperties @@ -626,7 +626,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map param); + ApiResponse testInlineAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull Map param); @@ -641,7 +641,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/x-www-form-urlencoded", "Accept: application/json", }) - void testJsonFormData(@Param("param") String param, @Param("param2") String param2); + void testJsonFormData(@Param("param") @javax.annotation.Nonnull String param, @Param("param2") @javax.annotation.Nonnull String param2); /** * test json serialization of form data @@ -655,7 +655,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/x-www-form-urlencoded", "Accept: application/json", }) - ApiResponse testJsonFormDataWithHttpInfo(@Param("param") String param, @Param("param2") String param2); + ApiResponse testJsonFormDataWithHttpInfo(@Param("param") @javax.annotation.Nonnull String param, @Param("param2") @javax.annotation.Nonnull String param2); @@ -672,7 +672,7 @@ public interface FakeApi extends ApiClient.Api { @Headers({ "Accept: application/json", }) - void testQueryParameterCollectionFormat(@Param("pipe") List pipe, @Param("ioutil") List ioutil, @Param("http") List http, @Param("url") List url, @Param("context") List context); + void testQueryParameterCollectionFormat(@Param("pipe") @javax.annotation.Nonnull List pipe, @Param("ioutil") @javax.annotation.Nonnull List ioutil, @Param("http") @javax.annotation.Nonnull List http, @Param("url") @javax.annotation.Nonnull List url, @Param("context") @javax.annotation.Nonnull List context); /** * @@ -688,7 +688,7 @@ public interface FakeApi extends ApiClient.Api { @Headers({ "Accept: application/json", }) - ApiResponse testQueryParameterCollectionFormatWithHttpInfo(@Param("pipe") List pipe, @Param("ioutil") List ioutil, @Param("http") List http, @Param("url") List url, @Param("context") List context); + ApiResponse testQueryParameterCollectionFormatWithHttpInfo(@Param("pipe") @javax.annotation.Nonnull List pipe, @Param("ioutil") @javax.annotation.Nonnull List ioutil, @Param("http") @javax.annotation.Nonnull List http, @Param("url") @javax.annotation.Nonnull List url, @Param("context") @javax.annotation.Nonnull List context); /** @@ -742,23 +742,23 @@ public interface FakeApi extends ApiClient.Api { * testQueryParameterCollectionFormat method in a fluent style. */ public static class TestQueryParameterCollectionFormatQueryParams extends HashMap { - public TestQueryParameterCollectionFormatQueryParams pipe(final List value) { + public TestQueryParameterCollectionFormatQueryParams pipe(@javax.annotation.Nonnull final List value) { put("pipe", EncodingUtils.encodeCollection(value, "csv")); return this; } - public TestQueryParameterCollectionFormatQueryParams ioutil(final List value) { + public TestQueryParameterCollectionFormatQueryParams ioutil(@javax.annotation.Nonnull final List value) { put("ioutil", EncodingUtils.encodeCollection(value, "csv")); return this; } - public TestQueryParameterCollectionFormatQueryParams http(final List value) { + public TestQueryParameterCollectionFormatQueryParams http(@javax.annotation.Nonnull final List value) { put("http", EncodingUtils.encodeCollection(value, "ssv")); return this; } - public TestQueryParameterCollectionFormatQueryParams url(final List value) { + public TestQueryParameterCollectionFormatQueryParams url(@javax.annotation.Nonnull final List value) { put("url", EncodingUtils.encodeCollection(value, "csv")); return this; } - public TestQueryParameterCollectionFormatQueryParams context(final List value) { + public TestQueryParameterCollectionFormatQueryParams context(@javax.annotation.Nonnull final List value) { put("context", EncodingUtils.encodeCollection(value, "multi")); return this; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 5e81bb5434f..2ca634132e8 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -27,7 +27,7 @@ public interface FakeClassnameTags123Api extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - Client testClassname(Client body); + Client testClassname(@javax.annotation.Nonnull Client body); /** * To test class name in snake case @@ -41,7 +41,7 @@ public interface FakeClassnameTags123Api extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse testClassnameWithHttpInfo(Client body); + ApiResponse testClassnameWithHttpInfo(@javax.annotation.Nonnull Client body); } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/PetApi.java index a4e3dc4ad45..f051ff5e945 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/PetApi.java @@ -29,7 +29,7 @@ public interface PetApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - void addPet(Pet body); + void addPet(@javax.annotation.Nonnull Pet body); /** * Add a new pet to the store @@ -42,7 +42,7 @@ public interface PetApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse addPetWithHttpInfo(Pet body); + ApiResponse addPetWithHttpInfo(@javax.annotation.Nonnull Pet body); @@ -57,7 +57,7 @@ public interface PetApi extends ApiClient.Api { "Accept: application/json", "api_key: {apiKey}" }) - void deletePet(@Param("petId") Long petId, @Param("apiKey") String apiKey); + void deletePet(@Param("petId") @javax.annotation.Nonnull Long petId, @Param("apiKey") @javax.annotation.Nullable String apiKey); /** * Deletes a pet @@ -71,7 +71,7 @@ public interface PetApi extends ApiClient.Api { "Accept: application/json", "api_key: {apiKey}" }) - ApiResponse deletePetWithHttpInfo(@Param("petId") Long petId, @Param("apiKey") String apiKey); + ApiResponse deletePetWithHttpInfo(@Param("petId") @javax.annotation.Nonnull Long petId, @Param("apiKey") @javax.annotation.Nullable String apiKey); @@ -85,7 +85,7 @@ public interface PetApi extends ApiClient.Api { @Headers({ "Accept: application/json,application/xml", }) - List findPetsByStatus(@Param("status") List status); + List findPetsByStatus(@Param("status") @javax.annotation.Nonnull List status); /** * Finds Pets by status @@ -98,7 +98,7 @@ public interface PetApi extends ApiClient.Api { @Headers({ "Accept: application/json,application/xml", }) - ApiResponse> findPetsByStatusWithHttpInfo(@Param("status") List status); + ApiResponse> findPetsByStatusWithHttpInfo(@Param("status") @javax.annotation.Nonnull List status); /** @@ -146,7 +146,7 @@ public interface PetApi extends ApiClient.Api { * findPetsByStatus method in a fluent style. */ public static class FindPetsByStatusQueryParams extends HashMap { - public FindPetsByStatusQueryParams status(final List value) { + public FindPetsByStatusQueryParams status(@javax.annotation.Nonnull final List value) { put("status", EncodingUtils.encodeCollection(value, "csv")); return this; } @@ -164,7 +164,7 @@ public interface PetApi extends ApiClient.Api { @Headers({ "Accept: application/json,application/xml", }) - Set findPetsByTags(@Param("tags") Set tags); + Set findPetsByTags(@Param("tags") @javax.annotation.Nonnull Set tags); /** * Finds Pets by tags @@ -179,7 +179,7 @@ public interface PetApi extends ApiClient.Api { @Headers({ "Accept: application/json,application/xml", }) - ApiResponse> findPetsByTagsWithHttpInfo(@Param("tags") Set tags); + ApiResponse> findPetsByTagsWithHttpInfo(@Param("tags") @javax.annotation.Nonnull Set tags); /** @@ -231,7 +231,7 @@ public interface PetApi extends ApiClient.Api { * findPetsByTags method in a fluent style. */ public static class FindPetsByTagsQueryParams extends HashMap { - public FindPetsByTagsQueryParams tags(final Set value) { + public FindPetsByTagsQueryParams tags(@javax.annotation.Nonnull final Set value) { put("tags", EncodingUtils.encodeCollection(value, "csv")); return this; } @@ -247,7 +247,7 @@ public interface PetApi extends ApiClient.Api { @Headers({ "Accept: application/json,application/xml", }) - Pet getPetById(@Param("petId") Long petId); + Pet getPetById(@Param("petId") @javax.annotation.Nonnull Long petId); /** * Find pet by ID @@ -260,7 +260,7 @@ public interface PetApi extends ApiClient.Api { @Headers({ "Accept: application/json,application/xml", }) - ApiResponse getPetByIdWithHttpInfo(@Param("petId") Long petId); + ApiResponse getPetByIdWithHttpInfo(@Param("petId") @javax.annotation.Nonnull Long petId); @@ -274,7 +274,7 @@ public interface PetApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - void updatePet(Pet body); + void updatePet(@javax.annotation.Nonnull Pet body); /** * Update an existing pet @@ -287,7 +287,7 @@ public interface PetApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse updatePetWithHttpInfo(Pet body); + ApiResponse updatePetWithHttpInfo(@javax.annotation.Nonnull Pet body); @@ -303,7 +303,7 @@ public interface PetApi extends ApiClient.Api { "Content-Type: application/x-www-form-urlencoded", "Accept: application/json", }) - void updatePetWithForm(@Param("petId") Long petId, @Param("name") String name, @Param("status") String status); + void updatePetWithForm(@Param("petId") @javax.annotation.Nonnull Long petId, @Param("name") @javax.annotation.Nullable String name, @Param("status") @javax.annotation.Nullable String status); /** * Updates a pet in the store with form data @@ -318,7 +318,7 @@ public interface PetApi extends ApiClient.Api { "Content-Type: application/x-www-form-urlencoded", "Accept: application/json", }) - ApiResponse updatePetWithFormWithHttpInfo(@Param("petId") Long petId, @Param("name") String name, @Param("status") String status); + ApiResponse updatePetWithFormWithHttpInfo(@Param("petId") @javax.annotation.Nonnull Long petId, @Param("name") @javax.annotation.Nullable String name, @Param("status") @javax.annotation.Nullable String status); @@ -335,7 +335,7 @@ public interface PetApi extends ApiClient.Api { "Content-Type: multipart/form-data", "Accept: application/json", }) - ModelApiResponse uploadFile(@Param("petId") Long petId, @Param("additionalMetadata") String additionalMetadata, @Param("file") File file); + ModelApiResponse uploadFile(@Param("petId") @javax.annotation.Nonnull Long petId, @Param("additionalMetadata") @javax.annotation.Nullable String additionalMetadata, @Param("file") @javax.annotation.Nullable File file); /** * uploads an image @@ -351,7 +351,7 @@ public interface PetApi extends ApiClient.Api { "Content-Type: multipart/form-data", "Accept: application/json", }) - ApiResponse uploadFileWithHttpInfo(@Param("petId") Long petId, @Param("additionalMetadata") String additionalMetadata, @Param("file") File file); + ApiResponse uploadFileWithHttpInfo(@Param("petId") @javax.annotation.Nonnull Long petId, @Param("additionalMetadata") @javax.annotation.Nullable String additionalMetadata, @Param("file") @javax.annotation.Nullable File file); @@ -368,7 +368,7 @@ public interface PetApi extends ApiClient.Api { "Content-Type: multipart/form-data", "Accept: application/json", }) - ModelApiResponse uploadFileWithRequiredFile(@Param("petId") Long petId, @Param("requiredFile") File requiredFile, @Param("additionalMetadata") String additionalMetadata); + ModelApiResponse uploadFileWithRequiredFile(@Param("petId") @javax.annotation.Nonnull Long petId, @Param("requiredFile") @javax.annotation.Nonnull File requiredFile, @Param("additionalMetadata") @javax.annotation.Nullable String additionalMetadata); /** * uploads an image (required) @@ -384,7 +384,7 @@ public interface PetApi extends ApiClient.Api { "Content-Type: multipart/form-data", "Accept: application/json", }) - ApiResponse uploadFileWithRequiredFileWithHttpInfo(@Param("petId") Long petId, @Param("requiredFile") File requiredFile, @Param("additionalMetadata") String additionalMetadata); + ApiResponse uploadFileWithRequiredFileWithHttpInfo(@Param("petId") @javax.annotation.Nonnull Long petId, @Param("requiredFile") @javax.annotation.Nonnull File requiredFile, @Param("additionalMetadata") @javax.annotation.Nullable String additionalMetadata); } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/StoreApi.java index 531c928aee2..975ab4ce6ae 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/StoreApi.java @@ -25,7 +25,7 @@ public interface StoreApi extends ApiClient.Api { @Headers({ "Accept: application/json", }) - void deleteOrder(@Param("orderId") String orderId); + void deleteOrder(@Param("orderId") @javax.annotation.Nonnull String orderId); /** * Delete purchase order by ID @@ -37,7 +37,7 @@ public interface StoreApi extends ApiClient.Api { @Headers({ "Accept: application/json", }) - ApiResponse deleteOrderWithHttpInfo(@Param("orderId") String orderId); + ApiResponse deleteOrderWithHttpInfo(@Param("orderId") @javax.annotation.Nonnull String orderId); @@ -76,7 +76,7 @@ public interface StoreApi extends ApiClient.Api { @Headers({ "Accept: application/json,application/xml", }) - Order getOrderById(@Param("orderId") Long orderId); + Order getOrderById(@Param("orderId") @javax.annotation.Nonnull Long orderId); /** * Find purchase order by ID @@ -89,7 +89,7 @@ public interface StoreApi extends ApiClient.Api { @Headers({ "Accept: application/json,application/xml", }) - ApiResponse getOrderByIdWithHttpInfo(@Param("orderId") Long orderId); + ApiResponse getOrderByIdWithHttpInfo(@Param("orderId") @javax.annotation.Nonnull Long orderId); @@ -104,7 +104,7 @@ public interface StoreApi extends ApiClient.Api { "Content-Type: */*", "Accept: application/json,application/xml", }) - Order placeOrder(Order body); + Order placeOrder(@javax.annotation.Nonnull Order body); /** * Place an order for a pet @@ -118,7 +118,7 @@ public interface StoreApi extends ApiClient.Api { "Content-Type: */*", "Accept: application/json,application/xml", }) - ApiResponse placeOrderWithHttpInfo(Order body); + ApiResponse placeOrderWithHttpInfo(@javax.annotation.Nonnull Order body); } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/UserApi.java index 7a77049d8c6..83bc88d1d85 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/UserApi.java @@ -27,7 +27,7 @@ public interface UserApi extends ApiClient.Api { "Content-Type: */*", "Accept: application/json", }) - void createUser(User body); + void createUser(@javax.annotation.Nonnull User body); /** * Create user @@ -40,7 +40,7 @@ public interface UserApi extends ApiClient.Api { "Content-Type: */*", "Accept: application/json", }) - ApiResponse createUserWithHttpInfo(User body); + ApiResponse createUserWithHttpInfo(@javax.annotation.Nonnull User body); @@ -54,7 +54,7 @@ public interface UserApi extends ApiClient.Api { "Content-Type: */*", "Accept: application/json", }) - void createUsersWithArrayInput(List body); + void createUsersWithArrayInput(@javax.annotation.Nonnull List body); /** * Creates list of users with given input array @@ -67,7 +67,7 @@ public interface UserApi extends ApiClient.Api { "Content-Type: */*", "Accept: application/json", }) - ApiResponse createUsersWithArrayInputWithHttpInfo(List body); + ApiResponse createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List body); @@ -81,7 +81,7 @@ public interface UserApi extends ApiClient.Api { "Content-Type: */*", "Accept: application/json", }) - void createUsersWithListInput(List body); + void createUsersWithListInput(@javax.annotation.Nonnull List body); /** * Creates list of users with given input array @@ -94,7 +94,7 @@ public interface UserApi extends ApiClient.Api { "Content-Type: */*", "Accept: application/json", }) - ApiResponse createUsersWithListInputWithHttpInfo(List body); + ApiResponse createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List body); @@ -107,7 +107,7 @@ public interface UserApi extends ApiClient.Api { @Headers({ "Accept: application/json", }) - void deleteUser(@Param("username") String username); + void deleteUser(@Param("username") @javax.annotation.Nonnull String username); /** * Delete user @@ -119,7 +119,7 @@ public interface UserApi extends ApiClient.Api { @Headers({ "Accept: application/json", }) - ApiResponse deleteUserWithHttpInfo(@Param("username") String username); + ApiResponse deleteUserWithHttpInfo(@Param("username") @javax.annotation.Nonnull String username); @@ -133,7 +133,7 @@ public interface UserApi extends ApiClient.Api { @Headers({ "Accept: application/json,application/xml", }) - User getUserByName(@Param("username") String username); + User getUserByName(@Param("username") @javax.annotation.Nonnull String username); /** * Get user by user name @@ -146,7 +146,7 @@ public interface UserApi extends ApiClient.Api { @Headers({ "Accept: application/json,application/xml", }) - ApiResponse getUserByNameWithHttpInfo(@Param("username") String username); + ApiResponse getUserByNameWithHttpInfo(@Param("username") @javax.annotation.Nonnull String username); @@ -161,7 +161,7 @@ public interface UserApi extends ApiClient.Api { @Headers({ "Accept: application/json,application/xml", }) - String loginUser(@Param("username") String username, @Param("password") String password); + String loginUser(@Param("username") @javax.annotation.Nonnull String username, @Param("password") @javax.annotation.Nonnull String password); /** * Logs user into the system @@ -175,7 +175,7 @@ public interface UserApi extends ApiClient.Api { @Headers({ "Accept: application/json,application/xml", }) - ApiResponse loginUserWithHttpInfo(@Param("username") String username, @Param("password") String password); + ApiResponse loginUserWithHttpInfo(@Param("username") @javax.annotation.Nonnull String username, @Param("password") @javax.annotation.Nonnull String password); /** @@ -225,11 +225,11 @@ public interface UserApi extends ApiClient.Api { * loginUser method in a fluent style. */ public static class LoginUserQueryParams extends HashMap { - public LoginUserQueryParams username(final String value) { + public LoginUserQueryParams username(@javax.annotation.Nonnull final String value) { put("username", EncodingUtils.encode(value)); return this; } - public LoginUserQueryParams password(final String value) { + public LoginUserQueryParams password(@javax.annotation.Nonnull final String value) { put("password", EncodingUtils.encode(value)); return this; } @@ -269,7 +269,7 @@ public interface UserApi extends ApiClient.Api { "Content-Type: */*", "Accept: application/json", }) - void updateUser(@Param("username") String username, User body); + void updateUser(@Param("username") @javax.annotation.Nonnull String username, @javax.annotation.Nonnull User body); /** * Updated user @@ -283,7 +283,7 @@ public interface UserApi extends ApiClient.Api { "Content-Type: */*", "Accept: application/json", }) - ApiResponse updateUserWithHttpInfo(@Param("username") String username, User body); + ApiResponse updateUserWithHttpInfo(@Param("username") @javax.annotation.Nonnull String username, @javax.annotation.Nonnull User body); } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 47094b2df96..30d6c272e8c 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -27,7 +27,7 @@ public interface AnotherFakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - Client call123testSpecialTags(Client client); + Client call123testSpecialTags(@javax.annotation.Nonnull Client client); /** * To test special tags @@ -41,7 +41,7 @@ public interface AnotherFakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse call123testSpecialTagsWithHttpInfo(Client client); + ApiResponse call123testSpecialTagsWithHttpInfo(@javax.annotation.Nonnull Client client); } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeApi.java index a807c6ba5c4..698fe8c35be 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeApi.java @@ -93,7 +93,7 @@ public interface FakeApi extends ApiClient.Api { "Accept: application/json", "header_1: {header1}" }) - void fakeHttpSignatureTest(Pet pet, @Param("query1") String query1, @Param("header1") String header1); + void fakeHttpSignatureTest(@javax.annotation.Nonnull Pet pet, @Param("query1") @javax.annotation.Nullable String query1, @Param("header1") @javax.annotation.Nullable String header1); /** * test http signature authentication @@ -109,7 +109,7 @@ public interface FakeApi extends ApiClient.Api { "Accept: application/json", "header_1: {header1}" }) - ApiResponse fakeHttpSignatureTestWithHttpInfo(Pet pet, @Param("query1") String query1, @Param("header1") String header1); + ApiResponse fakeHttpSignatureTestWithHttpInfo(@javax.annotation.Nonnull Pet pet, @Param("query1") @javax.annotation.Nullable String query1, @Param("header1") @javax.annotation.Nullable String header1); /** @@ -134,7 +134,7 @@ public interface FakeApi extends ApiClient.Api { "Accept: application/json", "header_1: {header1}" }) - void fakeHttpSignatureTest(Pet pet, @Param("header1") String header1, @QueryMap(encoded=true) FakeHttpSignatureTestQueryParams queryParams); + void fakeHttpSignatureTest(@javax.annotation.Nonnull Pet pet, @Param("header1") @javax.annotation.Nullable String header1, @QueryMap(encoded=true) FakeHttpSignatureTestQueryParams queryParams); /** * test http signature authentication @@ -155,7 +155,7 @@ public interface FakeApi extends ApiClient.Api { "Accept: application/json", "header_1: {header1}" }) - ApiResponse fakeHttpSignatureTestWithHttpInfo(Pet pet, @Param("header1") String header1, @QueryMap(encoded=true) FakeHttpSignatureTestQueryParams queryParams); + ApiResponse fakeHttpSignatureTestWithHttpInfo(@javax.annotation.Nonnull Pet pet, @Param("header1") @javax.annotation.Nullable String header1, @QueryMap(encoded=true) FakeHttpSignatureTestQueryParams queryParams); /** @@ -163,7 +163,7 @@ public interface FakeApi extends ApiClient.Api { * fakeHttpSignatureTest method in a fluent style. */ public static class FakeHttpSignatureTestQueryParams extends HashMap { - public FakeHttpSignatureTestQueryParams query1(final String value) { + public FakeHttpSignatureTestQueryParams query1(@javax.annotation.Nullable final String value) { put("query_1", EncodingUtils.encode(value)); return this; } @@ -180,7 +180,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: */*", }) - Boolean fakeOuterBooleanSerialize(Boolean body); + Boolean fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body); /** * @@ -194,7 +194,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: */*", }) - ApiResponse fakeOuterBooleanSerializeWithHttpInfo(Boolean body); + ApiResponse fakeOuterBooleanSerializeWithHttpInfo(@javax.annotation.Nullable Boolean body); @@ -209,7 +209,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: */*", }) - OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite); + OuterComposite fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite outerComposite); /** * @@ -223,7 +223,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: */*", }) - ApiResponse fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite); + ApiResponse fakeOuterCompositeSerializeWithHttpInfo(@javax.annotation.Nullable OuterComposite outerComposite); @@ -238,7 +238,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: */*", }) - BigDecimal fakeOuterNumberSerialize(BigDecimal body); + BigDecimal fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body); /** * @@ -252,7 +252,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: */*", }) - ApiResponse fakeOuterNumberSerializeWithHttpInfo(BigDecimal body); + ApiResponse fakeOuterNumberSerializeWithHttpInfo(@javax.annotation.Nullable BigDecimal body); @@ -267,7 +267,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: */*", }) - String fakeOuterStringSerialize(String body); + String fakeOuterStringSerialize(@javax.annotation.Nullable String body); /** * @@ -281,7 +281,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: */*", }) - ApiResponse fakeOuterStringSerializeWithHttpInfo(String body); + ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body); @@ -296,7 +296,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: */*", }) - OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty); + OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty); /** * @@ -310,7 +310,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: */*", }) - ApiResponse fakePropertyEnumIntegerSerializeWithHttpInfo(OuterObjectWithEnumProperty outerObjectWithEnumProperty); + ApiResponse fakePropertyEnumIntegerSerializeWithHttpInfo(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty); @@ -324,7 +324,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - void testAdditionalPropertiesReference(Map requestBody); + void testAdditionalPropertiesReference(@javax.annotation.Nonnull Map requestBody); /** * test referenced additionalProperties @@ -337,7 +337,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse testAdditionalPropertiesReferenceWithHttpInfo(Map requestBody); + ApiResponse testAdditionalPropertiesReferenceWithHttpInfo(@javax.annotation.Nonnull Map requestBody); @@ -351,7 +351,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: image/png", "Accept: application/json", }) - void testBodyWithBinary(File body); + void testBodyWithBinary(@javax.annotation.Nullable File body); /** * @@ -364,7 +364,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: image/png", "Accept: application/json", }) - ApiResponse testBodyWithBinaryWithHttpInfo(File body); + ApiResponse testBodyWithBinaryWithHttpInfo(@javax.annotation.Nullable File body); @@ -378,7 +378,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass); + void testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass); /** * @@ -391,7 +391,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass); + ApiResponse testBodyWithFileSchemaWithHttpInfo(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass); @@ -406,7 +406,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - void testBodyWithQueryParams(@Param("query") String query, User user); + void testBodyWithQueryParams(@Param("query") @javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user); /** * @@ -420,7 +420,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse testBodyWithQueryParamsWithHttpInfo(@Param("query") String query, User user); + ApiResponse testBodyWithQueryParamsWithHttpInfo(@Param("query") @javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user); /** @@ -443,7 +443,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - void testBodyWithQueryParams(User user, @QueryMap(encoded=true) TestBodyWithQueryParamsQueryParams queryParams); + void testBodyWithQueryParams(@javax.annotation.Nonnull User user, @QueryMap(encoded=true) TestBodyWithQueryParamsQueryParams queryParams); /** * @@ -462,7 +462,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse testBodyWithQueryParamsWithHttpInfo(User user, @QueryMap(encoded=true) TestBodyWithQueryParamsQueryParams queryParams); + ApiResponse testBodyWithQueryParamsWithHttpInfo(@javax.annotation.Nonnull User user, @QueryMap(encoded=true) TestBodyWithQueryParamsQueryParams queryParams); /** @@ -470,7 +470,7 @@ public interface FakeApi extends ApiClient.Api { * testBodyWithQueryParams method in a fluent style. */ public static class TestBodyWithQueryParamsQueryParams extends HashMap { - public TestBodyWithQueryParamsQueryParams query(final String value) { + public TestBodyWithQueryParamsQueryParams query(@javax.annotation.Nonnull final String value) { put("query", EncodingUtils.encode(value)); return this; } @@ -487,7 +487,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - Client testClientModel(Client client); + Client testClientModel(@javax.annotation.Nonnull Client client); /** * To test \"client\" model @@ -501,7 +501,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse testClientModelWithHttpInfo(Client client); + ApiResponse testClientModelWithHttpInfo(@javax.annotation.Nonnull Client client); @@ -528,7 +528,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/x-www-form-urlencoded", "Accept: application/json", }) - void testEndpointParameters(@Param("number") BigDecimal number, @Param("double") Double _double, @Param("pattern_without_delimiter") String patternWithoutDelimiter, @Param("byte") byte[] _byte, @Param("integer") Integer integer, @Param("int32") Integer int32, @Param("int64") Long int64, @Param("float") Float _float, @Param("string") String string, @Param("binary") File binary, @Param("date") LocalDate date, @Param("dateTime") OffsetDateTime dateTime, @Param("password") String password, @Param("callback") String paramCallback); + void testEndpointParameters(@Param("number") @javax.annotation.Nonnull BigDecimal number, @Param("double") @javax.annotation.Nonnull Double _double, @Param("pattern_without_delimiter") @javax.annotation.Nonnull String patternWithoutDelimiter, @Param("byte") @javax.annotation.Nonnull byte[] _byte, @Param("integer") @javax.annotation.Nullable Integer integer, @Param("int32") @javax.annotation.Nullable Integer int32, @Param("int64") @javax.annotation.Nullable Long int64, @Param("float") @javax.annotation.Nullable Float _float, @Param("string") @javax.annotation.Nullable String string, @Param("binary") @javax.annotation.Nullable File binary, @Param("date") @javax.annotation.Nullable LocalDate date, @Param("dateTime") @javax.annotation.Nullable OffsetDateTime dateTime, @Param("password") @javax.annotation.Nullable String password, @Param("callback") @javax.annotation.Nullable String paramCallback); /** * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -554,7 +554,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/x-www-form-urlencoded", "Accept: application/json", }) - ApiResponse testEndpointParametersWithHttpInfo(@Param("number") BigDecimal number, @Param("double") Double _double, @Param("pattern_without_delimiter") String patternWithoutDelimiter, @Param("byte") byte[] _byte, @Param("integer") Integer integer, @Param("int32") Integer int32, @Param("int64") Long int64, @Param("float") Float _float, @Param("string") String string, @Param("binary") File binary, @Param("date") LocalDate date, @Param("dateTime") OffsetDateTime dateTime, @Param("password") String password, @Param("callback") String paramCallback); + ApiResponse testEndpointParametersWithHttpInfo(@Param("number") @javax.annotation.Nonnull BigDecimal number, @Param("double") @javax.annotation.Nonnull Double _double, @Param("pattern_without_delimiter") @javax.annotation.Nonnull String patternWithoutDelimiter, @Param("byte") @javax.annotation.Nonnull byte[] _byte, @Param("integer") @javax.annotation.Nullable Integer integer, @Param("int32") @javax.annotation.Nullable Integer int32, @Param("int64") @javax.annotation.Nullable Long int64, @Param("float") @javax.annotation.Nullable Float _float, @Param("string") @javax.annotation.Nullable String string, @Param("binary") @javax.annotation.Nullable File binary, @Param("date") @javax.annotation.Nullable LocalDate date, @Param("dateTime") @javax.annotation.Nullable OffsetDateTime dateTime, @Param("password") @javax.annotation.Nullable String password, @Param("callback") @javax.annotation.Nullable String paramCallback); @@ -579,7 +579,7 @@ public interface FakeApi extends ApiClient.Api { "enum_header_string: {enumHeaderString}" }) - void testEnumParameters(@Param("enumHeaderStringArray") List enumHeaderStringArray, @Param("enumHeaderString") String enumHeaderString, @Param("enumQueryStringArray") List enumQueryStringArray, @Param("enumQueryString") String enumQueryString, @Param("enumQueryInteger") Integer enumQueryInteger, @Param("enumQueryDouble") Double enumQueryDouble, @Param("enumQueryModelArray") List enumQueryModelArray, @Param("enum_form_string_array") List enumFormStringArray, @Param("enum_form_string") String enumFormString); + void testEnumParameters(@Param("enumHeaderStringArray") @javax.annotation.Nullable List enumHeaderStringArray, @Param("enumHeaderString") @javax.annotation.Nullable String enumHeaderString, @Param("enumQueryStringArray") @javax.annotation.Nullable List enumQueryStringArray, @Param("enumQueryString") @javax.annotation.Nullable String enumQueryString, @Param("enumQueryInteger") @javax.annotation.Nullable Integer enumQueryInteger, @Param("enumQueryDouble") @javax.annotation.Nullable Double enumQueryDouble, @Param("enumQueryModelArray") @javax.annotation.Nullable List enumQueryModelArray, @Param("enum_form_string_array") @javax.annotation.Nullable List enumFormStringArray, @Param("enum_form_string") @javax.annotation.Nullable String enumFormString); /** * To test enum parameters @@ -603,7 +603,7 @@ public interface FakeApi extends ApiClient.Api { "enum_header_string: {enumHeaderString}" }) - ApiResponse testEnumParametersWithHttpInfo(@Param("enumHeaderStringArray") List enumHeaderStringArray, @Param("enumHeaderString") String enumHeaderString, @Param("enumQueryStringArray") List enumQueryStringArray, @Param("enumQueryString") String enumQueryString, @Param("enumQueryInteger") Integer enumQueryInteger, @Param("enumQueryDouble") Double enumQueryDouble, @Param("enumQueryModelArray") List enumQueryModelArray, @Param("enum_form_string_array") List enumFormStringArray, @Param("enum_form_string") String enumFormString); + ApiResponse testEnumParametersWithHttpInfo(@Param("enumHeaderStringArray") @javax.annotation.Nullable List enumHeaderStringArray, @Param("enumHeaderString") @javax.annotation.Nullable String enumHeaderString, @Param("enumQueryStringArray") @javax.annotation.Nullable List enumQueryStringArray, @Param("enumQueryString") @javax.annotation.Nullable String enumQueryString, @Param("enumQueryInteger") @javax.annotation.Nullable Integer enumQueryInteger, @Param("enumQueryDouble") @javax.annotation.Nullable Double enumQueryDouble, @Param("enumQueryModelArray") @javax.annotation.Nullable List enumQueryModelArray, @Param("enum_form_string_array") @javax.annotation.Nullable List enumFormStringArray, @Param("enum_form_string") @javax.annotation.Nullable String enumFormString); /** @@ -636,7 +636,7 @@ public interface FakeApi extends ApiClient.Api { "enum_header_string: {enumHeaderString}" }) - void testEnumParameters(@Param("enumHeaderStringArray") List enumHeaderStringArray, @Param("enumHeaderString") String enumHeaderString, @Param("enum_form_string_array") List enumFormStringArray, @Param("enum_form_string") String enumFormString, @QueryMap(encoded=true) TestEnumParametersQueryParams queryParams); + void testEnumParameters(@Param("enumHeaderStringArray") @javax.annotation.Nullable List enumHeaderStringArray, @Param("enumHeaderString") @javax.annotation.Nullable String enumHeaderString, @Param("enum_form_string_array") @javax.annotation.Nullable List enumFormStringArray, @Param("enum_form_string") @javax.annotation.Nullable String enumFormString, @QueryMap(encoded=true) TestEnumParametersQueryParams queryParams); /** * To test enum parameters @@ -665,7 +665,7 @@ public interface FakeApi extends ApiClient.Api { "enum_header_string: {enumHeaderString}" }) - ApiResponse testEnumParametersWithHttpInfo(@Param("enumHeaderStringArray") List enumHeaderStringArray, @Param("enumHeaderString") String enumHeaderString, @Param("enum_form_string_array") List enumFormStringArray, @Param("enum_form_string") String enumFormString, @QueryMap(encoded=true) TestEnumParametersQueryParams queryParams); + ApiResponse testEnumParametersWithHttpInfo(@Param("enumHeaderStringArray") @javax.annotation.Nullable List enumHeaderStringArray, @Param("enumHeaderString") @javax.annotation.Nullable String enumHeaderString, @Param("enum_form_string_array") @javax.annotation.Nullable List enumFormStringArray, @Param("enum_form_string") @javax.annotation.Nullable String enumFormString, @QueryMap(encoded=true) TestEnumParametersQueryParams queryParams); /** @@ -673,23 +673,23 @@ public interface FakeApi extends ApiClient.Api { * testEnumParameters method in a fluent style. */ public static class TestEnumParametersQueryParams extends HashMap { - public TestEnumParametersQueryParams enumQueryStringArray(final List value) { + public TestEnumParametersQueryParams enumQueryStringArray(@javax.annotation.Nullable final List value) { put("enum_query_string_array", EncodingUtils.encodeCollection(value, "multi")); return this; } - public TestEnumParametersQueryParams enumQueryString(final String value) { + public TestEnumParametersQueryParams enumQueryString(@javax.annotation.Nullable final String value) { put("enum_query_string", EncodingUtils.encode(value)); return this; } - public TestEnumParametersQueryParams enumQueryInteger(final Integer value) { + public TestEnumParametersQueryParams enumQueryInteger(@javax.annotation.Nullable final Integer value) { put("enum_query_integer", EncodingUtils.encode(value)); return this; } - public TestEnumParametersQueryParams enumQueryDouble(final Double value) { + public TestEnumParametersQueryParams enumQueryDouble(@javax.annotation.Nullable final Double value) { put("enum_query_double", EncodingUtils.encode(value)); return this; } - public TestEnumParametersQueryParams enumQueryModelArray(final List value) { + public TestEnumParametersQueryParams enumQueryModelArray(@javax.annotation.Nullable final List value) { put("enum_query_model_array", EncodingUtils.encodeCollection(value, "multi")); return this; } @@ -712,7 +712,7 @@ public interface FakeApi extends ApiClient.Api { "boolean_group: {booleanGroup}" }) - void testGroupParameters(@Param("requiredStringGroup") Integer requiredStringGroup, @Param("requiredBooleanGroup") Boolean requiredBooleanGroup, @Param("requiredInt64Group") Long requiredInt64Group, @Param("stringGroup") Integer stringGroup, @Param("booleanGroup") Boolean booleanGroup, @Param("int64Group") Long int64Group); + void testGroupParameters(@Param("requiredStringGroup") @javax.annotation.Nonnull Integer requiredStringGroup, @Param("requiredBooleanGroup") @javax.annotation.Nonnull Boolean requiredBooleanGroup, @Param("requiredInt64Group") @javax.annotation.Nonnull Long requiredInt64Group, @Param("stringGroup") @javax.annotation.Nullable Integer stringGroup, @Param("booleanGroup") @javax.annotation.Nullable Boolean booleanGroup, @Param("int64Group") @javax.annotation.Nullable Long int64Group); /** * Fake endpoint to test group parameters (optional) @@ -732,7 +732,7 @@ public interface FakeApi extends ApiClient.Api { "boolean_group: {booleanGroup}" }) - ApiResponse testGroupParametersWithHttpInfo(@Param("requiredStringGroup") Integer requiredStringGroup, @Param("requiredBooleanGroup") Boolean requiredBooleanGroup, @Param("requiredInt64Group") Long requiredInt64Group, @Param("stringGroup") Integer stringGroup, @Param("booleanGroup") Boolean booleanGroup, @Param("int64Group") Long int64Group); + ApiResponse testGroupParametersWithHttpInfo(@Param("requiredStringGroup") @javax.annotation.Nonnull Integer requiredStringGroup, @Param("requiredBooleanGroup") @javax.annotation.Nonnull Boolean requiredBooleanGroup, @Param("requiredInt64Group") @javax.annotation.Nonnull Long requiredInt64Group, @Param("stringGroup") @javax.annotation.Nullable Integer stringGroup, @Param("booleanGroup") @javax.annotation.Nullable Boolean booleanGroup, @Param("int64Group") @javax.annotation.Nullable Long int64Group); /** @@ -761,7 +761,7 @@ public interface FakeApi extends ApiClient.Api { "boolean_group: {booleanGroup}" }) - void testGroupParameters(@Param("requiredBooleanGroup") Boolean requiredBooleanGroup, @Param("booleanGroup") Boolean booleanGroup, @QueryMap(encoded=true) TestGroupParametersQueryParams queryParams); + void testGroupParameters(@Param("requiredBooleanGroup") @javax.annotation.Nonnull Boolean requiredBooleanGroup, @Param("booleanGroup") @javax.annotation.Nullable Boolean booleanGroup, @QueryMap(encoded=true) TestGroupParametersQueryParams queryParams); /** * Fake endpoint to test group parameters (optional) @@ -786,7 +786,7 @@ public interface FakeApi extends ApiClient.Api { "boolean_group: {booleanGroup}" }) - ApiResponse testGroupParametersWithHttpInfo(@Param("requiredBooleanGroup") Boolean requiredBooleanGroup, @Param("booleanGroup") Boolean booleanGroup, @QueryMap(encoded=true) TestGroupParametersQueryParams queryParams); + ApiResponse testGroupParametersWithHttpInfo(@Param("requiredBooleanGroup") @javax.annotation.Nonnull Boolean requiredBooleanGroup, @Param("booleanGroup") @javax.annotation.Nullable Boolean booleanGroup, @QueryMap(encoded=true) TestGroupParametersQueryParams queryParams); /** @@ -794,19 +794,19 @@ public interface FakeApi extends ApiClient.Api { * testGroupParameters method in a fluent style. */ public static class TestGroupParametersQueryParams extends HashMap { - public TestGroupParametersQueryParams requiredStringGroup(final Integer value) { + public TestGroupParametersQueryParams requiredStringGroup(@javax.annotation.Nonnull final Integer value) { put("required_string_group", EncodingUtils.encode(value)); return this; } - public TestGroupParametersQueryParams requiredInt64Group(final Long value) { + public TestGroupParametersQueryParams requiredInt64Group(@javax.annotation.Nonnull final Long value) { put("required_int64_group", EncodingUtils.encode(value)); return this; } - public TestGroupParametersQueryParams stringGroup(final Integer value) { + public TestGroupParametersQueryParams stringGroup(@javax.annotation.Nullable final Integer value) { put("string_group", EncodingUtils.encode(value)); return this; } - public TestGroupParametersQueryParams int64Group(final Long value) { + public TestGroupParametersQueryParams int64Group(@javax.annotation.Nullable final Long value) { put("int64_group", EncodingUtils.encode(value)); return this; } @@ -822,7 +822,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - void testInlineAdditionalProperties(Map requestBody); + void testInlineAdditionalProperties(@javax.annotation.Nonnull Map requestBody); /** * test inline additionalProperties @@ -835,7 +835,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map requestBody); + ApiResponse testInlineAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull Map requestBody); @@ -849,7 +849,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - void testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + void testInlineFreeformAdditionalProperties(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); /** * test inline free-form additionalProperties @@ -862,7 +862,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse testInlineFreeformAdditionalPropertiesWithHttpInfo(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + ApiResponse testInlineFreeformAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); @@ -877,7 +877,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/x-www-form-urlencoded", "Accept: application/json", }) - void testJsonFormData(@Param("param") String param, @Param("param2") String param2); + void testJsonFormData(@Param("param") @javax.annotation.Nonnull String param, @Param("param2") @javax.annotation.Nonnull String param2); /** * test json serialization of form data @@ -891,7 +891,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/x-www-form-urlencoded", "Accept: application/json", }) - ApiResponse testJsonFormDataWithHttpInfo(@Param("param") String param, @Param("param2") String param2); + ApiResponse testJsonFormDataWithHttpInfo(@Param("param") @javax.annotation.Nonnull String param, @Param("param2") @javax.annotation.Nonnull String param2); @@ -905,7 +905,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - void testNullable(ChildWithNullable childWithNullable); + void testNullable(@javax.annotation.Nonnull ChildWithNullable childWithNullable); /** * test nullable parent property @@ -918,7 +918,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse testNullableWithHttpInfo(ChildWithNullable childWithNullable); + ApiResponse testNullableWithHttpInfo(@javax.annotation.Nonnull ChildWithNullable childWithNullable); @@ -937,7 +937,7 @@ public interface FakeApi extends ApiClient.Api { @Headers({ "Accept: application/json", }) - void testQueryParameterCollectionFormat(@Param("pipe") List pipe, @Param("ioutil") List ioutil, @Param("http") List http, @Param("url") List url, @Param("context") List context, @Param("allowEmpty") String allowEmpty, @Param("language") Map language); + void testQueryParameterCollectionFormat(@Param("pipe") @javax.annotation.Nonnull List pipe, @Param("ioutil") @javax.annotation.Nonnull List ioutil, @Param("http") @javax.annotation.Nonnull List http, @Param("url") @javax.annotation.Nonnull List url, @Param("context") @javax.annotation.Nonnull List context, @Param("allowEmpty") @javax.annotation.Nonnull String allowEmpty, @Param("language") @javax.annotation.Nullable Map language); /** * @@ -955,7 +955,7 @@ public interface FakeApi extends ApiClient.Api { @Headers({ "Accept: application/json", }) - ApiResponse testQueryParameterCollectionFormatWithHttpInfo(@Param("pipe") List pipe, @Param("ioutil") List ioutil, @Param("http") List http, @Param("url") List url, @Param("context") List context, @Param("allowEmpty") String allowEmpty, @Param("language") Map language); + ApiResponse testQueryParameterCollectionFormatWithHttpInfo(@Param("pipe") @javax.annotation.Nonnull List pipe, @Param("ioutil") @javax.annotation.Nonnull List ioutil, @Param("http") @javax.annotation.Nonnull List http, @Param("url") @javax.annotation.Nonnull List url, @Param("context") @javax.annotation.Nonnull List context, @Param("allowEmpty") @javax.annotation.Nonnull String allowEmpty, @Param("language") @javax.annotation.Nullable Map language); /** @@ -1013,31 +1013,31 @@ public interface FakeApi extends ApiClient.Api { * testQueryParameterCollectionFormat method in a fluent style. */ public static class TestQueryParameterCollectionFormatQueryParams extends HashMap { - public TestQueryParameterCollectionFormatQueryParams pipe(final List value) { + public TestQueryParameterCollectionFormatQueryParams pipe(@javax.annotation.Nonnull final List value) { put("pipe", EncodingUtils.encodeCollection(value, "pipes")); return this; } - public TestQueryParameterCollectionFormatQueryParams ioutil(final List value) { + public TestQueryParameterCollectionFormatQueryParams ioutil(@javax.annotation.Nonnull final List value) { put("ioutil", EncodingUtils.encodeCollection(value, "csv")); return this; } - public TestQueryParameterCollectionFormatQueryParams http(final List value) { + public TestQueryParameterCollectionFormatQueryParams http(@javax.annotation.Nonnull final List value) { put("http", EncodingUtils.encodeCollection(value, "ssv")); return this; } - public TestQueryParameterCollectionFormatQueryParams url(final List value) { + public TestQueryParameterCollectionFormatQueryParams url(@javax.annotation.Nonnull final List value) { put("url", EncodingUtils.encodeCollection(value, "csv")); return this; } - public TestQueryParameterCollectionFormatQueryParams context(final List value) { + public TestQueryParameterCollectionFormatQueryParams context(@javax.annotation.Nonnull final List value) { put("context", EncodingUtils.encodeCollection(value, "multi")); return this; } - public TestQueryParameterCollectionFormatQueryParams language(final Map value) { + public TestQueryParameterCollectionFormatQueryParams language(@javax.annotation.Nullable final Map value) { put("language", EncodingUtils.encode(value)); return this; } - public TestQueryParameterCollectionFormatQueryParams allowEmpty(final String value) { + public TestQueryParameterCollectionFormatQueryParams allowEmpty(@javax.annotation.Nonnull final String value) { put("allowEmpty", EncodingUtils.encode(value)); return this; } @@ -1053,7 +1053,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - void testStringMapReference(Map requestBody); + void testStringMapReference(@javax.annotation.Nonnull Map requestBody); /** * test referenced string map @@ -1066,7 +1066,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse testStringMapReferenceWithHttpInfo(Map requestBody); + ApiResponse testStringMapReferenceWithHttpInfo(@javax.annotation.Nonnull Map requestBody); } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index e0172868219..41e56a2c4df 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -27,7 +27,7 @@ public interface FakeClassnameTags123Api extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - Client testClassname(Client client); + Client testClassname(@javax.annotation.Nonnull Client client); /** * To test class name in snake case @@ -41,7 +41,7 @@ public interface FakeClassnameTags123Api extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse testClassnameWithHttpInfo(Client client); + ApiResponse testClassnameWithHttpInfo(@javax.annotation.Nonnull Client client); } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/PetApi.java index e9c2603441c..7fde92afefe 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/PetApi.java @@ -29,7 +29,7 @@ public interface PetApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - void addPet(Pet pet); + void addPet(@javax.annotation.Nonnull Pet pet); /** * Add a new pet to the store @@ -42,7 +42,7 @@ public interface PetApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse addPetWithHttpInfo(Pet pet); + ApiResponse addPetWithHttpInfo(@javax.annotation.Nonnull Pet pet); @@ -57,7 +57,7 @@ public interface PetApi extends ApiClient.Api { "Accept: application/json", "api_key: {apiKey}" }) - void deletePet(@Param("petId") Long petId, @Param("apiKey") String apiKey); + void deletePet(@Param("petId") @javax.annotation.Nonnull Long petId, @Param("apiKey") @javax.annotation.Nullable String apiKey); /** * Deletes a pet @@ -71,7 +71,7 @@ public interface PetApi extends ApiClient.Api { "Accept: application/json", "api_key: {apiKey}" }) - ApiResponse deletePetWithHttpInfo(@Param("petId") Long petId, @Param("apiKey") String apiKey); + ApiResponse deletePetWithHttpInfo(@Param("petId") @javax.annotation.Nonnull Long petId, @Param("apiKey") @javax.annotation.Nullable String apiKey); @@ -85,7 +85,7 @@ public interface PetApi extends ApiClient.Api { @Headers({ "Accept: application/json,application/xml", }) - List findPetsByStatus(@Param("status") List status); + List findPetsByStatus(@Param("status") @javax.annotation.Nonnull List status); /** * Finds Pets by status @@ -98,7 +98,7 @@ public interface PetApi extends ApiClient.Api { @Headers({ "Accept: application/json,application/xml", }) - ApiResponse> findPetsByStatusWithHttpInfo(@Param("status") List status); + ApiResponse> findPetsByStatusWithHttpInfo(@Param("status") @javax.annotation.Nonnull List status); /** @@ -146,7 +146,7 @@ public interface PetApi extends ApiClient.Api { * findPetsByStatus method in a fluent style. */ public static class FindPetsByStatusQueryParams extends HashMap { - public FindPetsByStatusQueryParams status(final List value) { + public FindPetsByStatusQueryParams status(@javax.annotation.Nonnull final List value) { put("status", EncodingUtils.encodeCollection(value, "csv")); return this; } @@ -164,7 +164,7 @@ public interface PetApi extends ApiClient.Api { @Headers({ "Accept: application/json,application/xml", }) - Set findPetsByTags(@Param("tags") Set tags); + Set findPetsByTags(@Param("tags") @javax.annotation.Nonnull Set tags); /** * Finds Pets by tags @@ -179,7 +179,7 @@ public interface PetApi extends ApiClient.Api { @Headers({ "Accept: application/json,application/xml", }) - ApiResponse> findPetsByTagsWithHttpInfo(@Param("tags") Set tags); + ApiResponse> findPetsByTagsWithHttpInfo(@Param("tags") @javax.annotation.Nonnull Set tags); /** @@ -231,7 +231,7 @@ public interface PetApi extends ApiClient.Api { * findPetsByTags method in a fluent style. */ public static class FindPetsByTagsQueryParams extends HashMap { - public FindPetsByTagsQueryParams tags(final Set value) { + public FindPetsByTagsQueryParams tags(@javax.annotation.Nonnull final Set value) { put("tags", EncodingUtils.encodeCollection(value, "csv")); return this; } @@ -247,7 +247,7 @@ public interface PetApi extends ApiClient.Api { @Headers({ "Accept: application/json,application/xml", }) - Pet getPetById(@Param("petId") Long petId); + Pet getPetById(@Param("petId") @javax.annotation.Nonnull Long petId); /** * Find pet by ID @@ -260,7 +260,7 @@ public interface PetApi extends ApiClient.Api { @Headers({ "Accept: application/json,application/xml", }) - ApiResponse getPetByIdWithHttpInfo(@Param("petId") Long petId); + ApiResponse getPetByIdWithHttpInfo(@Param("petId") @javax.annotation.Nonnull Long petId); @@ -274,7 +274,7 @@ public interface PetApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - void updatePet(Pet pet); + void updatePet(@javax.annotation.Nonnull Pet pet); /** * Update an existing pet @@ -287,7 +287,7 @@ public interface PetApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse updatePetWithHttpInfo(Pet pet); + ApiResponse updatePetWithHttpInfo(@javax.annotation.Nonnull Pet pet); @@ -303,7 +303,7 @@ public interface PetApi extends ApiClient.Api { "Content-Type: application/x-www-form-urlencoded", "Accept: application/json", }) - void updatePetWithForm(@Param("petId") Long petId, @Param("name") String name, @Param("status") String status); + void updatePetWithForm(@Param("petId") @javax.annotation.Nonnull Long petId, @Param("name") @javax.annotation.Nullable String name, @Param("status") @javax.annotation.Nullable String status); /** * Updates a pet in the store with form data @@ -318,7 +318,7 @@ public interface PetApi extends ApiClient.Api { "Content-Type: application/x-www-form-urlencoded", "Accept: application/json", }) - ApiResponse updatePetWithFormWithHttpInfo(@Param("petId") Long petId, @Param("name") String name, @Param("status") String status); + ApiResponse updatePetWithFormWithHttpInfo(@Param("petId") @javax.annotation.Nonnull Long petId, @Param("name") @javax.annotation.Nullable String name, @Param("status") @javax.annotation.Nullable String status); @@ -335,7 +335,7 @@ public interface PetApi extends ApiClient.Api { "Content-Type: multipart/form-data", "Accept: application/json", }) - ModelApiResponse uploadFile(@Param("petId") Long petId, @Param("additionalMetadata") String additionalMetadata, @Param("file") File file); + ModelApiResponse uploadFile(@Param("petId") @javax.annotation.Nonnull Long petId, @Param("additionalMetadata") @javax.annotation.Nullable String additionalMetadata, @Param("file") @javax.annotation.Nullable File file); /** * uploads an image @@ -351,7 +351,7 @@ public interface PetApi extends ApiClient.Api { "Content-Type: multipart/form-data", "Accept: application/json", }) - ApiResponse uploadFileWithHttpInfo(@Param("petId") Long petId, @Param("additionalMetadata") String additionalMetadata, @Param("file") File file); + ApiResponse uploadFileWithHttpInfo(@Param("petId") @javax.annotation.Nonnull Long petId, @Param("additionalMetadata") @javax.annotation.Nullable String additionalMetadata, @Param("file") @javax.annotation.Nullable File file); @@ -368,7 +368,7 @@ public interface PetApi extends ApiClient.Api { "Content-Type: multipart/form-data", "Accept: application/json", }) - ModelApiResponse uploadFileWithRequiredFile(@Param("petId") Long petId, @Param("requiredFile") File requiredFile, @Param("additionalMetadata") String additionalMetadata); + ModelApiResponse uploadFileWithRequiredFile(@Param("petId") @javax.annotation.Nonnull Long petId, @Param("requiredFile") @javax.annotation.Nonnull File requiredFile, @Param("additionalMetadata") @javax.annotation.Nullable String additionalMetadata); /** * uploads an image (required) @@ -384,7 +384,7 @@ public interface PetApi extends ApiClient.Api { "Content-Type: multipart/form-data", "Accept: application/json", }) - ApiResponse uploadFileWithRequiredFileWithHttpInfo(@Param("petId") Long petId, @Param("requiredFile") File requiredFile, @Param("additionalMetadata") String additionalMetadata); + ApiResponse uploadFileWithRequiredFileWithHttpInfo(@Param("petId") @javax.annotation.Nonnull Long petId, @Param("requiredFile") @javax.annotation.Nonnull File requiredFile, @Param("additionalMetadata") @javax.annotation.Nullable String additionalMetadata); } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/StoreApi.java index e568ddf1c23..734535fc69d 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/StoreApi.java @@ -25,7 +25,7 @@ public interface StoreApi extends ApiClient.Api { @Headers({ "Accept: application/json", }) - void deleteOrder(@Param("orderId") String orderId); + void deleteOrder(@Param("orderId") @javax.annotation.Nonnull String orderId); /** * Delete purchase order by ID @@ -37,7 +37,7 @@ public interface StoreApi extends ApiClient.Api { @Headers({ "Accept: application/json", }) - ApiResponse deleteOrderWithHttpInfo(@Param("orderId") String orderId); + ApiResponse deleteOrderWithHttpInfo(@Param("orderId") @javax.annotation.Nonnull String orderId); @@ -76,7 +76,7 @@ public interface StoreApi extends ApiClient.Api { @Headers({ "Accept: application/json,application/xml", }) - Order getOrderById(@Param("orderId") Long orderId); + Order getOrderById(@Param("orderId") @javax.annotation.Nonnull Long orderId); /** * Find purchase order by ID @@ -89,7 +89,7 @@ public interface StoreApi extends ApiClient.Api { @Headers({ "Accept: application/json,application/xml", }) - ApiResponse getOrderByIdWithHttpInfo(@Param("orderId") Long orderId); + ApiResponse getOrderByIdWithHttpInfo(@Param("orderId") @javax.annotation.Nonnull Long orderId); @@ -104,7 +104,7 @@ public interface StoreApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json,application/xml", }) - Order placeOrder(Order order); + Order placeOrder(@javax.annotation.Nonnull Order order); /** * Place an order for a pet @@ -118,7 +118,7 @@ public interface StoreApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json,application/xml", }) - ApiResponse placeOrderWithHttpInfo(Order order); + ApiResponse placeOrderWithHttpInfo(@javax.annotation.Nonnull Order order); } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/UserApi.java index 544c0098196..21f96e1b2cf 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/UserApi.java @@ -27,7 +27,7 @@ public interface UserApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - void createUser(User user); + void createUser(@javax.annotation.Nonnull User user); /** * Create user @@ -40,7 +40,7 @@ public interface UserApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse createUserWithHttpInfo(User user); + ApiResponse createUserWithHttpInfo(@javax.annotation.Nonnull User user); @@ -54,7 +54,7 @@ public interface UserApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - void createUsersWithArrayInput(List user); + void createUsersWithArrayInput(@javax.annotation.Nonnull List user); /** * Creates list of users with given input array @@ -67,7 +67,7 @@ public interface UserApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse createUsersWithArrayInputWithHttpInfo(List user); + ApiResponse createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List user); @@ -81,7 +81,7 @@ public interface UserApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - void createUsersWithListInput(List user); + void createUsersWithListInput(@javax.annotation.Nonnull List user); /** * Creates list of users with given input array @@ -94,7 +94,7 @@ public interface UserApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse createUsersWithListInputWithHttpInfo(List user); + ApiResponse createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List user); @@ -107,7 +107,7 @@ public interface UserApi extends ApiClient.Api { @Headers({ "Accept: application/json", }) - void deleteUser(@Param("username") String username); + void deleteUser(@Param("username") @javax.annotation.Nonnull String username); /** * Delete user @@ -119,7 +119,7 @@ public interface UserApi extends ApiClient.Api { @Headers({ "Accept: application/json", }) - ApiResponse deleteUserWithHttpInfo(@Param("username") String username); + ApiResponse deleteUserWithHttpInfo(@Param("username") @javax.annotation.Nonnull String username); @@ -133,7 +133,7 @@ public interface UserApi extends ApiClient.Api { @Headers({ "Accept: application/json,application/xml", }) - User getUserByName(@Param("username") String username); + User getUserByName(@Param("username") @javax.annotation.Nonnull String username); /** * Get user by user name @@ -146,7 +146,7 @@ public interface UserApi extends ApiClient.Api { @Headers({ "Accept: application/json,application/xml", }) - ApiResponse getUserByNameWithHttpInfo(@Param("username") String username); + ApiResponse getUserByNameWithHttpInfo(@Param("username") @javax.annotation.Nonnull String username); @@ -161,7 +161,7 @@ public interface UserApi extends ApiClient.Api { @Headers({ "Accept: application/json,application/xml", }) - String loginUser(@Param("username") String username, @Param("password") String password); + String loginUser(@Param("username") @javax.annotation.Nonnull String username, @Param("password") @javax.annotation.Nonnull String password); /** * Logs user into the system @@ -175,7 +175,7 @@ public interface UserApi extends ApiClient.Api { @Headers({ "Accept: application/json,application/xml", }) - ApiResponse loginUserWithHttpInfo(@Param("username") String username, @Param("password") String password); + ApiResponse loginUserWithHttpInfo(@Param("username") @javax.annotation.Nonnull String username, @Param("password") @javax.annotation.Nonnull String password); /** @@ -225,11 +225,11 @@ public interface UserApi extends ApiClient.Api { * loginUser method in a fluent style. */ public static class LoginUserQueryParams extends HashMap { - public LoginUserQueryParams username(final String value) { + public LoginUserQueryParams username(@javax.annotation.Nonnull final String value) { put("username", EncodingUtils.encode(value)); return this; } - public LoginUserQueryParams password(final String value) { + public LoginUserQueryParams password(@javax.annotation.Nonnull final String value) { put("password", EncodingUtils.encode(value)); return this; } @@ -269,7 +269,7 @@ public interface UserApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - void updateUser(@Param("username") String username, User user); + void updateUser(@Param("username") @javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user); /** * Updated user @@ -283,7 +283,7 @@ public interface UserApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse updateUserWithHttpInfo(@Param("username") String username, User user); + ApiResponse updateUserWithHttpInfo(@Param("username") @javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user); } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index db9e1508e80..dae18d1e139 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -51,7 +51,7 @@ public class AnotherFakeApi { * @return Client * @throws IOException if an error occurs while attempting to invoke the API **/ - public Client call123testSpecialTags(UUID uuidTest, Client body) throws IOException { + public Client call123testSpecialTags(@javax.annotation.Nonnull UUID uuidTest, @javax.annotation.Nonnull Client body) throws IOException { HttpResponse response = call123testSpecialTagsForHttpResponse(uuidTest, body); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); @@ -67,13 +67,13 @@ public class AnotherFakeApi { * @return Client * @throws IOException if an error occurs while attempting to invoke the API **/ - public Client call123testSpecialTags(UUID uuidTest, Client body, Map params) throws IOException { + public Client call123testSpecialTags(@javax.annotation.Nonnull UUID uuidTest, @javax.annotation.Nonnull Client body, Map params) throws IOException { HttpResponse response = call123testSpecialTagsForHttpResponse(uuidTest, body, params); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } - public HttpResponse call123testSpecialTagsForHttpResponse(UUID uuidTest, Client body) throws IOException { + public HttpResponse call123testSpecialTagsForHttpResponse(@javax.annotation.Nonnull UUID uuidTest, @javax.annotation.Nonnull Client body) throws IOException { // verify the required parameter 'uuidTest' is set if (uuidTest == null) { throw new IllegalArgumentException("Missing the required parameter 'uuidTest' when calling call123testSpecialTags"); @@ -90,7 +90,7 @@ public class AnotherFakeApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute(); } - public HttpResponse call123testSpecialTagsForHttpResponse(UUID uuidTest, java.io.InputStream body, String mediaType) throws IOException { + public HttpResponse call123testSpecialTagsForHttpResponse(@javax.annotation.Nonnull UUID uuidTest, java.io.InputStream body, String mediaType) throws IOException { // verify the required parameter 'uuidTest' is set if (uuidTest == null) { throw new IllegalArgumentException("Missing the required parameter 'uuidTest' when calling call123testSpecialTags"); @@ -109,7 +109,7 @@ public class AnotherFakeApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute(); } - public HttpResponse call123testSpecialTagsForHttpResponse(UUID uuidTest, Client body, Map params) throws IOException { + public HttpResponse call123testSpecialTagsForHttpResponse(@javax.annotation.Nonnull UUID uuidTest, @javax.annotation.Nonnull Client body, Map params) throws IOException { // verify the required parameter 'uuidTest' is set if (uuidTest == null) { throw new IllegalArgumentException("Missing the required parameter 'uuidTest' when calling call123testSpecialTags"); diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeApi.java index 7398582b88d..1adcdfdb0fc 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeApi.java @@ -56,7 +56,7 @@ public class FakeApi { * @param xmlItem XmlItem Body * @throws IOException if an error occurs while attempting to invoke the API **/ - public void createXmlItem(XmlItem xmlItem) throws IOException { + public void createXmlItem(@javax.annotation.Nonnull XmlItem xmlItem) throws IOException { createXmlItemForHttpResponse(xmlItem); } @@ -68,11 +68,11 @@ public class FakeApi { * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @throws IOException if an error occurs while attempting to invoke the API **/ - public void createXmlItem(XmlItem xmlItem, Map params) throws IOException { + public void createXmlItem(@javax.annotation.Nonnull XmlItem xmlItem, Map params) throws IOException { createXmlItemForHttpResponse(xmlItem, params); } - public HttpResponse createXmlItemForHttpResponse(XmlItem xmlItem) throws IOException { + public HttpResponse createXmlItemForHttpResponse(@javax.annotation.Nonnull XmlItem xmlItem) throws IOException { // verify the required parameter 'xmlItem' is set if (xmlItem == null) { throw new IllegalArgumentException("Missing the required parameter 'xmlItem' when calling createXmlItem"); @@ -102,7 +102,7 @@ public class FakeApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse createXmlItemForHttpResponse(XmlItem xmlItem, Map params) throws IOException { + public HttpResponse createXmlItemForHttpResponse(@javax.annotation.Nonnull XmlItem xmlItem, Map params) throws IOException { // verify the required parameter 'xmlItem' is set if (xmlItem == null) { throw new IllegalArgumentException("Missing the required parameter 'xmlItem' when calling createXmlItem"); @@ -142,7 +142,7 @@ public class FakeApi { * @return Boolean * @throws IOException if an error occurs while attempting to invoke the API **/ - public Boolean fakeOuterBooleanSerialize(Boolean body) throws IOException { + public Boolean fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body) throws IOException { HttpResponse response = fakeOuterBooleanSerializeForHttpResponse(body); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); @@ -155,13 +155,13 @@ public class FakeApi { * @return Boolean * @throws IOException if an error occurs while attempting to invoke the API **/ - public Boolean fakeOuterBooleanSerialize(Boolean body, Map params) throws IOException { + public Boolean fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body, Map params) throws IOException { HttpResponse response = fakeOuterBooleanSerializeForHttpResponse(body, params); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } - public HttpResponse fakeOuterBooleanSerializeForHttpResponse(Boolean body) throws IOException { + public HttpResponse fakeOuterBooleanSerializeForHttpResponse(@javax.annotation.Nullable Boolean body) throws IOException { UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/boolean"); @@ -185,7 +185,7 @@ public class FakeApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse fakeOuterBooleanSerializeForHttpResponse(Boolean body, Map params) throws IOException { + public HttpResponse fakeOuterBooleanSerializeForHttpResponse(@javax.annotation.Nullable Boolean body, Map params) throws IOException { UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/boolean"); @@ -222,7 +222,7 @@ public class FakeApi { * @return OuterComposite * @throws IOException if an error occurs while attempting to invoke the API **/ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws IOException { + public OuterComposite fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite body) throws IOException { HttpResponse response = fakeOuterCompositeSerializeForHttpResponse(body); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); @@ -235,13 +235,13 @@ public class FakeApi { * @return OuterComposite * @throws IOException if an error occurs while attempting to invoke the API **/ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite body, Map params) throws IOException { + public OuterComposite fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite body, Map params) throws IOException { HttpResponse response = fakeOuterCompositeSerializeForHttpResponse(body, params); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } - public HttpResponse fakeOuterCompositeSerializeForHttpResponse(OuterComposite body) throws IOException { + public HttpResponse fakeOuterCompositeSerializeForHttpResponse(@javax.annotation.Nullable OuterComposite body) throws IOException { UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/composite"); @@ -265,7 +265,7 @@ public class FakeApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse fakeOuterCompositeSerializeForHttpResponse(OuterComposite body, Map params) throws IOException { + public HttpResponse fakeOuterCompositeSerializeForHttpResponse(@javax.annotation.Nullable OuterComposite body, Map params) throws IOException { UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/composite"); @@ -302,7 +302,7 @@ public class FakeApi { * @return BigDecimal * @throws IOException if an error occurs while attempting to invoke the API **/ - public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws IOException { + public BigDecimal fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body) throws IOException { HttpResponse response = fakeOuterNumberSerializeForHttpResponse(body); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); @@ -315,13 +315,13 @@ public class FakeApi { * @return BigDecimal * @throws IOException if an error occurs while attempting to invoke the API **/ - public BigDecimal fakeOuterNumberSerialize(BigDecimal body, Map params) throws IOException { + public BigDecimal fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body, Map params) throws IOException { HttpResponse response = fakeOuterNumberSerializeForHttpResponse(body, params); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } - public HttpResponse fakeOuterNumberSerializeForHttpResponse(BigDecimal body) throws IOException { + public HttpResponse fakeOuterNumberSerializeForHttpResponse(@javax.annotation.Nullable BigDecimal body) throws IOException { UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/number"); @@ -345,7 +345,7 @@ public class FakeApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse fakeOuterNumberSerializeForHttpResponse(BigDecimal body, Map params) throws IOException { + public HttpResponse fakeOuterNumberSerializeForHttpResponse(@javax.annotation.Nullable BigDecimal body, Map params) throws IOException { UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/number"); @@ -382,7 +382,7 @@ public class FakeApi { * @return String * @throws IOException if an error occurs while attempting to invoke the API **/ - public String fakeOuterStringSerialize(String body) throws IOException { + public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws IOException { HttpResponse response = fakeOuterStringSerializeForHttpResponse(body); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); @@ -395,13 +395,13 @@ public class FakeApi { * @return String * @throws IOException if an error occurs while attempting to invoke the API **/ - public String fakeOuterStringSerialize(String body, Map params) throws IOException { + public String fakeOuterStringSerialize(@javax.annotation.Nullable String body, Map params) throws IOException { HttpResponse response = fakeOuterStringSerializeForHttpResponse(body, params); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } - public HttpResponse fakeOuterStringSerializeForHttpResponse(String body) throws IOException { + public HttpResponse fakeOuterStringSerializeForHttpResponse(@javax.annotation.Nullable String body) throws IOException { UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/string"); @@ -425,7 +425,7 @@ public class FakeApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse fakeOuterStringSerializeForHttpResponse(String body, Map params) throws IOException { + public HttpResponse fakeOuterStringSerializeForHttpResponse(@javax.annotation.Nullable String body, Map params) throws IOException { UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/string"); @@ -461,7 +461,7 @@ public class FakeApi { * @param body The body parameter * @throws IOException if an error occurs while attempting to invoke the API **/ - public void testBodyWithFileSchema(FileSchemaTestClass body) throws IOException { + public void testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass body) throws IOException { testBodyWithFileSchemaForHttpResponse(body); } @@ -472,11 +472,11 @@ public class FakeApi { * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @throws IOException if an error occurs while attempting to invoke the API **/ - public void testBodyWithFileSchema(FileSchemaTestClass body, Map params) throws IOException { + public void testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass body, Map params) throws IOException { testBodyWithFileSchemaForHttpResponse(body, params); } - public HttpResponse testBodyWithFileSchemaForHttpResponse(FileSchemaTestClass body) throws IOException { + public HttpResponse testBodyWithFileSchemaForHttpResponse(@javax.annotation.Nonnull FileSchemaTestClass body) throws IOException { // verify the required parameter 'body' is set if (body == null) { throw new IllegalArgumentException("Missing the required parameter 'body' when calling testBodyWithFileSchema"); @@ -506,7 +506,7 @@ public class FakeApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute(); } - public HttpResponse testBodyWithFileSchemaForHttpResponse(FileSchemaTestClass body, Map params) throws IOException { + public HttpResponse testBodyWithFileSchemaForHttpResponse(@javax.annotation.Nonnull FileSchemaTestClass body, Map params) throws IOException { // verify the required parameter 'body' is set if (body == null) { throw new IllegalArgumentException("Missing the required parameter 'body' when calling testBodyWithFileSchema"); @@ -545,7 +545,7 @@ public class FakeApi { * @param body The body parameter * @throws IOException if an error occurs while attempting to invoke the API **/ - public void testBodyWithQueryParams(String query, User body) throws IOException { + public void testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User body) throws IOException { testBodyWithQueryParamsForHttpResponse(query, body); } @@ -556,11 +556,11 @@ public class FakeApi { * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @throws IOException if an error occurs while attempting to invoke the API **/ - public void testBodyWithQueryParams(String query, User body, Map params) throws IOException { + public void testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User body, Map params) throws IOException { testBodyWithQueryParamsForHttpResponse(query, body, params); } - public HttpResponse testBodyWithQueryParamsForHttpResponse(String query, User body) throws IOException { + public HttpResponse testBodyWithQueryParamsForHttpResponse(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User body) throws IOException { // verify the required parameter 'query' is set if (query == null) { throw new IllegalArgumentException("Missing the required parameter 'query' when calling testBodyWithQueryParams"); @@ -588,7 +588,7 @@ public class FakeApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute(); } - public HttpResponse testBodyWithQueryParamsForHttpResponse(String query, java.io.InputStream body, String mediaType) throws IOException { + public HttpResponse testBodyWithQueryParamsForHttpResponse(@javax.annotation.Nonnull String query, java.io.InputStream body, String mediaType) throws IOException { // verify the required parameter 'query' is set if (query == null) { throw new IllegalArgumentException("Missing the required parameter 'query' when calling testBodyWithQueryParams"); @@ -618,7 +618,7 @@ public class FakeApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute(); } - public HttpResponse testBodyWithQueryParamsForHttpResponse(String query, User body, Map params) throws IOException { + public HttpResponse testBodyWithQueryParamsForHttpResponse(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User body, Map params) throws IOException { // verify the required parameter 'query' is set if (query == null) { throw new IllegalArgumentException("Missing the required parameter 'query' when calling testBodyWithQueryParams"); @@ -664,7 +664,7 @@ public class FakeApi { * @return Client * @throws IOException if an error occurs while attempting to invoke the API **/ - public Client testClientModel(Client body) throws IOException { + public Client testClientModel(@javax.annotation.Nonnull Client body) throws IOException { HttpResponse response = testClientModelForHttpResponse(body); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); @@ -679,13 +679,13 @@ public class FakeApi { * @return Client * @throws IOException if an error occurs while attempting to invoke the API **/ - public Client testClientModel(Client body, Map params) throws IOException { + public Client testClientModel(@javax.annotation.Nonnull Client body, Map params) throws IOException { HttpResponse response = testClientModelForHttpResponse(body, params); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } - public HttpResponse testClientModelForHttpResponse(Client body) throws IOException { + public HttpResponse testClientModelForHttpResponse(@javax.annotation.Nonnull Client body) throws IOException { // verify the required parameter 'body' is set if (body == null) { throw new IllegalArgumentException("Missing the required parameter 'body' when calling testClientModel"); @@ -715,7 +715,7 @@ public class FakeApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute(); } - public HttpResponse testClientModelForHttpResponse(Client body, Map params) throws IOException { + public HttpResponse testClientModelForHttpResponse(@javax.annotation.Nonnull Client body, Map params) throws IOException { // verify the required parameter 'body' is set if (body == null) { throw new IllegalArgumentException("Missing the required parameter 'body' when calling testClientModel"); @@ -769,7 +769,7 @@ public class FakeApi { * @param paramCallback None * @throws IOException 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 IOException { + 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 IOException { testEndpointParametersForHttpResponse(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -785,11 +785,11 @@ public class FakeApi { * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @throws IOException if an error occurs while attempting to invoke the API **/ - public void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Map params) throws IOException { + public void testEndpointParameters(@javax.annotation.Nonnull BigDecimal number, @javax.annotation.Nonnull Double _double, @javax.annotation.Nonnull String patternWithoutDelimiter, @javax.annotation.Nonnull byte[] _byte, Map params) throws IOException { testEndpointParametersForHttpResponse(number, _double, patternWithoutDelimiter, _byte, params); } - public HttpResponse testEndpointParametersForHttpResponse(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 IOException { + public HttpResponse testEndpointParametersForHttpResponse(@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 IOException { // verify the required parameter 'number' is set if (number == null) { throw new IllegalArgumentException("Missing the required parameter 'number' when calling testEndpointParameters"); @@ -812,7 +812,7 @@ public class FakeApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse testEndpointParametersForHttpResponse(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Map params) throws IOException { + public HttpResponse testEndpointParametersForHttpResponse(@javax.annotation.Nonnull BigDecimal number, @javax.annotation.Nonnull Double _double, @javax.annotation.Nonnull String patternWithoutDelimiter, @javax.annotation.Nonnull byte[] _byte, Map params) throws IOException { // verify the required parameter 'number' is set if (number == null) { throw new IllegalArgumentException("Missing the required parameter 'number' when calling testEndpointParameters"); @@ -869,7 +869,7 @@ public class FakeApi { * @param enumFormString Form parameter enum test (string) * @throws IOException 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 enumFormStringArray, String enumFormString) throws IOException { + 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 enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws IOException { testEnumParametersForHttpResponse(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -885,7 +885,7 @@ public class FakeApi { testEnumParametersForHttpResponse(params); } - public HttpResponse testEnumParametersForHttpResponse(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws IOException { + public HttpResponse testEnumParametersForHttpResponse(@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 enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws IOException { UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake"); if (enumQueryStringArray != null) { @@ -979,7 +979,7 @@ public class FakeApi { * @param int64Group Integer in group parameters * @throws IOException 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 IOException { + 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 IOException { testGroupParametersForHttpResponse(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -993,11 +993,11 @@ public class FakeApi { * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @throws IOException if an error occurs while attempting to invoke the API **/ - public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Map params) throws IOException { + public void testGroupParameters(@javax.annotation.Nonnull Integer requiredStringGroup, @javax.annotation.Nonnull Boolean requiredBooleanGroup, @javax.annotation.Nonnull Long requiredInt64Group, Map params) throws IOException { testGroupParametersForHttpResponse(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, params); } - public HttpResponse testGroupParametersForHttpResponse(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws IOException { + public HttpResponse testGroupParametersForHttpResponse(@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 IOException { // verify the required parameter 'requiredStringGroup' is set if (requiredStringGroup == null) { throw new IllegalArgumentException("Missing the required parameter 'requiredStringGroup' when calling testGroupParameters"); @@ -1058,7 +1058,7 @@ public class FakeApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.DELETE, genericUrl, content).execute(); } - public HttpResponse testGroupParametersForHttpResponse(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Map params) throws IOException { + public HttpResponse testGroupParametersForHttpResponse(@javax.annotation.Nonnull Integer requiredStringGroup, @javax.annotation.Nonnull Boolean requiredBooleanGroup, @javax.annotation.Nonnull Long requiredInt64Group, Map params) throws IOException { // verify the required parameter 'requiredStringGroup' is set if (requiredStringGroup == null) { throw new IllegalArgumentException("Missing the required parameter 'requiredStringGroup' when calling testGroupParameters"); @@ -1107,7 +1107,7 @@ public class FakeApi { * @param param request body * @throws IOException if an error occurs while attempting to invoke the API **/ - public void testInlineAdditionalProperties(Map param) throws IOException { + public void testInlineAdditionalProperties(@javax.annotation.Nonnull Map param) throws IOException { testInlineAdditionalPropertiesForHttpResponse(param); } @@ -1118,11 +1118,11 @@ public class FakeApi { * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @throws IOException if an error occurs while attempting to invoke the API **/ - public void testInlineAdditionalProperties(Map param, Map params) throws IOException { + public void testInlineAdditionalProperties(@javax.annotation.Nonnull Map param, Map params) throws IOException { testInlineAdditionalPropertiesForHttpResponse(param, params); } - public HttpResponse testInlineAdditionalPropertiesForHttpResponse(Map param) throws IOException { + public HttpResponse testInlineAdditionalPropertiesForHttpResponse(@javax.annotation.Nonnull Map param) throws IOException { // verify the required parameter 'param' is set if (param == null) { throw new IllegalArgumentException("Missing the required parameter 'param' when calling testInlineAdditionalProperties"); @@ -1152,7 +1152,7 @@ public class FakeApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse testInlineAdditionalPropertiesForHttpResponse(Map param, Map params) throws IOException { + public HttpResponse testInlineAdditionalPropertiesForHttpResponse(@javax.annotation.Nonnull Map param, Map params) throws IOException { // verify the required parameter 'param' is set if (param == null) { throw new IllegalArgumentException("Missing the required parameter 'param' when calling testInlineAdditionalProperties"); @@ -1192,7 +1192,7 @@ public class FakeApi { * @param param2 field2 * @throws IOException if an error occurs while attempting to invoke the API **/ - public void testJsonFormData(String param, String param2) throws IOException { + public void testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws IOException { testJsonFormDataForHttpResponse(param, param2); } @@ -1204,11 +1204,11 @@ public class FakeApi { * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @throws IOException if an error occurs while attempting to invoke the API **/ - public void testJsonFormData(String param, String param2, Map params) throws IOException { + public void testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2, Map params) throws IOException { testJsonFormDataForHttpResponse(param, param2, params); } - public HttpResponse testJsonFormDataForHttpResponse(String param, String param2) throws IOException { + public HttpResponse testJsonFormDataForHttpResponse(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws IOException { // verify the required parameter 'param' is set if (param == null) { throw new IllegalArgumentException("Missing the required parameter 'param' when calling testJsonFormData"); @@ -1225,7 +1225,7 @@ public class FakeApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content).execute(); } - public HttpResponse testJsonFormDataForHttpResponse(String param, String param2, Map params) throws IOException { + public HttpResponse testJsonFormDataForHttpResponse(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2, Map params) throws IOException { // verify the required parameter 'param' is set if (param == null) { throw new IllegalArgumentException("Missing the required parameter 'param' when calling testJsonFormData"); @@ -1271,7 +1271,7 @@ public class FakeApi { * @param context The context parameter * @throws IOException if an error occurs while attempting to invoke the API **/ - public void testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context) throws IOException { + 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) throws IOException { testQueryParameterCollectionFormatForHttpResponse(pipe, ioutil, http, url, context); } @@ -1286,11 +1286,11 @@ public class FakeApi { * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @throws IOException if an error occurs while attempting to invoke the API **/ - public void testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, Map params) throws IOException { + 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, Map params) throws IOException { testQueryParameterCollectionFormatForHttpResponse(pipe, ioutil, http, url, context, params); } - public HttpResponse testQueryParameterCollectionFormatForHttpResponse(List pipe, List ioutil, List http, List url, List context) throws IOException { + public HttpResponse testQueryParameterCollectionFormatForHttpResponse(@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) throws IOException { // verify the required parameter 'pipe' is set if (pipe == null) { throw new IllegalArgumentException("Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat"); @@ -1367,7 +1367,7 @@ public class FakeApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute(); } - public HttpResponse testQueryParameterCollectionFormatForHttpResponse(List pipe, List ioutil, List http, List url, List context, Map params) throws IOException { + public HttpResponse testQueryParameterCollectionFormatForHttpResponse(@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, Map params) throws IOException { // verify the required parameter 'pipe' is set if (pipe == null) { throw new IllegalArgumentException("Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat"); diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 3456d18706f..c14f9567133 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -49,7 +49,7 @@ public class FakeClassnameTags123Api { * @return Client * @throws IOException if an error occurs while attempting to invoke the API **/ - public Client testClassname(Client body) throws IOException { + public Client testClassname(@javax.annotation.Nonnull Client body) throws IOException { HttpResponse response = testClassnameForHttpResponse(body); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); @@ -64,13 +64,13 @@ public class FakeClassnameTags123Api { * @return Client * @throws IOException if an error occurs while attempting to invoke the API **/ - public Client testClassname(Client body, Map params) throws IOException { + public Client testClassname(@javax.annotation.Nonnull Client body, Map params) throws IOException { HttpResponse response = testClassnameForHttpResponse(body, params); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } - public HttpResponse testClassnameForHttpResponse(Client body) throws IOException { + public HttpResponse testClassnameForHttpResponse(@javax.annotation.Nonnull Client body) throws IOException { // verify the required parameter 'body' is set if (body == null) { throw new IllegalArgumentException("Missing the required parameter 'body' when calling testClassname"); @@ -100,7 +100,7 @@ public class FakeClassnameTags123Api { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute(); } - public HttpResponse testClassnameForHttpResponse(Client body, Map params) throws IOException { + public HttpResponse testClassnameForHttpResponse(@javax.annotation.Nonnull Client body, Map params) throws IOException { // verify the required parameter 'body' is set if (body == null) { throw new IllegalArgumentException("Missing the required parameter 'body' when calling testClassname"); diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/PetApi.java index d1c93dcdb24..ad09ea05b79 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/PetApi.java @@ -51,7 +51,7 @@ public class PetApi { * @param body Pet object that needs to be added to the store * @throws IOException if an error occurs while attempting to invoke the API **/ - public void addPet(Pet body) throws IOException { + public void addPet(@javax.annotation.Nonnull Pet body) throws IOException { addPetForHttpResponse(body); } @@ -63,11 +63,11 @@ public class PetApi { * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @throws IOException if an error occurs while attempting to invoke the API **/ - public void addPet(Pet body, Map params) throws IOException { + public void addPet(@javax.annotation.Nonnull Pet body, Map params) throws IOException { addPetForHttpResponse(body, params); } - public HttpResponse addPetForHttpResponse(Pet body) throws IOException { + public HttpResponse addPetForHttpResponse(@javax.annotation.Nonnull Pet body) throws IOException { // verify the required parameter 'body' is set if (body == null) { throw new IllegalArgumentException("Missing the required parameter 'body' when calling addPet"); @@ -97,7 +97,7 @@ public class PetApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse addPetForHttpResponse(Pet body, Map params) throws IOException { + public HttpResponse addPetForHttpResponse(@javax.annotation.Nonnull Pet body, Map params) throws IOException { // verify the required parameter 'body' is set if (body == null) { throw new IllegalArgumentException("Missing the required parameter 'body' when calling addPet"); @@ -138,7 +138,7 @@ public class PetApi { * @param apiKey The apiKey parameter * @throws IOException if an error occurs while attempting to invoke the API **/ - public void deletePet(Long petId, String apiKey) throws IOException { + public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws IOException { deletePetForHttpResponse(petId, apiKey); } @@ -150,11 +150,11 @@ public class PetApi { * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @throws IOException if an error occurs while attempting to invoke the API **/ - public void deletePet(Long petId, Map params) throws IOException { + public void deletePet(@javax.annotation.Nonnull Long petId, Map params) throws IOException { deletePetForHttpResponse(petId, params); } - public HttpResponse deletePetForHttpResponse(Long petId, String apiKey) throws IOException { + public HttpResponse deletePetForHttpResponse(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws IOException { // verify the required parameter 'petId' is set if (petId == null) { throw new IllegalArgumentException("Missing the required parameter 'petId' when calling deletePet"); @@ -171,7 +171,7 @@ public class PetApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.DELETE, genericUrl, content).execute(); } - public HttpResponse deletePetForHttpResponse(Long petId, Map params) throws IOException { + public HttpResponse deletePetForHttpResponse(@javax.annotation.Nonnull Long petId, Map params) throws IOException { // verify the required parameter 'petId' is set if (petId == null) { throw new IllegalArgumentException("Missing the required parameter 'petId' when calling deletePet"); @@ -216,7 +216,7 @@ public class PetApi { * @return List<Pet> * @throws IOException if an error occurs while attempting to invoke the API **/ - public List findPetsByStatus(List status) throws IOException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws IOException { HttpResponse response = findPetsByStatusForHttpResponse(status); TypeReference> typeRef = new TypeReference>() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); @@ -232,13 +232,13 @@ public class PetApi { * @return List<Pet> * @throws IOException if an error occurs while attempting to invoke the API **/ - public List findPetsByStatus(List status, Map params) throws IOException { + public List findPetsByStatus(@javax.annotation.Nonnull List status, Map params) throws IOException { HttpResponse response = findPetsByStatusForHttpResponse(status, params); TypeReference> typeRef = new TypeReference>() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } - public HttpResponse findPetsByStatusForHttpResponse(List status) throws IOException { + public HttpResponse findPetsByStatusForHttpResponse(@javax.annotation.Nonnull List status) throws IOException { // verify the required parameter 'status' is set if (status == null) { throw new IllegalArgumentException("Missing the required parameter 'status' when calling findPetsByStatus"); @@ -263,7 +263,7 @@ public class PetApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content).execute(); } - public HttpResponse findPetsByStatusForHttpResponse(List status, Map params) throws IOException { + public HttpResponse findPetsByStatusForHttpResponse(@javax.annotation.Nonnull List status, Map params) throws IOException { // verify the required parameter 'status' is set if (status == null) { throw new IllegalArgumentException("Missing the required parameter 'status' when calling findPetsByStatus"); @@ -310,7 +310,7 @@ public class PetApi { **/ @Deprecated - public Set findPetsByTags(Set tags) throws IOException { + public Set findPetsByTags(@javax.annotation.Nonnull Set tags) throws IOException { HttpResponse response = findPetsByTagsForHttpResponse(tags); TypeReference> typeRef = new TypeReference>() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); @@ -329,14 +329,14 @@ public class PetApi { **/ @Deprecated - public Set findPetsByTags(Set tags, Map params) throws IOException { + public Set findPetsByTags(@javax.annotation.Nonnull Set tags, Map params) throws IOException { HttpResponse response = findPetsByTagsForHttpResponse(tags, params); TypeReference> typeRef = new TypeReference>() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } @Deprecated - public HttpResponse findPetsByTagsForHttpResponse(Set tags) throws IOException { + public HttpResponse findPetsByTagsForHttpResponse(@javax.annotation.Nonnull Set tags) throws IOException { // verify the required parameter 'tags' is set if (tags == null) { throw new IllegalArgumentException("Missing the required parameter 'tags' when calling findPetsByTags"); @@ -362,7 +362,7 @@ public class PetApi { } @Deprecated - public HttpResponse findPetsByTagsForHttpResponse(Set tags, Map params) throws IOException { + public HttpResponse findPetsByTagsForHttpResponse(@javax.annotation.Nonnull Set tags, Map params) throws IOException { // verify the required parameter 'tags' is set if (tags == null) { throw new IllegalArgumentException("Missing the required parameter 'tags' when calling findPetsByTags"); @@ -407,7 +407,7 @@ public class PetApi { * @return Pet * @throws IOException if an error occurs while attempting to invoke the API **/ - public Pet getPetById(Long petId) throws IOException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws IOException { HttpResponse response = getPetByIdForHttpResponse(petId); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); @@ -424,13 +424,13 @@ public class PetApi { * @return Pet * @throws IOException if an error occurs while attempting to invoke the API **/ - public Pet getPetById(Long petId, Map params) throws IOException { + public Pet getPetById(@javax.annotation.Nonnull Long petId, Map params) throws IOException { HttpResponse response = getPetByIdForHttpResponse(petId, params); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } - public HttpResponse getPetByIdForHttpResponse(Long petId) throws IOException { + public HttpResponse getPetByIdForHttpResponse(@javax.annotation.Nonnull Long petId) throws IOException { // verify the required parameter 'petId' is set if (petId == null) { throw new IllegalArgumentException("Missing the required parameter 'petId' when calling getPetById"); @@ -447,7 +447,7 @@ public class PetApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content).execute(); } - public HttpResponse getPetByIdForHttpResponse(Long petId, Map params) throws IOException { + public HttpResponse getPetByIdForHttpResponse(@javax.annotation.Nonnull Long petId, Map params) throws IOException { // verify the required parameter 'petId' is set if (petId == null) { throw new IllegalArgumentException("Missing the required parameter 'petId' when calling getPetById"); @@ -492,7 +492,7 @@ public class PetApi { * @param body Pet object that needs to be added to the store * @throws IOException if an error occurs while attempting to invoke the API **/ - public void updatePet(Pet body) throws IOException { + public void updatePet(@javax.annotation.Nonnull Pet body) throws IOException { updatePetForHttpResponse(body); } @@ -506,11 +506,11 @@ public class PetApi { * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @throws IOException if an error occurs while attempting to invoke the API **/ - public void updatePet(Pet body, Map params) throws IOException { + public void updatePet(@javax.annotation.Nonnull Pet body, Map params) throws IOException { updatePetForHttpResponse(body, params); } - public HttpResponse updatePetForHttpResponse(Pet body) throws IOException { + public HttpResponse updatePetForHttpResponse(@javax.annotation.Nonnull Pet body) throws IOException { // verify the required parameter 'body' is set if (body == null) { throw new IllegalArgumentException("Missing the required parameter 'body' when calling updatePet"); @@ -540,7 +540,7 @@ public class PetApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute(); } - public HttpResponse updatePetForHttpResponse(Pet body, Map params) throws IOException { + public HttpResponse updatePetForHttpResponse(@javax.annotation.Nonnull Pet body, Map params) throws IOException { // verify the required parameter 'body' is set if (body == null) { throw new IllegalArgumentException("Missing the required parameter 'body' when calling updatePet"); @@ -581,7 +581,7 @@ public class PetApi { * @param status Updated status of the pet * @throws IOException if an error occurs while attempting to invoke the API **/ - public void updatePetWithForm(Long petId, String name, String status) throws IOException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws IOException { updatePetWithFormForHttpResponse(petId, name, status); } @@ -592,11 +592,11 @@ public class PetApi { * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @throws IOException if an error occurs while attempting to invoke the API **/ - public void updatePetWithForm(Long petId, Map params) throws IOException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, Map params) throws IOException { updatePetWithFormForHttpResponse(petId, params); } - public HttpResponse updatePetWithFormForHttpResponse(Long petId, String name, String status) throws IOException { + public HttpResponse updatePetWithFormForHttpResponse(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws IOException { // verify the required parameter 'petId' is set if (petId == null) { throw new IllegalArgumentException("Missing the required parameter 'petId' when calling updatePetWithForm"); @@ -613,7 +613,7 @@ public class PetApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse updatePetWithFormForHttpResponse(Long petId, Map params) throws IOException { + public HttpResponse updatePetWithFormForHttpResponse(@javax.annotation.Nonnull Long petId, Map params) throws IOException { // verify the required parameter 'petId' is set if (petId == null) { throw new IllegalArgumentException("Missing the required parameter 'petId' when calling updatePetWithForm"); @@ -658,7 +658,7 @@ public class PetApi { * @return ModelApiResponse * @throws IOException if an error occurs while attempting to invoke the API **/ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws IOException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws IOException { HttpResponse response = uploadFileForHttpResponse(petId, additionalMetadata, _file); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); @@ -672,13 +672,13 @@ public class PetApi { * @return ModelApiResponse * @throws IOException if an error occurs while attempting to invoke the API **/ - public ModelApiResponse uploadFile(Long petId, Map params) throws IOException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, Map params) throws IOException { HttpResponse response = uploadFileForHttpResponse(petId, params); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } - public HttpResponse uploadFileForHttpResponse(Long petId, String additionalMetadata, File _file) throws IOException { + public HttpResponse uploadFileForHttpResponse(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws IOException { // verify the required parameter 'petId' is set if (petId == null) { throw new IllegalArgumentException("Missing the required parameter 'petId' when calling uploadFile"); @@ -695,7 +695,7 @@ public class PetApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse uploadFileForHttpResponse(Long petId, Map params) throws IOException { + public HttpResponse uploadFileForHttpResponse(@javax.annotation.Nonnull Long petId, Map params) throws IOException { // verify the required parameter 'petId' is set if (petId == null) { throw new IllegalArgumentException("Missing the required parameter 'petId' when calling uploadFile"); @@ -740,7 +740,7 @@ public class PetApi { * @return ModelApiResponse * @throws IOException if an error occurs while attempting to invoke the API **/ - public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws IOException { + public ModelApiResponse uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws IOException { HttpResponse response = uploadFileWithRequiredFileForHttpResponse(petId, requiredFile, additionalMetadata); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); @@ -755,13 +755,13 @@ public class PetApi { * @return ModelApiResponse * @throws IOException if an error occurs while attempting to invoke the API **/ - public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, Map params) throws IOException { + public ModelApiResponse uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, Map params) throws IOException { HttpResponse response = uploadFileWithRequiredFileForHttpResponse(petId, requiredFile, params); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } - public HttpResponse uploadFileWithRequiredFileForHttpResponse(Long petId, File requiredFile, String additionalMetadata) throws IOException { + public HttpResponse uploadFileWithRequiredFileForHttpResponse(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws IOException { // verify the required parameter 'petId' is set if (petId == null) { throw new IllegalArgumentException("Missing the required parameter 'petId' when calling uploadFileWithRequiredFile"); @@ -781,7 +781,7 @@ public class PetApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse uploadFileWithRequiredFileForHttpResponse(Long petId, File requiredFile, Map params) throws IOException { + public HttpResponse uploadFileWithRequiredFileForHttpResponse(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, Map params) throws IOException { // verify the required parameter 'petId' is set if (petId == null) { throw new IllegalArgumentException("Missing the required parameter 'petId' when calling uploadFileWithRequiredFile"); diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/StoreApi.java index d6af63e4d81..77eb1538d48 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/StoreApi.java @@ -49,7 +49,7 @@ public class StoreApi { * @param orderId ID of the order that needs to be deleted * @throws IOException if an error occurs while attempting to invoke the API **/ - public void deleteOrder(String orderId) throws IOException { + public void deleteOrder(@javax.annotation.Nonnull String orderId) throws IOException { deleteOrderForHttpResponse(orderId); } @@ -62,11 +62,11 @@ public class StoreApi { * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @throws IOException if an error occurs while attempting to invoke the API **/ - public void deleteOrder(String orderId, Map params) throws IOException { + public void deleteOrder(@javax.annotation.Nonnull String orderId, Map params) throws IOException { deleteOrderForHttpResponse(orderId, params); } - public HttpResponse deleteOrderForHttpResponse(String orderId) throws IOException { + public HttpResponse deleteOrderForHttpResponse(@javax.annotation.Nonnull String orderId) throws IOException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new IllegalArgumentException("Missing the required parameter 'orderId' when calling deleteOrder"); @@ -83,7 +83,7 @@ public class StoreApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.DELETE, genericUrl, content).execute(); } - public HttpResponse deleteOrderForHttpResponse(String orderId, Map params) throws IOException { + public HttpResponse deleteOrderForHttpResponse(@javax.annotation.Nonnull String orderId, Map params) throws IOException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new IllegalArgumentException("Missing the required parameter 'orderId' when calling deleteOrder"); @@ -197,7 +197,7 @@ public class StoreApi { * @return Order * @throws IOException if an error occurs while attempting to invoke the API **/ - public Order getOrderById(Long orderId) throws IOException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws IOException { HttpResponse response = getOrderByIdForHttpResponse(orderId); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); @@ -214,13 +214,13 @@ public class StoreApi { * @return Order * @throws IOException if an error occurs while attempting to invoke the API **/ - public Order getOrderById(Long orderId, Map params) throws IOException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId, Map params) throws IOException { HttpResponse response = getOrderByIdForHttpResponse(orderId, params); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } - public HttpResponse getOrderByIdForHttpResponse(Long orderId) throws IOException { + public HttpResponse getOrderByIdForHttpResponse(@javax.annotation.Nonnull Long orderId) throws IOException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new IllegalArgumentException("Missing the required parameter 'orderId' when calling getOrderById"); @@ -237,7 +237,7 @@ public class StoreApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content).execute(); } - public HttpResponse getOrderByIdForHttpResponse(Long orderId, Map params) throws IOException { + public HttpResponse getOrderByIdForHttpResponse(@javax.annotation.Nonnull Long orderId, Map params) throws IOException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new IllegalArgumentException("Missing the required parameter 'orderId' when calling getOrderById"); @@ -281,7 +281,7 @@ public class StoreApi { * @return Order * @throws IOException if an error occurs while attempting to invoke the API **/ - public Order placeOrder(Order body) throws IOException { + public Order placeOrder(@javax.annotation.Nonnull Order body) throws IOException { HttpResponse response = placeOrderForHttpResponse(body); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); @@ -296,13 +296,13 @@ public class StoreApi { * @return Order * @throws IOException if an error occurs while attempting to invoke the API **/ - public Order placeOrder(Order body, Map params) throws IOException { + public Order placeOrder(@javax.annotation.Nonnull Order body, Map params) throws IOException { HttpResponse response = placeOrderForHttpResponse(body, params); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } - public HttpResponse placeOrderForHttpResponse(Order body) throws IOException { + public HttpResponse placeOrderForHttpResponse(@javax.annotation.Nonnull Order body) throws IOException { // verify the required parameter 'body' is set if (body == null) { throw new IllegalArgumentException("Missing the required parameter 'body' when calling placeOrder"); @@ -332,7 +332,7 @@ public class StoreApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse placeOrderForHttpResponse(Order body, Map params) throws IOException { + public HttpResponse placeOrderForHttpResponse(@javax.annotation.Nonnull Order body, Map params) throws IOException { // verify the required parameter 'body' is set if (body == null) { throw new IllegalArgumentException("Missing the required parameter 'body' when calling placeOrder"); diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/UserApi.java index 98a847be44f..550795e4f88 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/UserApi.java @@ -49,7 +49,7 @@ public class UserApi { * @param body Created user object * @throws IOException if an error occurs while attempting to invoke the API **/ - public void createUser(User body) throws IOException { + public void createUser(@javax.annotation.Nonnull User body) throws IOException { createUserForHttpResponse(body); } @@ -61,11 +61,11 @@ public class UserApi { * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @throws IOException if an error occurs while attempting to invoke the API **/ - public void createUser(User body, Map params) throws IOException { + public void createUser(@javax.annotation.Nonnull User body, Map params) throws IOException { createUserForHttpResponse(body, params); } - public HttpResponse createUserForHttpResponse(User body) throws IOException { + public HttpResponse createUserForHttpResponse(@javax.annotation.Nonnull User body) throws IOException { // verify the required parameter 'body' is set if (body == null) { throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUser"); @@ -95,7 +95,7 @@ public class UserApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse createUserForHttpResponse(User body, Map params) throws IOException { + public HttpResponse createUserForHttpResponse(@javax.annotation.Nonnull User body, Map params) throws IOException { // verify the required parameter 'body' is set if (body == null) { throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUser"); @@ -134,7 +134,7 @@ public class UserApi { * @param body List of user object * @throws IOException if an error occurs while attempting to invoke the API **/ - public void createUsersWithArrayInput(List body) throws IOException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List body) throws IOException { createUsersWithArrayInputForHttpResponse(body); } @@ -145,11 +145,11 @@ public class UserApi { * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @throws IOException if an error occurs while attempting to invoke the API **/ - public void createUsersWithArrayInput(List body, Map params) throws IOException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List body, Map params) throws IOException { createUsersWithArrayInputForHttpResponse(body, params); } - public HttpResponse createUsersWithArrayInputForHttpResponse(List body) throws IOException { + public HttpResponse createUsersWithArrayInputForHttpResponse(@javax.annotation.Nonnull List body) throws IOException { // verify the required parameter 'body' is set if (body == null) { throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUsersWithArrayInput"); @@ -179,7 +179,7 @@ public class UserApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse createUsersWithArrayInputForHttpResponse(List body, Map params) throws IOException { + public HttpResponse createUsersWithArrayInputForHttpResponse(@javax.annotation.Nonnull List body, Map params) throws IOException { // verify the required parameter 'body' is set if (body == null) { throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUsersWithArrayInput"); @@ -218,7 +218,7 @@ public class UserApi { * @param body List of user object * @throws IOException if an error occurs while attempting to invoke the API **/ - public void createUsersWithListInput(List body) throws IOException { + public void createUsersWithListInput(@javax.annotation.Nonnull List body) throws IOException { createUsersWithListInputForHttpResponse(body); } @@ -229,11 +229,11 @@ public class UserApi { * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @throws IOException if an error occurs while attempting to invoke the API **/ - public void createUsersWithListInput(List body, Map params) throws IOException { + public void createUsersWithListInput(@javax.annotation.Nonnull List body, Map params) throws IOException { createUsersWithListInputForHttpResponse(body, params); } - public HttpResponse createUsersWithListInputForHttpResponse(List body) throws IOException { + public HttpResponse createUsersWithListInputForHttpResponse(@javax.annotation.Nonnull List body) throws IOException { // verify the required parameter 'body' is set if (body == null) { throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUsersWithListInput"); @@ -263,7 +263,7 @@ public class UserApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse createUsersWithListInputForHttpResponse(List body, Map params) throws IOException { + public HttpResponse createUsersWithListInputForHttpResponse(@javax.annotation.Nonnull List body, Map params) throws IOException { // verify the required parameter 'body' is set if (body == null) { throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUsersWithListInput"); @@ -304,7 +304,7 @@ public class UserApi { * @param username The name that needs to be deleted * @throws IOException if an error occurs while attempting to invoke the API **/ - public void deleteUser(String username) throws IOException { + public void deleteUser(@javax.annotation.Nonnull String username) throws IOException { deleteUserForHttpResponse(username); } @@ -317,11 +317,11 @@ public class UserApi { * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @throws IOException if an error occurs while attempting to invoke the API **/ - public void deleteUser(String username, Map params) throws IOException { + public void deleteUser(@javax.annotation.Nonnull String username, Map params) throws IOException { deleteUserForHttpResponse(username, params); } - public HttpResponse deleteUserForHttpResponse(String username) throws IOException { + public HttpResponse deleteUserForHttpResponse(@javax.annotation.Nonnull String username) throws IOException { // verify the required parameter 'username' is set if (username == null) { throw new IllegalArgumentException("Missing the required parameter 'username' when calling deleteUser"); @@ -338,7 +338,7 @@ public class UserApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.DELETE, genericUrl, content).execute(); } - public HttpResponse deleteUserForHttpResponse(String username, Map params) throws IOException { + public HttpResponse deleteUserForHttpResponse(@javax.annotation.Nonnull String username, Map params) throws IOException { // verify the required parameter 'username' is set if (username == null) { throw new IllegalArgumentException("Missing the required parameter 'username' when calling deleteUser"); @@ -383,7 +383,7 @@ public class UserApi { * @return User * @throws IOException if an error occurs while attempting to invoke the API **/ - public User getUserByName(String username) throws IOException { + public User getUserByName(@javax.annotation.Nonnull String username) throws IOException { HttpResponse response = getUserByNameForHttpResponse(username); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); @@ -399,13 +399,13 @@ public class UserApi { * @return User * @throws IOException if an error occurs while attempting to invoke the API **/ - public User getUserByName(String username, Map params) throws IOException { + public User getUserByName(@javax.annotation.Nonnull String username, Map params) throws IOException { HttpResponse response = getUserByNameForHttpResponse(username, params); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } - public HttpResponse getUserByNameForHttpResponse(String username) throws IOException { + public HttpResponse getUserByNameForHttpResponse(@javax.annotation.Nonnull String username) throws IOException { // verify the required parameter 'username' is set if (username == null) { throw new IllegalArgumentException("Missing the required parameter 'username' when calling getUserByName"); @@ -422,7 +422,7 @@ public class UserApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content).execute(); } - public HttpResponse getUserByNameForHttpResponse(String username, Map params) throws IOException { + public HttpResponse getUserByNameForHttpResponse(@javax.annotation.Nonnull String username, Map params) throws IOException { // verify the required parameter 'username' is set if (username == null) { throw new IllegalArgumentException("Missing the required parameter 'username' when calling getUserByName"); @@ -467,7 +467,7 @@ public class UserApi { * @return String * @throws IOException if an error occurs while attempting to invoke the API **/ - public String loginUser(String username, String password) throws IOException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws IOException { HttpResponse response = loginUserForHttpResponse(username, password); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); @@ -483,13 +483,13 @@ public class UserApi { * @return String * @throws IOException if an error occurs while attempting to invoke the API **/ - public String loginUser(String username, String password, Map params) throws IOException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, Map params) throws IOException { HttpResponse response = loginUserForHttpResponse(username, password, params); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } - public HttpResponse loginUserForHttpResponse(String username, String password) throws IOException { + public HttpResponse loginUserForHttpResponse(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws IOException { // verify the required parameter 'username' is set if (username == null) { throw new IllegalArgumentException("Missing the required parameter 'username' when calling loginUser"); @@ -527,7 +527,7 @@ public class UserApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content).execute(); } - public HttpResponse loginUserForHttpResponse(String username, String password, Map params) throws IOException { + public HttpResponse loginUserForHttpResponse(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, Map params) throws IOException { // verify the required parameter 'username' is set if (username == null) { throw new IllegalArgumentException("Missing the required parameter 'username' when calling loginUser"); @@ -636,7 +636,7 @@ public class UserApi { * @param body Updated user object * @throws IOException if an error occurs while attempting to invoke the API **/ - public void updateUser(String username, User body) throws IOException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User body) throws IOException { updateUserForHttpResponse(username, body); } @@ -650,11 +650,11 @@ public class UserApi { * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @throws IOException if an error occurs while attempting to invoke the API **/ - public void updateUser(String username, User body, Map params) throws IOException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User body, Map params) throws IOException { updateUserForHttpResponse(username, body, params); } - public HttpResponse updateUserForHttpResponse(String username, User body) throws IOException { + public HttpResponse updateUserForHttpResponse(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User body) throws IOException { // verify the required parameter 'username' is set if (username == null) { throw new IllegalArgumentException("Missing the required parameter 'username' when calling updateUser"); @@ -674,7 +674,7 @@ public class UserApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute(); } - public HttpResponse updateUserForHttpResponse(String username, java.io.InputStream body, String mediaType) throws IOException { + public HttpResponse updateUserForHttpResponse(@javax.annotation.Nonnull String username, java.io.InputStream body, String mediaType) throws IOException { // verify the required parameter 'username' is set if (username == null) { throw new IllegalArgumentException("Missing the required parameter 'username' when calling updateUser"); @@ -696,7 +696,7 @@ public class UserApi { return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute(); } - public HttpResponse updateUserForHttpResponse(String username, User body, Map params) throws IOException { + public HttpResponse updateUserForHttpResponse(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User body, Map params) throws IOException { // verify the required parameter 'username' is set if (username == null) { throw new IllegalArgumentException("Missing the required parameter 'username' when calling updateUser"); diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 097d0117136..c64182c4a41 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -61,7 +61,7 @@ public class AnotherFakeApi { 200 successful operation - */ - public Client call123testSpecialTags(UUID uuidTest, Client body) throws ApiException { + public Client call123testSpecialTags(@javax.annotation.Nonnull UUID uuidTest, @javax.annotation.Nonnull Client body) throws ApiException { return call123testSpecialTagsWithHttpInfo(uuidTest, body).getData(); } @@ -79,7 +79,7 @@ public class AnotherFakeApi { 200 successful operation - */ - public ApiResponse call123testSpecialTagsWithHttpInfo(UUID uuidTest, Client body) throws ApiException { + public ApiResponse call123testSpecialTagsWithHttpInfo(@javax.annotation.Nonnull UUID uuidTest, @javax.annotation.Nonnull Client body) throws ApiException { // Check required parameters if (uuidTest == null) { throw new ApiException(400, "Missing the required parameter 'uuidTest' when calling call123testSpecialTags"); diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/FakeApi.java index a4c5174b6ae..387442163ae 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/FakeApi.java @@ -66,7 +66,7 @@ public class FakeApi { 200 successful operation - */ - public void createXmlItem(XmlItem xmlItem) throws ApiException { + public void createXmlItem(@javax.annotation.Nonnull XmlItem xmlItem) throws ApiException { createXmlItemWithHttpInfo(xmlItem); } @@ -83,7 +83,7 @@ public class FakeApi { 200 successful operation - */ - public ApiResponse createXmlItemWithHttpInfo(XmlItem xmlItem) throws ApiException { + public ApiResponse createXmlItemWithHttpInfo(@javax.annotation.Nonnull XmlItem xmlItem) throws ApiException { // Check required parameters if (xmlItem == null) { throw new ApiException(400, "Missing the required parameter 'xmlItem' when calling createXmlItem"); @@ -108,7 +108,7 @@ public class FakeApi { 200 Output boolean - */ - public Boolean fakeOuterBooleanSerialize(Boolean body) throws ApiException { + public Boolean fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body) throws ApiException { return fakeOuterBooleanSerializeWithHttpInfo(body).getData(); } @@ -125,7 +125,7 @@ public class FakeApi { 200 Output boolean - */ - public ApiResponse fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws ApiException { + public ApiResponse fakeOuterBooleanSerializeWithHttpInfo(@javax.annotation.Nullable Boolean body) throws ApiException { String localVarAccept = apiClient.selectHeaderAccept("*/*"); String localVarContentType = apiClient.selectHeaderContentType(); GenericType localVarReturnType = new GenericType() {}; @@ -146,7 +146,7 @@ public class FakeApi { 200 Output composite - */ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException { + public OuterComposite fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite body) throws ApiException { return fakeOuterCompositeSerializeWithHttpInfo(body).getData(); } @@ -163,7 +163,7 @@ public class FakeApi { 200 Output composite - */ - public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(OuterComposite body) throws ApiException { + public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(@javax.annotation.Nullable OuterComposite body) throws ApiException { String localVarAccept = apiClient.selectHeaderAccept("*/*"); String localVarContentType = apiClient.selectHeaderContentType(); GenericType localVarReturnType = new GenericType() {}; @@ -184,7 +184,7 @@ public class FakeApi { 200 Output number - */ - public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws ApiException { + public BigDecimal fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body) throws ApiException { return fakeOuterNumberSerializeWithHttpInfo(body).getData(); } @@ -201,7 +201,7 @@ public class FakeApi { 200 Output number - */ - public ApiResponse fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws ApiException { + public ApiResponse fakeOuterNumberSerializeWithHttpInfo(@javax.annotation.Nullable BigDecimal body) throws ApiException { String localVarAccept = apiClient.selectHeaderAccept("*/*"); String localVarContentType = apiClient.selectHeaderContentType(); GenericType localVarReturnType = new GenericType() {}; @@ -222,7 +222,7 @@ public class FakeApi { 200 Output string - */ - public String fakeOuterStringSerialize(String body) throws ApiException { + public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws ApiException { return fakeOuterStringSerializeWithHttpInfo(body).getData(); } @@ -239,7 +239,7 @@ public class FakeApi { 200 Output string - */ - public ApiResponse fakeOuterStringSerializeWithHttpInfo(String body) throws ApiException { + public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws ApiException { String localVarAccept = apiClient.selectHeaderAccept("*/*"); String localVarContentType = apiClient.selectHeaderContentType(); GenericType localVarReturnType = new GenericType() {}; @@ -259,7 +259,7 @@ public class FakeApi { 200 Success - */ - public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException { + public void testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass body) throws ApiException { testBodyWithFileSchemaWithHttpInfo(body); } @@ -276,7 +276,7 @@ public class FakeApi { 200 Success - */ - public ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws ApiException { + public ApiResponse testBodyWithFileSchemaWithHttpInfo(@javax.annotation.Nonnull FileSchemaTestClass body) throws ApiException { // Check required parameters if (body == null) { throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithFileSchema"); @@ -301,7 +301,7 @@ public class FakeApi { 200 Success - */ - public void testBodyWithQueryParams(String query, User body) throws ApiException { + public void testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User body) throws ApiException { testBodyWithQueryParamsWithHttpInfo(query, body); } @@ -319,7 +319,7 @@ public class FakeApi { 200 Success - */ - public ApiResponse testBodyWithQueryParamsWithHttpInfo(String query, User body) throws ApiException { + public ApiResponse testBodyWithQueryParamsWithHttpInfo(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User body) throws ApiException { // Check required parameters if (query == null) { throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams"); @@ -352,7 +352,7 @@ public class FakeApi { 200 successful operation - */ - public Client testClientModel(Client body) throws ApiException { + public Client testClientModel(@javax.annotation.Nonnull Client body) throws ApiException { return testClientModelWithHttpInfo(body).getData(); } @@ -369,7 +369,7 @@ public class FakeApi { 200 successful operation - */ - public ApiResponse testClientModelWithHttpInfo(Client body) throws ApiException { + public ApiResponse testClientModelWithHttpInfo(@javax.annotation.Nonnull Client body) throws ApiException { // Check required parameters if (body == null) { throw new ApiException(400, "Missing the required parameter 'body' when calling testClientModel"); @@ -408,7 +408,7 @@ public class FakeApi { 404 User not found - */ - 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, LocalDateTime dateTime, String password, String paramCallback) throws ApiException { + 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 LocalDateTime dateTime, @javax.annotation.Nullable String password, @javax.annotation.Nullable String paramCallback) throws ApiException { testEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -439,7 +439,7 @@ public class FakeApi { 404 User not found - */ - public ApiResponse testEndpointParametersWithHttpInfo(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, LocalDateTime dateTime, String password, String paramCallback) throws ApiException { + public ApiResponse 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 LocalDateTime dateTime, @javax.annotation.Nullable String password, @javax.annotation.Nullable String paramCallback) throws ApiException { // Check required parameters if (number == null) { throw new ApiException(400, "Missing the required parameter 'number' when calling testEndpointParameters"); @@ -518,7 +518,7 @@ public class FakeApi { 404 Not found - */ - public void testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { + 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 enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws ApiException { testEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -543,7 +543,7 @@ public class FakeApi { 404 Not found - */ - public ApiResponse testEnumParametersWithHttpInfo(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { + public ApiResponse 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 enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws ApiException { // Query parameters List localVarQueryParams = new ArrayList<>( apiClient.parameterToPairs("csv", "enum_query_string_array", enumQueryStringArray) @@ -577,7 +577,7 @@ public class FakeApi { null, null, false); } -private ApiResponse testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { +private ApiResponse 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 ApiException { // Check required parameters if (requiredStringGroup == null) { throw new ApiException(400, "Missing the required parameter 'requiredStringGroup' when calling testGroupParameters"); @@ -612,11 +612,17 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString } public class APItestGroupParametersRequest { + @javax.annotation.Nonnull private Integer requiredStringGroup; + @javax.annotation.Nonnull private Boolean requiredBooleanGroup; + @javax.annotation.Nonnull private Long requiredInt64Group; + @javax.annotation.Nullable private Integer stringGroup; + @javax.annotation.Nullable private Boolean booleanGroup; + @javax.annotation.Nullable private Long int64Group; private APItestGroupParametersRequest() { @@ -627,7 +633,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString * @param requiredStringGroup Required String in group parameters (required) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest requiredStringGroup(Integer requiredStringGroup) { + public APItestGroupParametersRequest requiredStringGroup(@javax.annotation.Nonnull Integer requiredStringGroup) { this.requiredStringGroup = requiredStringGroup; return this; } @@ -637,7 +643,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString * @param requiredBooleanGroup Required Boolean in group parameters (required) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest requiredBooleanGroup(Boolean requiredBooleanGroup) { + public APItestGroupParametersRequest requiredBooleanGroup(@javax.annotation.Nonnull Boolean requiredBooleanGroup) { this.requiredBooleanGroup = requiredBooleanGroup; return this; } @@ -647,7 +653,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString * @param requiredInt64Group Required Integer in group parameters (required) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest requiredInt64Group(Long requiredInt64Group) { + public APItestGroupParametersRequest requiredInt64Group(@javax.annotation.Nonnull Long requiredInt64Group) { this.requiredInt64Group = requiredInt64Group; return this; } @@ -657,7 +663,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString * @param stringGroup String in group parameters (optional) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest stringGroup(Integer stringGroup) { + public APItestGroupParametersRequest stringGroup(@javax.annotation.Nullable Integer stringGroup) { this.stringGroup = stringGroup; return this; } @@ -667,7 +673,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString * @param booleanGroup Boolean in group parameters (optional) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest booleanGroup(Boolean booleanGroup) { + public APItestGroupParametersRequest booleanGroup(@javax.annotation.Nullable Boolean booleanGroup) { this.booleanGroup = booleanGroup; return this; } @@ -677,7 +683,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString * @param int64Group Integer in group parameters (optional) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest int64Group(Long int64Group) { + public APItestGroupParametersRequest int64Group(@javax.annotation.Nullable Long int64Group) { this.int64Group = int64Group; return this; } @@ -739,7 +745,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 successful operation - */ - public void testInlineAdditionalProperties(Map param) throws ApiException { + public void testInlineAdditionalProperties(@javax.annotation.Nonnull Map param) throws ApiException { testInlineAdditionalPropertiesWithHttpInfo(param); } @@ -756,7 +762,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 successful operation - */ - public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map param) throws ApiException { + public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull Map param) throws ApiException { // Check required parameters if (param == null) { throw new ApiException(400, "Missing the required parameter 'param' when calling testInlineAdditionalProperties"); @@ -781,7 +787,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 successful operation - */ - public void testJsonFormData(String param, String param2) throws ApiException { + public void testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws ApiException { testJsonFormDataWithHttpInfo(param, param2); } @@ -799,7 +805,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 successful operation - */ - public ApiResponse testJsonFormDataWithHttpInfo(String param, String param2) throws ApiException { + public ApiResponse testJsonFormDataWithHttpInfo(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws ApiException { // Check required parameters if (param == null) { throw new ApiException(400, "Missing the required parameter 'param' when calling testJsonFormData"); @@ -835,7 +841,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 Success - */ - public void testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context) throws ApiException { + 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) throws ApiException { testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context); } @@ -856,7 +862,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 Success - */ - public ApiResponse testQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context) throws ApiException { + public ApiResponse 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) throws ApiException { // Check required parameters if (pipe == null) { throw new ApiException(400, "Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat"); diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index dbd29f7db4c..2b6bb4e37a0 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -59,7 +59,7 @@ public class FakeClassnameTags123Api { 200 successful operation - */ - public Client testClassname(Client body) throws ApiException { + public Client testClassname(@javax.annotation.Nonnull Client body) throws ApiException { return testClassnameWithHttpInfo(body).getData(); } @@ -76,7 +76,7 @@ public class FakeClassnameTags123Api { 200 successful operation - */ - public ApiResponse testClassnameWithHttpInfo(Client body) throws ApiException { + public ApiResponse testClassnameWithHttpInfo(@javax.annotation.Nonnull Client body) throws ApiException { // Check required parameters if (body == null) { throw new ApiException(400, "Missing the required parameter 'body' when calling testClassname"); diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/PetApi.java index ee292b398a2..64fdab01e30 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/PetApi.java @@ -62,7 +62,7 @@ public class PetApi { 405 Invalid input - */ - public void addPet(Pet body) throws ApiException { + public void addPet(@javax.annotation.Nonnull Pet body) throws ApiException { addPetWithHttpInfo(body); } @@ -80,7 +80,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse addPetWithHttpInfo(Pet body) throws ApiException { + public ApiResponse addPetWithHttpInfo(@javax.annotation.Nonnull Pet body) throws ApiException { // Check required parameters if (body == null) { throw new ApiException(400, "Missing the required parameter 'body' when calling addPet"); @@ -107,7 +107,7 @@ public class PetApi { 400 Invalid pet value - */ - public void deletePet(Long petId, String apiKey) throws ApiException { + public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { deletePetWithHttpInfo(petId, apiKey); } @@ -126,7 +126,7 @@ public class PetApi { 400 Invalid pet value - */ - public ApiResponse deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException { + public ApiResponse deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling deletePet"); @@ -163,7 +163,7 @@ public class PetApi { 400 Invalid status value - */ - public List findPetsByStatus(List status) throws ApiException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws ApiException { return findPetsByStatusWithHttpInfo(status).getData(); } @@ -181,7 +181,7 @@ public class PetApi { 400 Invalid status value - */ - public ApiResponse> findPetsByStatusWithHttpInfo(List status) throws ApiException { + public ApiResponse> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws ApiException { // Check required parameters if (status == null) { throw new ApiException(400, "Missing the required parameter 'status' when calling findPetsByStatus"); @@ -216,7 +216,7 @@ public class PetApi { * @deprecated */ @Deprecated - public Set findPetsByTags(Set tags) throws ApiException { + public Set findPetsByTags(@javax.annotation.Nonnull Set tags) throws ApiException { return findPetsByTagsWithHttpInfo(tags).getData(); } @@ -236,7 +236,7 @@ public class PetApi { * @deprecated */ @Deprecated - public ApiResponse> findPetsByTagsWithHttpInfo(Set tags) throws ApiException { + public ApiResponse> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull Set tags) throws ApiException { // Check required parameters if (tags == null) { throw new ApiException(400, "Missing the required parameter 'tags' when calling findPetsByTags"); @@ -270,7 +270,7 @@ public class PetApi { 404 Pet not found - */ - public Pet getPetById(Long petId) throws ApiException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws ApiException { return getPetByIdWithHttpInfo(petId).getData(); } @@ -289,7 +289,7 @@ public class PetApi { 404 Pet not found - */ - public ApiResponse getPetByIdWithHttpInfo(Long petId) throws ApiException { + public ApiResponse getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling getPetById"); @@ -322,7 +322,7 @@ public class PetApi { 405 Validation exception - */ - public void updatePet(Pet body) throws ApiException { + public void updatePet(@javax.annotation.Nonnull Pet body) throws ApiException { updatePetWithHttpInfo(body); } @@ -342,7 +342,7 @@ public class PetApi { 405 Validation exception - */ - public ApiResponse updatePetWithHttpInfo(Pet body) throws ApiException { + public ApiResponse updatePetWithHttpInfo(@javax.annotation.Nonnull Pet body) throws ApiException { // Check required parameters if (body == null) { throw new ApiException(400, "Missing the required parameter 'body' when calling updatePet"); @@ -369,7 +369,7 @@ public class PetApi { 405 Invalid input - */ - public void updatePetWithForm(Long petId, String name, String status) throws ApiException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -388,7 +388,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException { + public ApiResponse updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling updatePetWithForm"); @@ -429,7 +429,7 @@ public class PetApi { 200 successful operation - */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws ApiException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { return uploadFileWithHttpInfo(petId, additionalMetadata, _file).getData(); } @@ -448,7 +448,7 @@ public class PetApi { 200 successful operation - */ - public ApiResponse uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws ApiException { + public ApiResponse uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling uploadFile"); @@ -490,7 +490,7 @@ public class PetApi { 200 successful operation - */ - public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws ApiException { + public ModelApiResponse uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws ApiException { return uploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata).getData(); } @@ -509,7 +509,7 @@ public class PetApi { 200 successful operation - */ - public ApiResponse uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws ApiException { + public ApiResponse uploadFileWithRequiredFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling uploadFileWithRequiredFile"); diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/StoreApi.java index 0a447323c03..cfdde1bfdbe 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/StoreApi.java @@ -59,7 +59,7 @@ public class StoreApi { 404 Order not found - */ - public void deleteOrder(String orderId) throws ApiException { + public void deleteOrder(@javax.annotation.Nonnull String orderId) throws ApiException { deleteOrderWithHttpInfo(orderId); } @@ -77,7 +77,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse deleteOrderWithHttpInfo(String orderId) throws ApiException { + public ApiResponse deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws ApiException { // Check required parameters if (orderId == null) { throw new ApiException(400, "Missing the required parameter 'orderId' when calling deleteOrder"); @@ -145,7 +145,7 @@ public class StoreApi { 404 Order not found - */ - public Order getOrderById(Long orderId) throws ApiException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws ApiException { return getOrderByIdWithHttpInfo(orderId).getData(); } @@ -164,7 +164,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse getOrderByIdWithHttpInfo(Long orderId) throws ApiException { + public ApiResponse getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws ApiException { // Check required parameters if (orderId == null) { throw new ApiException(400, "Missing the required parameter 'orderId' when calling getOrderById"); @@ -195,7 +195,7 @@ public class StoreApi { 400 Invalid Order - */ - public Order placeOrder(Order body) throws ApiException { + public Order placeOrder(@javax.annotation.Nonnull Order body) throws ApiException { return placeOrderWithHttpInfo(body).getData(); } @@ -213,7 +213,7 @@ public class StoreApi { 400 Invalid Order - */ - public ApiResponse placeOrderWithHttpInfo(Order body) throws ApiException { + public ApiResponse placeOrderWithHttpInfo(@javax.annotation.Nonnull Order body) throws ApiException { // Check required parameters if (body == null) { throw new ApiException(400, "Missing the required parameter 'body' when calling placeOrder"); diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/UserApi.java index 67b07bf0de0..7c46868ebfe 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/UserApi.java @@ -59,7 +59,7 @@ public class UserApi { 0 successful operation - */ - public void createUser(User body) throws ApiException { + public void createUser(@javax.annotation.Nonnull User body) throws ApiException { createUserWithHttpInfo(body); } @@ -76,7 +76,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUserWithHttpInfo(User body) throws ApiException { + public ApiResponse createUserWithHttpInfo(@javax.annotation.Nonnull User body) throws ApiException { // Check required parameters if (body == null) { throw new ApiException(400, "Missing the required parameter 'body' when calling createUser"); @@ -100,7 +100,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithArrayInput(List body) throws ApiException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List body) throws ApiException { createUsersWithArrayInputWithHttpInfo(body); } @@ -117,7 +117,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithArrayInputWithHttpInfo(List body) throws ApiException { + public ApiResponse createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List body) throws ApiException { // Check required parameters if (body == null) { throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithArrayInput"); @@ -141,7 +141,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithListInput(List body) throws ApiException { + public void createUsersWithListInput(@javax.annotation.Nonnull List body) throws ApiException { createUsersWithListInputWithHttpInfo(body); } @@ -158,7 +158,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithListInputWithHttpInfo(List body) throws ApiException { + public ApiResponse createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List body) throws ApiException { // Check required parameters if (body == null) { throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithListInput"); @@ -183,7 +183,7 @@ public class UserApi { 404 User not found - */ - public void deleteUser(String username) throws ApiException { + public void deleteUser(@javax.annotation.Nonnull String username) throws ApiException { deleteUserWithHttpInfo(username); } @@ -201,7 +201,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse deleteUserWithHttpInfo(String username) throws ApiException { + public ApiResponse deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { // Check required parameters if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling deleteUser"); @@ -232,7 +232,7 @@ public class UserApi { 404 User not found - */ - public User getUserByName(String username) throws ApiException { + public User getUserByName(@javax.annotation.Nonnull String username) throws ApiException { return getUserByNameWithHttpInfo(username).getData(); } @@ -251,7 +251,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse getUserByNameWithHttpInfo(String username) throws ApiException { + public ApiResponse getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { // Check required parameters if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling getUserByName"); @@ -283,7 +283,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public String loginUser(String username, String password) throws ApiException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { return loginUserWithHttpInfo(username, password).getData(); } @@ -302,7 +302,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public ApiResponse loginUserWithHttpInfo(String username, String password) throws ApiException { + public ApiResponse loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { // Check required parameters if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling loginUser"); @@ -372,7 +372,7 @@ public class UserApi { 404 User not found - */ - public void updateUser(String username, User body) throws ApiException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User body) throws ApiException { updateUserWithHttpInfo(username, body); } @@ -391,7 +391,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse updateUserWithHttpInfo(String username, User body) throws ApiException { + public ApiResponse updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User body) throws ApiException { // Check required parameters if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser"); diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 097d0117136..c64182c4a41 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -61,7 +61,7 @@ public class AnotherFakeApi { 200 successful operation - */ - public Client call123testSpecialTags(UUID uuidTest, Client body) throws ApiException { + public Client call123testSpecialTags(@javax.annotation.Nonnull UUID uuidTest, @javax.annotation.Nonnull Client body) throws ApiException { return call123testSpecialTagsWithHttpInfo(uuidTest, body).getData(); } @@ -79,7 +79,7 @@ public class AnotherFakeApi { 200 successful operation - */ - public ApiResponse call123testSpecialTagsWithHttpInfo(UUID uuidTest, Client body) throws ApiException { + public ApiResponse call123testSpecialTagsWithHttpInfo(@javax.annotation.Nonnull UUID uuidTest, @javax.annotation.Nonnull Client body) throws ApiException { // Check required parameters if (uuidTest == null) { throw new ApiException(400, "Missing the required parameter 'uuidTest' when calling call123testSpecialTags"); diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java index 68113b5ce11..c98ed51eea6 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java @@ -66,7 +66,7 @@ public class FakeApi { 200 successful operation - */ - public void createXmlItem(XmlItem xmlItem) throws ApiException { + public void createXmlItem(@javax.annotation.Nonnull XmlItem xmlItem) throws ApiException { createXmlItemWithHttpInfo(xmlItem); } @@ -83,7 +83,7 @@ public class FakeApi { 200 successful operation - */ - public ApiResponse createXmlItemWithHttpInfo(XmlItem xmlItem) throws ApiException { + public ApiResponse createXmlItemWithHttpInfo(@javax.annotation.Nonnull XmlItem xmlItem) throws ApiException { // Check required parameters if (xmlItem == null) { throw new ApiException(400, "Missing the required parameter 'xmlItem' when calling createXmlItem"); @@ -108,7 +108,7 @@ public class FakeApi { 200 Output boolean - */ - public Boolean fakeOuterBooleanSerialize(Boolean body) throws ApiException { + public Boolean fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body) throws ApiException { return fakeOuterBooleanSerializeWithHttpInfo(body).getData(); } @@ -125,7 +125,7 @@ public class FakeApi { 200 Output boolean - */ - public ApiResponse fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws ApiException { + public ApiResponse fakeOuterBooleanSerializeWithHttpInfo(@javax.annotation.Nullable Boolean body) throws ApiException { String localVarAccept = apiClient.selectHeaderAccept("*/*"); String localVarContentType = apiClient.selectHeaderContentType(); GenericType localVarReturnType = new GenericType() {}; @@ -146,7 +146,7 @@ public class FakeApi { 200 Output composite - */ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException { + public OuterComposite fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite body) throws ApiException { return fakeOuterCompositeSerializeWithHttpInfo(body).getData(); } @@ -163,7 +163,7 @@ public class FakeApi { 200 Output composite - */ - public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(OuterComposite body) throws ApiException { + public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(@javax.annotation.Nullable OuterComposite body) throws ApiException { String localVarAccept = apiClient.selectHeaderAccept("*/*"); String localVarContentType = apiClient.selectHeaderContentType(); GenericType localVarReturnType = new GenericType() {}; @@ -184,7 +184,7 @@ public class FakeApi { 200 Output number - */ - public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws ApiException { + public BigDecimal fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body) throws ApiException { return fakeOuterNumberSerializeWithHttpInfo(body).getData(); } @@ -201,7 +201,7 @@ public class FakeApi { 200 Output number - */ - public ApiResponse fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws ApiException { + public ApiResponse fakeOuterNumberSerializeWithHttpInfo(@javax.annotation.Nullable BigDecimal body) throws ApiException { String localVarAccept = apiClient.selectHeaderAccept("*/*"); String localVarContentType = apiClient.selectHeaderContentType(); GenericType localVarReturnType = new GenericType() {}; @@ -222,7 +222,7 @@ public class FakeApi { 200 Output string - */ - public String fakeOuterStringSerialize(String body) throws ApiException { + public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws ApiException { return fakeOuterStringSerializeWithHttpInfo(body).getData(); } @@ -239,7 +239,7 @@ public class FakeApi { 200 Output string - */ - public ApiResponse fakeOuterStringSerializeWithHttpInfo(String body) throws ApiException { + public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws ApiException { String localVarAccept = apiClient.selectHeaderAccept("*/*"); String localVarContentType = apiClient.selectHeaderContentType(); GenericType localVarReturnType = new GenericType() {}; @@ -259,7 +259,7 @@ public class FakeApi { 200 Success - */ - public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException { + public void testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass body) throws ApiException { testBodyWithFileSchemaWithHttpInfo(body); } @@ -276,7 +276,7 @@ public class FakeApi { 200 Success - */ - public ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws ApiException { + public ApiResponse testBodyWithFileSchemaWithHttpInfo(@javax.annotation.Nonnull FileSchemaTestClass body) throws ApiException { // Check required parameters if (body == null) { throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithFileSchema"); @@ -301,7 +301,7 @@ public class FakeApi { 200 Success - */ - public void testBodyWithQueryParams(String query, User body) throws ApiException { + public void testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User body) throws ApiException { testBodyWithQueryParamsWithHttpInfo(query, body); } @@ -319,7 +319,7 @@ public class FakeApi { 200 Success - */ - public ApiResponse testBodyWithQueryParamsWithHttpInfo(String query, User body) throws ApiException { + public ApiResponse testBodyWithQueryParamsWithHttpInfo(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User body) throws ApiException { // Check required parameters if (query == null) { throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams"); @@ -352,7 +352,7 @@ public class FakeApi { 200 successful operation - */ - public Client testClientModel(Client body) throws ApiException { + public Client testClientModel(@javax.annotation.Nonnull Client body) throws ApiException { return testClientModelWithHttpInfo(body).getData(); } @@ -369,7 +369,7 @@ public class FakeApi { 200 successful operation - */ - public ApiResponse testClientModelWithHttpInfo(Client body) throws ApiException { + public ApiResponse testClientModelWithHttpInfo(@javax.annotation.Nonnull Client body) throws ApiException { // Check required parameters if (body == null) { throw new ApiException(400, "Missing the required parameter 'body' when calling testClientModel"); @@ -408,7 +408,7 @@ public class FakeApi { 404 User not found - */ - 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 ApiException { + 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 ApiException { testEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -439,7 +439,7 @@ public class FakeApi { 404 User not found - */ - public ApiResponse 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 ApiException { + public ApiResponse 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 ApiException { // Check required parameters if (number == null) { throw new ApiException(400, "Missing the required parameter 'number' when calling testEndpointParameters"); @@ -518,7 +518,7 @@ public class FakeApi { 404 Not found - */ - public void testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { + 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 enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws ApiException { testEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -543,7 +543,7 @@ public class FakeApi { 404 Not found - */ - public ApiResponse testEnumParametersWithHttpInfo(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { + public ApiResponse 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 enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws ApiException { // Query parameters List localVarQueryParams = new ArrayList<>( apiClient.parameterToPairs("csv", "enum_query_string_array", enumQueryStringArray) @@ -577,7 +577,7 @@ public class FakeApi { null, null, false); } -private ApiResponse testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { +private ApiResponse 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 ApiException { // Check required parameters if (requiredStringGroup == null) { throw new ApiException(400, "Missing the required parameter 'requiredStringGroup' when calling testGroupParameters"); @@ -612,11 +612,17 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString } public class APItestGroupParametersRequest { + @javax.annotation.Nonnull private Integer requiredStringGroup; + @javax.annotation.Nonnull private Boolean requiredBooleanGroup; + @javax.annotation.Nonnull private Long requiredInt64Group; + @javax.annotation.Nullable private Integer stringGroup; + @javax.annotation.Nullable private Boolean booleanGroup; + @javax.annotation.Nullable private Long int64Group; private APItestGroupParametersRequest() { @@ -627,7 +633,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString * @param requiredStringGroup Required String in group parameters (required) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest requiredStringGroup(Integer requiredStringGroup) { + public APItestGroupParametersRequest requiredStringGroup(@javax.annotation.Nonnull Integer requiredStringGroup) { this.requiredStringGroup = requiredStringGroup; return this; } @@ -637,7 +643,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString * @param requiredBooleanGroup Required Boolean in group parameters (required) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest requiredBooleanGroup(Boolean requiredBooleanGroup) { + public APItestGroupParametersRequest requiredBooleanGroup(@javax.annotation.Nonnull Boolean requiredBooleanGroup) { this.requiredBooleanGroup = requiredBooleanGroup; return this; } @@ -647,7 +653,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString * @param requiredInt64Group Required Integer in group parameters (required) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest requiredInt64Group(Long requiredInt64Group) { + public APItestGroupParametersRequest requiredInt64Group(@javax.annotation.Nonnull Long requiredInt64Group) { this.requiredInt64Group = requiredInt64Group; return this; } @@ -657,7 +663,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString * @param stringGroup String in group parameters (optional) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest stringGroup(Integer stringGroup) { + public APItestGroupParametersRequest stringGroup(@javax.annotation.Nullable Integer stringGroup) { this.stringGroup = stringGroup; return this; } @@ -667,7 +673,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString * @param booleanGroup Boolean in group parameters (optional) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest booleanGroup(Boolean booleanGroup) { + public APItestGroupParametersRequest booleanGroup(@javax.annotation.Nullable Boolean booleanGroup) { this.booleanGroup = booleanGroup; return this; } @@ -677,7 +683,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString * @param int64Group Integer in group parameters (optional) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest int64Group(Long int64Group) { + public APItestGroupParametersRequest int64Group(@javax.annotation.Nullable Long int64Group) { this.int64Group = int64Group; return this; } @@ -739,7 +745,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 successful operation - */ - public void testInlineAdditionalProperties(Map param) throws ApiException { + public void testInlineAdditionalProperties(@javax.annotation.Nonnull Map param) throws ApiException { testInlineAdditionalPropertiesWithHttpInfo(param); } @@ -756,7 +762,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 successful operation - */ - public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map param) throws ApiException { + public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull Map param) throws ApiException { // Check required parameters if (param == null) { throw new ApiException(400, "Missing the required parameter 'param' when calling testInlineAdditionalProperties"); @@ -781,7 +787,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 successful operation - */ - public void testJsonFormData(String param, String param2) throws ApiException { + public void testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws ApiException { testJsonFormDataWithHttpInfo(param, param2); } @@ -799,7 +805,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 successful operation - */ - public ApiResponse testJsonFormDataWithHttpInfo(String param, String param2) throws ApiException { + public ApiResponse testJsonFormDataWithHttpInfo(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws ApiException { // Check required parameters if (param == null) { throw new ApiException(400, "Missing the required parameter 'param' when calling testJsonFormData"); @@ -835,7 +841,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 Success - */ - public void testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context) throws ApiException { + 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) throws ApiException { testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context); } @@ -856,7 +862,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 Success - */ - public ApiResponse testQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context) throws ApiException { + public ApiResponse 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) throws ApiException { // Check required parameters if (pipe == null) { throw new ApiException(400, "Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat"); diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index dbd29f7db4c..2b6bb4e37a0 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -59,7 +59,7 @@ public class FakeClassnameTags123Api { 200 successful operation - */ - public Client testClassname(Client body) throws ApiException { + public Client testClassname(@javax.annotation.Nonnull Client body) throws ApiException { return testClassnameWithHttpInfo(body).getData(); } @@ -76,7 +76,7 @@ public class FakeClassnameTags123Api { 200 successful operation - */ - public ApiResponse testClassnameWithHttpInfo(Client body) throws ApiException { + public ApiResponse testClassnameWithHttpInfo(@javax.annotation.Nonnull Client body) throws ApiException { // Check required parameters if (body == null) { throw new ApiException(400, "Missing the required parameter 'body' when calling testClassname"); diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/PetApi.java index ee292b398a2..64fdab01e30 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/PetApi.java @@ -62,7 +62,7 @@ public class PetApi { 405 Invalid input - */ - public void addPet(Pet body) throws ApiException { + public void addPet(@javax.annotation.Nonnull Pet body) throws ApiException { addPetWithHttpInfo(body); } @@ -80,7 +80,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse addPetWithHttpInfo(Pet body) throws ApiException { + public ApiResponse addPetWithHttpInfo(@javax.annotation.Nonnull Pet body) throws ApiException { // Check required parameters if (body == null) { throw new ApiException(400, "Missing the required parameter 'body' when calling addPet"); @@ -107,7 +107,7 @@ public class PetApi { 400 Invalid pet value - */ - public void deletePet(Long petId, String apiKey) throws ApiException { + public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { deletePetWithHttpInfo(petId, apiKey); } @@ -126,7 +126,7 @@ public class PetApi { 400 Invalid pet value - */ - public ApiResponse deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException { + public ApiResponse deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling deletePet"); @@ -163,7 +163,7 @@ public class PetApi { 400 Invalid status value - */ - public List findPetsByStatus(List status) throws ApiException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws ApiException { return findPetsByStatusWithHttpInfo(status).getData(); } @@ -181,7 +181,7 @@ public class PetApi { 400 Invalid status value - */ - public ApiResponse> findPetsByStatusWithHttpInfo(List status) throws ApiException { + public ApiResponse> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws ApiException { // Check required parameters if (status == null) { throw new ApiException(400, "Missing the required parameter 'status' when calling findPetsByStatus"); @@ -216,7 +216,7 @@ public class PetApi { * @deprecated */ @Deprecated - public Set findPetsByTags(Set tags) throws ApiException { + public Set findPetsByTags(@javax.annotation.Nonnull Set tags) throws ApiException { return findPetsByTagsWithHttpInfo(tags).getData(); } @@ -236,7 +236,7 @@ public class PetApi { * @deprecated */ @Deprecated - public ApiResponse> findPetsByTagsWithHttpInfo(Set tags) throws ApiException { + public ApiResponse> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull Set tags) throws ApiException { // Check required parameters if (tags == null) { throw new ApiException(400, "Missing the required parameter 'tags' when calling findPetsByTags"); @@ -270,7 +270,7 @@ public class PetApi { 404 Pet not found - */ - public Pet getPetById(Long petId) throws ApiException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws ApiException { return getPetByIdWithHttpInfo(petId).getData(); } @@ -289,7 +289,7 @@ public class PetApi { 404 Pet not found - */ - public ApiResponse getPetByIdWithHttpInfo(Long petId) throws ApiException { + public ApiResponse getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling getPetById"); @@ -322,7 +322,7 @@ public class PetApi { 405 Validation exception - */ - public void updatePet(Pet body) throws ApiException { + public void updatePet(@javax.annotation.Nonnull Pet body) throws ApiException { updatePetWithHttpInfo(body); } @@ -342,7 +342,7 @@ public class PetApi { 405 Validation exception - */ - public ApiResponse updatePetWithHttpInfo(Pet body) throws ApiException { + public ApiResponse updatePetWithHttpInfo(@javax.annotation.Nonnull Pet body) throws ApiException { // Check required parameters if (body == null) { throw new ApiException(400, "Missing the required parameter 'body' when calling updatePet"); @@ -369,7 +369,7 @@ public class PetApi { 405 Invalid input - */ - public void updatePetWithForm(Long petId, String name, String status) throws ApiException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -388,7 +388,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException { + public ApiResponse updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling updatePetWithForm"); @@ -429,7 +429,7 @@ public class PetApi { 200 successful operation - */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws ApiException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { return uploadFileWithHttpInfo(petId, additionalMetadata, _file).getData(); } @@ -448,7 +448,7 @@ public class PetApi { 200 successful operation - */ - public ApiResponse uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws ApiException { + public ApiResponse uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling uploadFile"); @@ -490,7 +490,7 @@ public class PetApi { 200 successful operation - */ - public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws ApiException { + public ModelApiResponse uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws ApiException { return uploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata).getData(); } @@ -509,7 +509,7 @@ public class PetApi { 200 successful operation - */ - public ApiResponse uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws ApiException { + public ApiResponse uploadFileWithRequiredFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling uploadFileWithRequiredFile"); diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/StoreApi.java index 0a447323c03..cfdde1bfdbe 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/StoreApi.java @@ -59,7 +59,7 @@ public class StoreApi { 404 Order not found - */ - public void deleteOrder(String orderId) throws ApiException { + public void deleteOrder(@javax.annotation.Nonnull String orderId) throws ApiException { deleteOrderWithHttpInfo(orderId); } @@ -77,7 +77,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse deleteOrderWithHttpInfo(String orderId) throws ApiException { + public ApiResponse deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws ApiException { // Check required parameters if (orderId == null) { throw new ApiException(400, "Missing the required parameter 'orderId' when calling deleteOrder"); @@ -145,7 +145,7 @@ public class StoreApi { 404 Order not found - */ - public Order getOrderById(Long orderId) throws ApiException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws ApiException { return getOrderByIdWithHttpInfo(orderId).getData(); } @@ -164,7 +164,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse getOrderByIdWithHttpInfo(Long orderId) throws ApiException { + public ApiResponse getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws ApiException { // Check required parameters if (orderId == null) { throw new ApiException(400, "Missing the required parameter 'orderId' when calling getOrderById"); @@ -195,7 +195,7 @@ public class StoreApi { 400 Invalid Order - */ - public Order placeOrder(Order body) throws ApiException { + public Order placeOrder(@javax.annotation.Nonnull Order body) throws ApiException { return placeOrderWithHttpInfo(body).getData(); } @@ -213,7 +213,7 @@ public class StoreApi { 400 Invalid Order - */ - public ApiResponse placeOrderWithHttpInfo(Order body) throws ApiException { + public ApiResponse placeOrderWithHttpInfo(@javax.annotation.Nonnull Order body) throws ApiException { // Check required parameters if (body == null) { throw new ApiException(400, "Missing the required parameter 'body' when calling placeOrder"); diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/UserApi.java index a482c9c6996..7a68a45ae78 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/UserApi.java @@ -59,7 +59,7 @@ public class UserApi { 0 successful operation - */ - public void createUser(User body) throws ApiException { + public void createUser(@javax.annotation.Nonnull User body) throws ApiException { createUserWithHttpInfo(body); } @@ -76,7 +76,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUserWithHttpInfo(User body) throws ApiException { + public ApiResponse createUserWithHttpInfo(@javax.annotation.Nonnull User body) throws ApiException { // Check required parameters if (body == null) { throw new ApiException(400, "Missing the required parameter 'body' when calling createUser"); @@ -100,7 +100,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithArrayInput(List body) throws ApiException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List body) throws ApiException { createUsersWithArrayInputWithHttpInfo(body); } @@ -117,7 +117,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithArrayInputWithHttpInfo(List body) throws ApiException { + public ApiResponse createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List body) throws ApiException { // Check required parameters if (body == null) { throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithArrayInput"); @@ -141,7 +141,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithListInput(List body) throws ApiException { + public void createUsersWithListInput(@javax.annotation.Nonnull List body) throws ApiException { createUsersWithListInputWithHttpInfo(body); } @@ -158,7 +158,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithListInputWithHttpInfo(List body) throws ApiException { + public ApiResponse createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List body) throws ApiException { // Check required parameters if (body == null) { throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithListInput"); @@ -183,7 +183,7 @@ public class UserApi { 404 User not found - */ - public void deleteUser(String username) throws ApiException { + public void deleteUser(@javax.annotation.Nonnull String username) throws ApiException { deleteUserWithHttpInfo(username); } @@ -201,7 +201,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse deleteUserWithHttpInfo(String username) throws ApiException { + public ApiResponse deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { // Check required parameters if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling deleteUser"); @@ -232,7 +232,7 @@ public class UserApi { 404 User not found - */ - public User getUserByName(String username) throws ApiException { + public User getUserByName(@javax.annotation.Nonnull String username) throws ApiException { return getUserByNameWithHttpInfo(username).getData(); } @@ -251,7 +251,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse getUserByNameWithHttpInfo(String username) throws ApiException { + public ApiResponse getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { // Check required parameters if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling getUserByName"); @@ -283,7 +283,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public String loginUser(String username, String password) throws ApiException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { return loginUserWithHttpInfo(username, password).getData(); } @@ -302,7 +302,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public ApiResponse loginUserWithHttpInfo(String username, String password) throws ApiException { + public ApiResponse loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { // Check required parameters if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling loginUser"); @@ -372,7 +372,7 @@ public class UserApi { 404 User not found - */ - public void updateUser(String username, User body) throws ApiException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User body) throws ApiException { updateUserWithHttpInfo(username, body); } @@ -391,7 +391,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse updateUserWithHttpInfo(String username, User body) throws ApiException { + public ApiResponse updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User body) throws ApiException { // Check required parameters if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser"); diff --git a/samples/client/petstore/java/jersey3-oneOf/src/main/java/org/openapitools/client/api/DefaultApi.java b/samples/client/petstore/java/jersey3-oneOf/src/main/java/org/openapitools/client/api/DefaultApi.java index 6ac96f0e0c7..488ec0273bb 100644 --- a/samples/client/petstore/java/jersey3-oneOf/src/main/java/org/openapitools/client/api/DefaultApi.java +++ b/samples/client/petstore/java/jersey3-oneOf/src/main/java/org/openapitools/client/api/DefaultApi.java @@ -58,7 +58,7 @@ public class DefaultApi { 200 OK - */ - public void rootPost(PostRequest postRequest) throws ApiException { + public void rootPost(@jakarta.annotation.Nullable PostRequest postRequest) throws ApiException { rootPostWithHttpInfo(postRequest); } @@ -75,7 +75,7 @@ public class DefaultApi { 200 OK - */ - public ApiResponse rootPostWithHttpInfo(PostRequest postRequest) throws ApiException { + public ApiResponse rootPostWithHttpInfo(@jakarta.annotation.Nullable PostRequest postRequest) throws ApiException { String localVarAccept = apiClient.selectHeaderAccept(); String localVarContentType = apiClient.selectHeaderContentType("application/json"); return apiClient.invokeAPI("DefaultApi.rootPost", "/", "POST", new ArrayList<>(), postRequest, diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 627bb6246ab..138b6f07d59 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -62,7 +62,7 @@ public class AnotherFakeApi { 200 successful operation - */ - public Client call123testSpecialTags(Client client) throws ApiException { + public Client call123testSpecialTags(@jakarta.annotation.Nonnull Client client) throws ApiException { return call123testSpecialTagsWithHttpInfo(client).getData(); } @@ -79,7 +79,7 @@ public class AnotherFakeApi { 200 successful operation - */ - public ApiResponse call123testSpecialTagsWithHttpInfo(Client client) throws ApiException { + public ApiResponse call123testSpecialTagsWithHttpInfo(@jakarta.annotation.Nonnull Client client) throws ApiException { // Check required parameters if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags"); diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/FakeApi.java index b5d9973207b..7fac44cd655 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/FakeApi.java @@ -108,7 +108,7 @@ public class FakeApi { 200 Output boolean - */ - public Boolean fakeOuterBooleanSerialize(Boolean body) throws ApiException { + public Boolean fakeOuterBooleanSerialize(@jakarta.annotation.Nullable Boolean body) throws ApiException { return fakeOuterBooleanSerializeWithHttpInfo(body).getData(); } @@ -125,7 +125,7 @@ public class FakeApi { 200 Output boolean - */ - public ApiResponse fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws ApiException { + public ApiResponse fakeOuterBooleanSerializeWithHttpInfo(@jakarta.annotation.Nullable Boolean body) throws ApiException { String localVarAccept = apiClient.selectHeaderAccept("*/*"); String localVarContentType = apiClient.selectHeaderContentType("application/json"); GenericType localVarReturnType = new GenericType() {}; @@ -146,7 +146,7 @@ public class FakeApi { 200 Output composite - */ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException { + public OuterComposite fakeOuterCompositeSerialize(@jakarta.annotation.Nullable OuterComposite outerComposite) throws ApiException { return fakeOuterCompositeSerializeWithHttpInfo(outerComposite).getData(); } @@ -163,7 +163,7 @@ public class FakeApi { 200 Output composite - */ - public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws ApiException { + public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(@jakarta.annotation.Nullable OuterComposite outerComposite) throws ApiException { String localVarAccept = apiClient.selectHeaderAccept("*/*"); String localVarContentType = apiClient.selectHeaderContentType("application/json"); GenericType localVarReturnType = new GenericType() {}; @@ -184,7 +184,7 @@ public class FakeApi { 200 Output number - */ - public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws ApiException { + public BigDecimal fakeOuterNumberSerialize(@jakarta.annotation.Nullable BigDecimal body) throws ApiException { return fakeOuterNumberSerializeWithHttpInfo(body).getData(); } @@ -201,7 +201,7 @@ public class FakeApi { 200 Output number - */ - public ApiResponse fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws ApiException { + public ApiResponse fakeOuterNumberSerializeWithHttpInfo(@jakarta.annotation.Nullable BigDecimal body) throws ApiException { String localVarAccept = apiClient.selectHeaderAccept("*/*"); String localVarContentType = apiClient.selectHeaderContentType("application/json"); GenericType localVarReturnType = new GenericType() {}; @@ -222,7 +222,7 @@ public class FakeApi { 200 Output string - */ - public String fakeOuterStringSerialize(String body) throws ApiException { + public String fakeOuterStringSerialize(@jakarta.annotation.Nullable String body) throws ApiException { return fakeOuterStringSerializeWithHttpInfo(body).getData(); } @@ -239,7 +239,7 @@ public class FakeApi { 200 Output string - */ - public ApiResponse fakeOuterStringSerializeWithHttpInfo(String body) throws ApiException { + public ApiResponse fakeOuterStringSerializeWithHttpInfo(@jakarta.annotation.Nullable String body) throws ApiException { String localVarAccept = apiClient.selectHeaderAccept("*/*"); String localVarContentType = apiClient.selectHeaderContentType("application/json"); GenericType localVarReturnType = new GenericType() {}; @@ -295,7 +295,7 @@ public class FakeApi { 200 ok - */ - public void postArrayOfString(List<@Pattern(regexp = "[A-Z0-9]+")String> requestBody) throws ApiException { + public void postArrayOfString(@jakarta.annotation.Nullable List<@Pattern(regexp = "[A-Z0-9]+")String> requestBody) throws ApiException { postArrayOfStringWithHttpInfo(requestBody); } @@ -312,7 +312,7 @@ public class FakeApi { 200 ok - */ - public ApiResponse postArrayOfStringWithHttpInfo(List<@Pattern(regexp = "[A-Z0-9]+")String> requestBody) throws ApiException { + public ApiResponse postArrayOfStringWithHttpInfo(@jakarta.annotation.Nullable List<@Pattern(regexp = "[A-Z0-9]+")String> requestBody) throws ApiException { String localVarAccept = apiClient.selectHeaderAccept(); String localVarContentType = apiClient.selectHeaderContentType("application/json"); return apiClient.invokeAPI("FakeApi.postArrayOfString", "/fake/request-array-string", "POST", new ArrayList<>(), requestBody, @@ -331,7 +331,7 @@ public class FakeApi { 200 successful operation - */ - public void testAdditionalPropertiesReference(Map requestBody) throws ApiException { + public void testAdditionalPropertiesReference(@jakarta.annotation.Nonnull Map requestBody) throws ApiException { testAdditionalPropertiesReferenceWithHttpInfo(requestBody); } @@ -348,7 +348,7 @@ public class FakeApi { 200 successful operation - */ - public ApiResponse testAdditionalPropertiesReferenceWithHttpInfo(Map requestBody) throws ApiException { + public ApiResponse testAdditionalPropertiesReferenceWithHttpInfo(@jakarta.annotation.Nonnull Map requestBody) throws ApiException { // Check required parameters if (requestBody == null) { throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testAdditionalPropertiesReference"); @@ -372,7 +372,7 @@ public class FakeApi { 200 Success - */ - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException { + public void testBodyWithFileSchema(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws ApiException { testBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass); } @@ -389,7 +389,7 @@ public class FakeApi { 200 Success - */ - public ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws ApiException { + public ApiResponse testBodyWithFileSchemaWithHttpInfo(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws ApiException { // Check required parameters if (fileSchemaTestClass == null) { throw new ApiException(400, "Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema"); @@ -414,7 +414,7 @@ public class FakeApi { 200 Success - */ - public void testBodyWithQueryParams(String query, User user) throws ApiException { + public void testBodyWithQueryParams(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws ApiException { testBodyWithQueryParamsWithHttpInfo(query, user); } @@ -432,7 +432,7 @@ public class FakeApi { 200 Success - */ - public ApiResponse testBodyWithQueryParamsWithHttpInfo(String query, User user) throws ApiException { + public ApiResponse testBodyWithQueryParamsWithHttpInfo(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws ApiException { // Check required parameters if (query == null) { throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams"); @@ -465,7 +465,7 @@ public class FakeApi { 200 successful operation - */ - public Client testClientModel(Client client) throws ApiException { + public Client testClientModel(@jakarta.annotation.Nonnull Client client) throws ApiException { return testClientModelWithHttpInfo(client).getData(); } @@ -482,7 +482,7 @@ public class FakeApi { 200 successful operation - */ - public ApiResponse testClientModelWithHttpInfo(Client client) throws ApiException { + public ApiResponse testClientModelWithHttpInfo(@jakarta.annotation.Nonnull Client client) throws ApiException { // Check required parameters if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling testClientModel"); @@ -521,7 +521,7 @@ public class FakeApi { 404 User not found - */ - 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 ApiException { + public void testEndpointParameters(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws ApiException { testEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -552,7 +552,7 @@ public class FakeApi { 404 User not found - */ - public ApiResponse 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 ApiException { + public ApiResponse testEndpointParametersWithHttpInfo(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws ApiException { // Check required parameters if (number == null) { throw new ApiException(400, "Missing the required parameter 'number' when calling testEndpointParameters"); @@ -631,7 +631,7 @@ public class FakeApi { 404 Not found - */ - public void testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { + public void testEnumParameters(@jakarta.annotation.Nullable List enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List enumFormStringArray, @jakarta.annotation.Nullable String enumFormString) throws ApiException { testEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -656,7 +656,7 @@ public class FakeApi { 404 Not found - */ - public ApiResponse testEnumParametersWithHttpInfo(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { + public ApiResponse testEnumParametersWithHttpInfo(@jakarta.annotation.Nullable List enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List enumFormStringArray, @jakarta.annotation.Nullable String enumFormString) throws ApiException { // Query parameters List localVarQueryParams = new ArrayList<>( apiClient.parameterToPairs("multi", "enum_query_string_array", enumQueryStringArray) @@ -690,7 +690,7 @@ public class FakeApi { null, null, false); } -private ApiResponse testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { +private ApiResponse testGroupParametersWithHttpInfo(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group) throws ApiException { // Check required parameters if (requiredStringGroup == null) { throw new ApiException(400, "Missing the required parameter 'requiredStringGroup' when calling testGroupParameters"); @@ -726,11 +726,17 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString } public class APItestGroupParametersRequest { + @jakarta.annotation.Nonnull private Integer requiredStringGroup; + @jakarta.annotation.Nonnull private Boolean requiredBooleanGroup; + @jakarta.annotation.Nonnull private Long requiredInt64Group; + @jakarta.annotation.Nullable private Integer stringGroup; + @jakarta.annotation.Nullable private Boolean booleanGroup; + @jakarta.annotation.Nullable private Long int64Group; private APItestGroupParametersRequest() { @@ -741,7 +747,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString * @param requiredStringGroup Required String in group parameters (required) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest requiredStringGroup(Integer requiredStringGroup) { + public APItestGroupParametersRequest requiredStringGroup(@jakarta.annotation.Nonnull Integer requiredStringGroup) { this.requiredStringGroup = requiredStringGroup; return this; } @@ -751,7 +757,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString * @param requiredBooleanGroup Required Boolean in group parameters (required) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest requiredBooleanGroup(Boolean requiredBooleanGroup) { + public APItestGroupParametersRequest requiredBooleanGroup(@jakarta.annotation.Nonnull Boolean requiredBooleanGroup) { this.requiredBooleanGroup = requiredBooleanGroup; return this; } @@ -761,7 +767,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString * @param requiredInt64Group Required Integer in group parameters (required) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest requiredInt64Group(Long requiredInt64Group) { + public APItestGroupParametersRequest requiredInt64Group(@jakarta.annotation.Nonnull Long requiredInt64Group) { this.requiredInt64Group = requiredInt64Group; return this; } @@ -771,7 +777,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString * @param stringGroup String in group parameters (optional) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest stringGroup(Integer stringGroup) { + public APItestGroupParametersRequest stringGroup(@jakarta.annotation.Nullable Integer stringGroup) { this.stringGroup = stringGroup; return this; } @@ -781,7 +787,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString * @param booleanGroup Boolean in group parameters (optional) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest booleanGroup(Boolean booleanGroup) { + public APItestGroupParametersRequest booleanGroup(@jakarta.annotation.Nullable Boolean booleanGroup) { this.booleanGroup = booleanGroup; return this; } @@ -791,7 +797,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString * @param int64Group Integer in group parameters (optional) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest int64Group(Long int64Group) { + public APItestGroupParametersRequest int64Group(@jakarta.annotation.Nullable Long int64Group) { this.int64Group = int64Group; return this; } @@ -853,7 +859,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 successful operation - */ - public void testInlineAdditionalProperties(Map requestBody) throws ApiException { + public void testInlineAdditionalProperties(@jakarta.annotation.Nonnull Map requestBody) throws ApiException { testInlineAdditionalPropertiesWithHttpInfo(requestBody); } @@ -870,7 +876,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 successful operation - */ - public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map requestBody) throws ApiException { + public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(@jakarta.annotation.Nonnull Map requestBody) throws ApiException { // Check required parameters if (requestBody == null) { throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties"); @@ -894,7 +900,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 successful operation - */ - public void testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { + public void testInlineFreeformAdditionalProperties(@jakarta.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { testInlineFreeformAdditionalPropertiesWithHttpInfo(testInlineFreeformAdditionalPropertiesRequest); } @@ -911,7 +917,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 successful operation - */ - public ApiResponse testInlineFreeformAdditionalPropertiesWithHttpInfo(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { + public ApiResponse testInlineFreeformAdditionalPropertiesWithHttpInfo(@jakarta.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { // Check required parameters if (testInlineFreeformAdditionalPropertiesRequest == null) { throw new ApiException(400, "Missing the required parameter 'testInlineFreeformAdditionalPropertiesRequest' when calling testInlineFreeformAdditionalProperties"); @@ -936,7 +942,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 successful operation - */ - public void testJsonFormData(String param, String param2) throws ApiException { + public void testJsonFormData(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2) throws ApiException { testJsonFormDataWithHttpInfo(param, param2); } @@ -954,7 +960,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 successful operation - */ - public ApiResponse testJsonFormDataWithHttpInfo(String param, String param2) throws ApiException { + public ApiResponse testJsonFormDataWithHttpInfo(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2) throws ApiException { // Check required parameters if (param == null) { throw new ApiException(400, "Missing the required parameter 'param' when calling testJsonFormData"); @@ -990,7 +996,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 Success - */ - public void testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context) throws ApiException { + public void testQueryParameterCollectionFormat(@jakarta.annotation.Nonnull List pipe, @jakarta.annotation.Nonnull List ioutil, @jakarta.annotation.Nonnull List http, @jakarta.annotation.Nonnull List url, @jakarta.annotation.Nonnull List context) throws ApiException { testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context); } @@ -1011,7 +1017,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 Success - */ - public ApiResponse testQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context) throws ApiException { + public ApiResponse testQueryParameterCollectionFormatWithHttpInfo(@jakarta.annotation.Nonnull List pipe, @jakarta.annotation.Nonnull List ioutil, @jakarta.annotation.Nonnull List http, @jakarta.annotation.Nonnull List url, @jakarta.annotation.Nonnull List context) throws ApiException { // Check required parameters if (pipe == null) { throw new ApiException(400, "Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat"); @@ -1056,7 +1062,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 successful operation - */ - public void testStringMapReference(Map requestBody) throws ApiException { + public void testStringMapReference(@jakarta.annotation.Nonnull Map requestBody) throws ApiException { testStringMapReferenceWithHttpInfo(requestBody); } @@ -1073,7 +1079,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 successful operation - */ - public ApiResponse testStringMapReferenceWithHttpInfo(Map requestBody) throws ApiException { + public ApiResponse testStringMapReferenceWithHttpInfo(@jakarta.annotation.Nonnull Map requestBody) throws ApiException { // Check required parameters if (requestBody == null) { throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testStringMapReference"); diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index c630588bd91..040859bf9ef 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -62,7 +62,7 @@ public class FakeClassnameTags123Api { 200 successful operation - */ - public Client testClassname(Client client) throws ApiException { + public Client testClassname(@jakarta.annotation.Nonnull Client client) throws ApiException { return testClassnameWithHttpInfo(client).getData(); } @@ -79,7 +79,7 @@ public class FakeClassnameTags123Api { 200 successful operation - */ - public ApiResponse testClassnameWithHttpInfo(Client client) throws ApiException { + public ApiResponse testClassnameWithHttpInfo(@jakarta.annotation.Nonnull Client client) throws ApiException { // Check required parameters if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling testClassname"); diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/PetApi.java index 5141f8f2f08..fe7d2801c1b 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/PetApi.java @@ -63,7 +63,7 @@ public class PetApi { 405 Invalid input - */ - public void addPet(Pet pet) throws ApiException { + public void addPet(@jakarta.annotation.Nonnull Pet pet) throws ApiException { addPetWithHttpInfo(pet); } @@ -80,7 +80,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse addPetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse addPetWithHttpInfo(@jakarta.annotation.Nonnull Pet pet) throws ApiException { // Check required parameters if (pet == null) { throw new ApiException(400, "Missing the required parameter 'pet' when calling addPet"); @@ -106,7 +106,7 @@ public class PetApi { 400 Invalid pet value - */ - public void deletePet(Long petId, String apiKey) throws ApiException { + public void deletePet(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws ApiException { deletePetWithHttpInfo(petId, apiKey); } @@ -124,7 +124,7 @@ public class PetApi { 400 Invalid pet value - */ - public ApiResponse deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException { + public ApiResponse deletePetWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling deletePet"); @@ -161,7 +161,7 @@ public class PetApi { 400 Invalid status value - */ - public List findPetsByStatus(List status) throws ApiException { + public List findPetsByStatus(@jakarta.annotation.Nonnull List status) throws ApiException { return findPetsByStatusWithHttpInfo(status).getData(); } @@ -179,7 +179,7 @@ public class PetApi { 400 Invalid status value - */ - public ApiResponse> findPetsByStatusWithHttpInfo(List status) throws ApiException { + public ApiResponse> findPetsByStatusWithHttpInfo(@jakarta.annotation.Nonnull List status) throws ApiException { // Check required parameters if (status == null) { throw new ApiException(400, "Missing the required parameter 'status' when calling findPetsByStatus"); @@ -214,7 +214,7 @@ public class PetApi { * @deprecated */ @Deprecated - public List findPetsByTags(List tags) throws ApiException { + public List findPetsByTags(@jakarta.annotation.Nonnull List tags) throws ApiException { return findPetsByTagsWithHttpInfo(tags).getData(); } @@ -234,7 +234,7 @@ public class PetApi { * @deprecated */ @Deprecated - public ApiResponse> findPetsByTagsWithHttpInfo(List tags) throws ApiException { + public ApiResponse> findPetsByTagsWithHttpInfo(@jakarta.annotation.Nonnull List tags) throws ApiException { // Check required parameters if (tags == null) { throw new ApiException(400, "Missing the required parameter 'tags' when calling findPetsByTags"); @@ -268,7 +268,7 @@ public class PetApi { 404 Pet not found - */ - public Pet getPetById(Long petId) throws ApiException { + public Pet getPetById(@jakarta.annotation.Nonnull Long petId) throws ApiException { return getPetByIdWithHttpInfo(petId).getData(); } @@ -287,7 +287,7 @@ public class PetApi { 404 Pet not found - */ - public ApiResponse getPetByIdWithHttpInfo(Long petId) throws ApiException { + public ApiResponse getPetByIdWithHttpInfo(@jakarta.annotation.Nonnull Long petId) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling getPetById"); @@ -319,7 +319,7 @@ public class PetApi { 405 Validation exception - */ - public void updatePet(Pet pet) throws ApiException { + public void updatePet(@jakarta.annotation.Nonnull Pet pet) throws ApiException { updatePetWithHttpInfo(pet); } @@ -338,7 +338,7 @@ public class PetApi { 405 Validation exception - */ - public ApiResponse updatePetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse updatePetWithHttpInfo(@jakarta.annotation.Nonnull Pet pet) throws ApiException { // Check required parameters if (pet == null) { throw new ApiException(400, "Missing the required parameter 'pet' when calling updatePet"); @@ -365,7 +365,7 @@ public class PetApi { 405 Invalid input - */ - public void updatePetWithForm(Long petId, String name, String status) throws ApiException { + public void updatePetWithForm(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws ApiException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -384,7 +384,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException { + public ApiResponse updatePetWithFormWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling updatePetWithForm"); @@ -425,7 +425,7 @@ public class PetApi { 200 successful operation - */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws ApiException { + public ModelApiResponse uploadFile(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws ApiException { return uploadFileWithHttpInfo(petId, additionalMetadata, _file).getData(); } @@ -444,7 +444,7 @@ public class PetApi { 200 successful operation - */ - public ApiResponse uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws ApiException { + public ApiResponse uploadFileWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling uploadFile"); @@ -486,7 +486,7 @@ public class PetApi { 200 successful operation - */ - public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws ApiException { + public ModelApiResponse uploadFileWithRequiredFile(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nonnull File requiredFile, @jakarta.annotation.Nullable String additionalMetadata) throws ApiException { return uploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata).getData(); } @@ -505,7 +505,7 @@ public class PetApi { 200 successful operation - */ - public ApiResponse uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws ApiException { + public ApiResponse uploadFileWithRequiredFileWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nonnull File requiredFile, @jakarta.annotation.Nullable String additionalMetadata) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling uploadFileWithRequiredFile"); diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/StoreApi.java index 5c38e7cb97a..38f009224b2 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/StoreApi.java @@ -62,7 +62,7 @@ public class StoreApi { 404 Order not found - */ - public void deleteOrder(String orderId) throws ApiException { + public void deleteOrder(@jakarta.annotation.Nonnull String orderId) throws ApiException { deleteOrderWithHttpInfo(orderId); } @@ -80,7 +80,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse deleteOrderWithHttpInfo(String orderId) throws ApiException { + public ApiResponse deleteOrderWithHttpInfo(@jakarta.annotation.Nonnull String orderId) throws ApiException { // Check required parameters if (orderId == null) { throw new ApiException(400, "Missing the required parameter 'orderId' when calling deleteOrder"); @@ -148,7 +148,7 @@ public class StoreApi { 404 Order not found - */ - public Order getOrderById(Long orderId) throws ApiException { + public Order getOrderById(@jakarta.annotation.Nonnull Long orderId) throws ApiException { return getOrderByIdWithHttpInfo(orderId).getData(); } @@ -167,7 +167,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse getOrderByIdWithHttpInfo(Long orderId) throws ApiException { + public ApiResponse getOrderByIdWithHttpInfo(@jakarta.annotation.Nonnull Long orderId) throws ApiException { // Check required parameters if (orderId == null) { throw new ApiException(400, "Missing the required parameter 'orderId' when calling getOrderById"); @@ -198,7 +198,7 @@ public class StoreApi { 400 Invalid Order - */ - public Order placeOrder(Order order) throws ApiException { + public Order placeOrder(@jakarta.annotation.Nonnull Order order) throws ApiException { return placeOrderWithHttpInfo(order).getData(); } @@ -216,7 +216,7 @@ public class StoreApi { 400 Invalid Order - */ - public ApiResponse placeOrderWithHttpInfo(Order order) throws ApiException { + public ApiResponse placeOrderWithHttpInfo(@jakarta.annotation.Nonnull Order order) throws ApiException { // Check required parameters if (order == null) { throw new ApiException(400, "Missing the required parameter 'order' when calling placeOrder"); diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/UserApi.java index 6545c177a4f..10158d85426 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/UserApi.java @@ -62,7 +62,7 @@ public class UserApi { 0 successful operation - */ - public void createUser(User user) throws ApiException { + public void createUser(@jakarta.annotation.Nonnull User user) throws ApiException { createUserWithHttpInfo(user); } @@ -79,7 +79,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUserWithHttpInfo(User user) throws ApiException { + public ApiResponse createUserWithHttpInfo(@jakarta.annotation.Nonnull User user) throws ApiException { // Check required parameters if (user == null) { throw new ApiException(400, "Missing the required parameter 'user' when calling createUser"); @@ -103,7 +103,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithArrayInput(List<@Valid User> user) throws ApiException { + public void createUsersWithArrayInput(@jakarta.annotation.Nonnull List<@Valid User> user) throws ApiException { createUsersWithArrayInputWithHttpInfo(user); } @@ -120,7 +120,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithArrayInputWithHttpInfo(List<@Valid User> user) throws ApiException { + public ApiResponse createUsersWithArrayInputWithHttpInfo(@jakarta.annotation.Nonnull List<@Valid User> user) throws ApiException { // Check required parameters if (user == null) { throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithArrayInput"); @@ -144,7 +144,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithListInput(List<@Valid User> user) throws ApiException { + public void createUsersWithListInput(@jakarta.annotation.Nonnull List<@Valid User> user) throws ApiException { createUsersWithListInputWithHttpInfo(user); } @@ -161,7 +161,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithListInputWithHttpInfo(List<@Valid User> user) throws ApiException { + public ApiResponse createUsersWithListInputWithHttpInfo(@jakarta.annotation.Nonnull List<@Valid User> user) throws ApiException { // Check required parameters if (user == null) { throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithListInput"); @@ -186,7 +186,7 @@ public class UserApi { 404 User not found - */ - public void deleteUser(String username) throws ApiException { + public void deleteUser(@jakarta.annotation.Nonnull String username) throws ApiException { deleteUserWithHttpInfo(username); } @@ -204,7 +204,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse deleteUserWithHttpInfo(String username) throws ApiException { + public ApiResponse deleteUserWithHttpInfo(@jakarta.annotation.Nonnull String username) throws ApiException { // Check required parameters if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling deleteUser"); @@ -235,7 +235,7 @@ public class UserApi { 404 User not found - */ - public User getUserByName(String username) throws ApiException { + public User getUserByName(@jakarta.annotation.Nonnull String username) throws ApiException { return getUserByNameWithHttpInfo(username).getData(); } @@ -254,7 +254,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse getUserByNameWithHttpInfo(String username) throws ApiException { + public ApiResponse getUserByNameWithHttpInfo(@jakarta.annotation.Nonnull String username) throws ApiException { // Check required parameters if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling getUserByName"); @@ -286,7 +286,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public String loginUser(String username, String password) throws ApiException { + public String loginUser(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws ApiException { return loginUserWithHttpInfo(username, password).getData(); } @@ -305,7 +305,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public ApiResponse loginUserWithHttpInfo(String username, String password) throws ApiException { + public ApiResponse loginUserWithHttpInfo(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws ApiException { // Check required parameters if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling loginUser"); @@ -375,7 +375,7 @@ public class UserApi { 404 User not found - */ - public void updateUser(String username, User user) throws ApiException { + public void updateUser(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws ApiException { updateUserWithHttpInfo(username, user); } @@ -394,7 +394,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse updateUserWithHttpInfo(String username, User user) throws ApiException { + public ApiResponse updateUserWithHttpInfo(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws ApiException { // Check required parameters if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser"); diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 29126cf63d2..19d745368d9 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -90,7 +90,7 @@ public class AnotherFakeApi { * @return CompletableFuture<Client> * @throws ApiException if fails to make API call */ - public CompletableFuture call123testSpecialTags(Client client) throws ApiException { + public CompletableFuture call123testSpecialTags(@javax.annotation.Nonnull Client client) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = call123testSpecialTagsRequestBuilder(client); return memberVarHttpClient.sendAsync( @@ -121,7 +121,7 @@ public class AnotherFakeApi { * @return CompletableFuture<ApiResponse<Client>> * @throws ApiException if fails to make API call */ - public CompletableFuture> call123testSpecialTagsWithHttpInfo(Client client) throws ApiException { + public CompletableFuture> call123testSpecialTagsWithHttpInfo(@javax.annotation.Nonnull Client client) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = call123testSpecialTagsRequestBuilder(client); return memberVarHttpClient.sendAsync( @@ -152,7 +152,7 @@ public class AnotherFakeApi { } } - private HttpRequest.Builder call123testSpecialTagsRequestBuilder(Client client) throws ApiException { + private HttpRequest.Builder call123testSpecialTagsRequestBuilder(@javax.annotation.Nonnull Client client) throws ApiException { // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags"); diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeApi.java index be48b4f7973..5676630b8fd 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeApi.java @@ -281,7 +281,7 @@ public class FakeApi { * @return CompletableFuture<Boolean> * @throws ApiException if fails to make API call */ - public CompletableFuture fakeOuterBooleanSerialize(Boolean body) throws ApiException { + public CompletableFuture fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = fakeOuterBooleanSerializeRequestBuilder(body); return memberVarHttpClient.sendAsync( @@ -312,7 +312,7 @@ public class FakeApi { * @return CompletableFuture<ApiResponse<Boolean>> * @throws ApiException if fails to make API call */ - public CompletableFuture> fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws ApiException { + public CompletableFuture> fakeOuterBooleanSerializeWithHttpInfo(@javax.annotation.Nullable Boolean body) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = fakeOuterBooleanSerializeRequestBuilder(body); return memberVarHttpClient.sendAsync( @@ -343,7 +343,7 @@ public class FakeApi { } } - private HttpRequest.Builder fakeOuterBooleanSerializeRequestBuilder(Boolean body) throws ApiException { + private HttpRequest.Builder fakeOuterBooleanSerializeRequestBuilder(@javax.annotation.Nullable Boolean body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -376,7 +376,7 @@ public class FakeApi { * @return CompletableFuture<OuterComposite> * @throws ApiException if fails to make API call */ - public CompletableFuture fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException { + public CompletableFuture fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite outerComposite) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = fakeOuterCompositeSerializeRequestBuilder(outerComposite); return memberVarHttpClient.sendAsync( @@ -407,7 +407,7 @@ public class FakeApi { * @return CompletableFuture<ApiResponse<OuterComposite>> * @throws ApiException if fails to make API call */ - public CompletableFuture> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws ApiException { + public CompletableFuture> fakeOuterCompositeSerializeWithHttpInfo(@javax.annotation.Nullable OuterComposite outerComposite) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = fakeOuterCompositeSerializeRequestBuilder(outerComposite); return memberVarHttpClient.sendAsync( @@ -438,7 +438,7 @@ public class FakeApi { } } - private HttpRequest.Builder fakeOuterCompositeSerializeRequestBuilder(OuterComposite outerComposite) throws ApiException { + private HttpRequest.Builder fakeOuterCompositeSerializeRequestBuilder(@javax.annotation.Nullable OuterComposite outerComposite) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -471,7 +471,7 @@ public class FakeApi { * @return CompletableFuture<BigDecimal> * @throws ApiException if fails to make API call */ - public CompletableFuture fakeOuterNumberSerialize(BigDecimal body) throws ApiException { + public CompletableFuture fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = fakeOuterNumberSerializeRequestBuilder(body); return memberVarHttpClient.sendAsync( @@ -502,7 +502,7 @@ public class FakeApi { * @return CompletableFuture<ApiResponse<BigDecimal>> * @throws ApiException if fails to make API call */ - public CompletableFuture> fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws ApiException { + public CompletableFuture> fakeOuterNumberSerializeWithHttpInfo(@javax.annotation.Nullable BigDecimal body) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = fakeOuterNumberSerializeRequestBuilder(body); return memberVarHttpClient.sendAsync( @@ -533,7 +533,7 @@ public class FakeApi { } } - private HttpRequest.Builder fakeOuterNumberSerializeRequestBuilder(BigDecimal body) throws ApiException { + private HttpRequest.Builder fakeOuterNumberSerializeRequestBuilder(@javax.annotation.Nullable BigDecimal body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -566,7 +566,7 @@ public class FakeApi { * @return CompletableFuture<String> * @throws ApiException if fails to make API call */ - public CompletableFuture fakeOuterStringSerialize(String body) throws ApiException { + public CompletableFuture fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = fakeOuterStringSerializeRequestBuilder(body); return memberVarHttpClient.sendAsync( @@ -597,7 +597,7 @@ public class FakeApi { * @return CompletableFuture<ApiResponse<String>> * @throws ApiException if fails to make API call */ - public CompletableFuture> fakeOuterStringSerializeWithHttpInfo(String body) throws ApiException { + public CompletableFuture> fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = fakeOuterStringSerializeRequestBuilder(body); return memberVarHttpClient.sendAsync( @@ -628,7 +628,7 @@ public class FakeApi { } } - private HttpRequest.Builder fakeOuterStringSerializeRequestBuilder(String body) throws ApiException { + private HttpRequest.Builder fakeOuterStringSerializeRequestBuilder(@javax.annotation.Nullable String body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -830,7 +830,7 @@ public class FakeApi { * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ - public CompletableFuture testAdditionalPropertiesReference(Map requestBody) throws ApiException { + public CompletableFuture testAdditionalPropertiesReference(@javax.annotation.Nonnull Map requestBody) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = testAdditionalPropertiesReferenceRequestBuilder(requestBody); return memberVarHttpClient.sendAsync( @@ -854,7 +854,7 @@ public class FakeApi { * @return CompletableFuture<ApiResponse<Void>> * @throws ApiException if fails to make API call */ - public CompletableFuture> testAdditionalPropertiesReferenceWithHttpInfo(Map requestBody) throws ApiException { + public CompletableFuture> testAdditionalPropertiesReferenceWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = testAdditionalPropertiesReferenceRequestBuilder(requestBody); return memberVarHttpClient.sendAsync( @@ -877,7 +877,7 @@ public class FakeApi { } } - private HttpRequest.Builder testAdditionalPropertiesReferenceRequestBuilder(Map requestBody) throws ApiException { + private HttpRequest.Builder testAdditionalPropertiesReferenceRequestBuilder(@javax.annotation.Nonnull Map requestBody) throws ApiException { // verify the required parameter 'requestBody' is set if (requestBody == null) { throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testAdditionalPropertiesReference"); @@ -914,7 +914,7 @@ public class FakeApi { * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ - public CompletableFuture testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException { + public CompletableFuture testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = testBodyWithFileSchemaRequestBuilder(fileSchemaTestClass); return memberVarHttpClient.sendAsync( @@ -938,7 +938,7 @@ public class FakeApi { * @return CompletableFuture<ApiResponse<Void>> * @throws ApiException if fails to make API call */ - public CompletableFuture> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws ApiException { + public CompletableFuture> testBodyWithFileSchemaWithHttpInfo(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = testBodyWithFileSchemaRequestBuilder(fileSchemaTestClass); return memberVarHttpClient.sendAsync( @@ -961,7 +961,7 @@ public class FakeApi { } } - private HttpRequest.Builder testBodyWithFileSchemaRequestBuilder(FileSchemaTestClass fileSchemaTestClass) throws ApiException { + private HttpRequest.Builder testBodyWithFileSchemaRequestBuilder(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws ApiException { // verify the required parameter 'fileSchemaTestClass' is set if (fileSchemaTestClass == null) { throw new ApiException(400, "Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema"); @@ -999,7 +999,7 @@ public class FakeApi { * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ - public CompletableFuture testBodyWithQueryParams(String query, User user) throws ApiException { + public CompletableFuture testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = testBodyWithQueryParamsRequestBuilder(query, user); return memberVarHttpClient.sendAsync( @@ -1024,7 +1024,7 @@ public class FakeApi { * @return CompletableFuture<ApiResponse<Void>> * @throws ApiException if fails to make API call */ - public CompletableFuture> testBodyWithQueryParamsWithHttpInfo(String query, User user) throws ApiException { + public CompletableFuture> testBodyWithQueryParamsWithHttpInfo(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = testBodyWithQueryParamsRequestBuilder(query, user); return memberVarHttpClient.sendAsync( @@ -1047,7 +1047,7 @@ public class FakeApi { } } - private HttpRequest.Builder testBodyWithQueryParamsRequestBuilder(String query, User user) throws ApiException { + private HttpRequest.Builder testBodyWithQueryParamsRequestBuilder(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws ApiException { // verify the required parameter 'query' is set if (query == null) { throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams"); @@ -1103,7 +1103,7 @@ public class FakeApi { * @return CompletableFuture<Client> * @throws ApiException if fails to make API call */ - public CompletableFuture testClientModel(Client client) throws ApiException { + public CompletableFuture testClientModel(@javax.annotation.Nonnull Client client) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = testClientModelRequestBuilder(client); return memberVarHttpClient.sendAsync( @@ -1134,7 +1134,7 @@ public class FakeApi { * @return CompletableFuture<ApiResponse<Client>> * @throws ApiException if fails to make API call */ - public CompletableFuture> testClientModelWithHttpInfo(Client client) throws ApiException { + public CompletableFuture> testClientModelWithHttpInfo(@javax.annotation.Nonnull Client client) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = testClientModelRequestBuilder(client); return memberVarHttpClient.sendAsync( @@ -1165,7 +1165,7 @@ public class FakeApi { } } - private HttpRequest.Builder testClientModelRequestBuilder(Client client) throws ApiException { + private HttpRequest.Builder testClientModelRequestBuilder(@javax.annotation.Nonnull Client client) throws ApiException { // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling testClientModel"); @@ -1215,7 +1215,7 @@ public class FakeApi { * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ - public CompletableFuture 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 ApiException { + public CompletableFuture 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 ApiException { try { HttpRequest.Builder localVarRequestBuilder = testEndpointParametersRequestBuilder(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); return memberVarHttpClient.sendAsync( @@ -1252,7 +1252,7 @@ public class FakeApi { * @return CompletableFuture<ApiResponse<Void>> * @throws ApiException if fails to make API call */ - public CompletableFuture> 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 ApiException { + public CompletableFuture> 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 ApiException { try { HttpRequest.Builder localVarRequestBuilder = testEndpointParametersRequestBuilder(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); return memberVarHttpClient.sendAsync( @@ -1275,7 +1275,7 @@ public class FakeApi { } } - private HttpRequest.Builder testEndpointParametersRequestBuilder(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 ApiException { + private HttpRequest.Builder testEndpointParametersRequestBuilder(@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 ApiException { // verify the required parameter 'number' is set if (number == null) { throw new ApiException(400, "Missing the required parameter 'number' when calling testEndpointParameters"); @@ -1378,7 +1378,7 @@ public class FakeApi { * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ - public CompletableFuture testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { + public CompletableFuture 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 enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = testEnumParametersRequestBuilder(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); return memberVarHttpClient.sendAsync( @@ -1409,7 +1409,7 @@ public class FakeApi { * @return CompletableFuture<ApiResponse<Void>> * @throws ApiException if fails to make API call */ - public CompletableFuture> testEnumParametersWithHttpInfo(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { + public CompletableFuture> 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 enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = testEnumParametersRequestBuilder(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); return memberVarHttpClient.sendAsync( @@ -1432,7 +1432,7 @@ public class FakeApi { } } - private HttpRequest.Builder testEnumParametersRequestBuilder(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { + private HttpRequest.Builder testEnumParametersRequestBuilder(@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 enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -1506,11 +1506,17 @@ public class FakeApi { * @throws ApiException if fails to make API call */ public CompletableFuture testGroupParameters(APItestGroupParametersRequest apiRequest) throws ApiException { + @javax.annotation.Nonnull Integer requiredStringGroup = apiRequest.requiredStringGroup(); + @javax.annotation.Nonnull Boolean requiredBooleanGroup = apiRequest.requiredBooleanGroup(); + @javax.annotation.Nonnull Long requiredInt64Group = apiRequest.requiredInt64Group(); + @javax.annotation.Nullable Integer stringGroup = apiRequest.stringGroup(); + @javax.annotation.Nullable Boolean booleanGroup = apiRequest.booleanGroup(); + @javax.annotation.Nullable Long int64Group = apiRequest.int64Group(); return testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -1544,7 +1550,7 @@ public class FakeApi { * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ - public CompletableFuture testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { + public CompletableFuture 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 ApiException { try { HttpRequest.Builder localVarRequestBuilder = testGroupParametersRequestBuilder(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); return memberVarHttpClient.sendAsync( @@ -1573,7 +1579,7 @@ public class FakeApi { * @return CompletableFuture<ApiResponse<Void>> * @throws ApiException if fails to make API call */ - public CompletableFuture> testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { + public CompletableFuture> 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 ApiException { try { HttpRequest.Builder localVarRequestBuilder = testGroupParametersRequestBuilder(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); return memberVarHttpClient.sendAsync( @@ -1596,7 +1602,7 @@ public class FakeApi { } } - private HttpRequest.Builder testGroupParametersRequestBuilder(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { + private HttpRequest.Builder testGroupParametersRequestBuilder(@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 ApiException { // verify the required parameter 'requiredStringGroup' is set if (requiredStringGroup == null) { throw new ApiException(400, "Missing the required parameter 'requiredStringGroup' when calling testGroupParameters"); @@ -1657,11 +1663,17 @@ public class FakeApi { public static final class APItestGroupParametersRequest { + @javax.annotation.Nonnull private Integer requiredStringGroup; // Required String in group parameters (required) + @javax.annotation.Nonnull private Boolean requiredBooleanGroup; // Required Boolean in group parameters (required) + @javax.annotation.Nonnull private Long requiredInt64Group; // Required Integer in group parameters (required) + @javax.annotation.Nullable private Integer stringGroup; // String in group parameters (optional) + @javax.annotation.Nullable private Boolean booleanGroup; // Boolean in group parameters (optional) + @javax.annotation.Nullable private Long int64Group; // Integer in group parameters (optional) private APItestGroupParametersRequest(Builder builder) { @@ -1672,21 +1684,27 @@ public class FakeApi { this.booleanGroup = builder.booleanGroup; this.int64Group = builder.int64Group; } + @javax.annotation.Nonnull public Integer requiredStringGroup() { return requiredStringGroup; } + @javax.annotation.Nonnull public Boolean requiredBooleanGroup() { return requiredBooleanGroup; } + @javax.annotation.Nonnull public Long requiredInt64Group() { return requiredInt64Group; } + @javax.annotation.Nullable public Integer stringGroup() { return stringGroup; } + @javax.annotation.Nullable public Boolean booleanGroup() { return booleanGroup; } + @javax.annotation.Nullable public Long int64Group() { return int64Group; } @@ -1702,27 +1720,27 @@ public class FakeApi { private Boolean booleanGroup; private Long int64Group; - public Builder requiredStringGroup(Integer requiredStringGroup) { + public Builder requiredStringGroup(@javax.annotation.Nonnull Integer requiredStringGroup) { this.requiredStringGroup = requiredStringGroup; return this; } - public Builder requiredBooleanGroup(Boolean requiredBooleanGroup) { + public Builder requiredBooleanGroup(@javax.annotation.Nonnull Boolean requiredBooleanGroup) { this.requiredBooleanGroup = requiredBooleanGroup; return this; } - public Builder requiredInt64Group(Long requiredInt64Group) { + public Builder requiredInt64Group(@javax.annotation.Nonnull Long requiredInt64Group) { this.requiredInt64Group = requiredInt64Group; return this; } - public Builder stringGroup(Integer stringGroup) { + public Builder stringGroup(@javax.annotation.Nullable Integer stringGroup) { this.stringGroup = stringGroup; return this; } - public Builder booleanGroup(Boolean booleanGroup) { + public Builder booleanGroup(@javax.annotation.Nullable Boolean booleanGroup) { this.booleanGroup = booleanGroup; return this; } - public Builder int64Group(Long int64Group) { + public Builder int64Group(@javax.annotation.Nullable Long int64Group) { this.int64Group = int64Group; return this; } @@ -1739,7 +1757,7 @@ public class FakeApi { * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ - public CompletableFuture testInlineAdditionalProperties(Map requestBody) throws ApiException { + public CompletableFuture testInlineAdditionalProperties(@javax.annotation.Nonnull Map requestBody) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = testInlineAdditionalPropertiesRequestBuilder(requestBody); return memberVarHttpClient.sendAsync( @@ -1763,7 +1781,7 @@ public class FakeApi { * @return CompletableFuture<ApiResponse<Void>> * @throws ApiException if fails to make API call */ - public CompletableFuture> testInlineAdditionalPropertiesWithHttpInfo(Map requestBody) throws ApiException { + public CompletableFuture> testInlineAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = testInlineAdditionalPropertiesRequestBuilder(requestBody); return memberVarHttpClient.sendAsync( @@ -1786,7 +1804,7 @@ public class FakeApi { } } - private HttpRequest.Builder testInlineAdditionalPropertiesRequestBuilder(Map requestBody) throws ApiException { + private HttpRequest.Builder testInlineAdditionalPropertiesRequestBuilder(@javax.annotation.Nonnull Map requestBody) throws ApiException { // verify the required parameter 'requestBody' is set if (requestBody == null) { throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties"); @@ -1823,7 +1841,7 @@ public class FakeApi { * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ - public CompletableFuture testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { + public CompletableFuture testInlineFreeformAdditionalProperties(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = testInlineFreeformAdditionalPropertiesRequestBuilder(testInlineFreeformAdditionalPropertiesRequest); return memberVarHttpClient.sendAsync( @@ -1847,7 +1865,7 @@ public class FakeApi { * @return CompletableFuture<ApiResponse<Void>> * @throws ApiException if fails to make API call */ - public CompletableFuture> testInlineFreeformAdditionalPropertiesWithHttpInfo(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { + public CompletableFuture> testInlineFreeformAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = testInlineFreeformAdditionalPropertiesRequestBuilder(testInlineFreeformAdditionalPropertiesRequest); return memberVarHttpClient.sendAsync( @@ -1870,7 +1888,7 @@ public class FakeApi { } } - private HttpRequest.Builder testInlineFreeformAdditionalPropertiesRequestBuilder(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { + private HttpRequest.Builder testInlineFreeformAdditionalPropertiesRequestBuilder(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { // verify the required parameter 'testInlineFreeformAdditionalPropertiesRequest' is set if (testInlineFreeformAdditionalPropertiesRequest == null) { throw new ApiException(400, "Missing the required parameter 'testInlineFreeformAdditionalPropertiesRequest' when calling testInlineFreeformAdditionalProperties"); @@ -1908,7 +1926,7 @@ public class FakeApi { * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ - public CompletableFuture testJsonFormData(String param, String param2) throws ApiException { + public CompletableFuture testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = testJsonFormDataRequestBuilder(param, param2); return memberVarHttpClient.sendAsync( @@ -1933,7 +1951,7 @@ public class FakeApi { * @return CompletableFuture<ApiResponse<Void>> * @throws ApiException if fails to make API call */ - public CompletableFuture> testJsonFormDataWithHttpInfo(String param, String param2) throws ApiException { + public CompletableFuture> testJsonFormDataWithHttpInfo(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = testJsonFormDataRequestBuilder(param, param2); return memberVarHttpClient.sendAsync( @@ -1956,7 +1974,7 @@ public class FakeApi { } } - private HttpRequest.Builder testJsonFormDataRequestBuilder(String param, String param2) throws ApiException { + private HttpRequest.Builder testJsonFormDataRequestBuilder(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws ApiException { // verify the required parameter 'param' is set if (param == null) { throw new ApiException(400, "Missing the required parameter 'param' when calling testJsonFormData"); @@ -2012,7 +2030,7 @@ public class FakeApi { * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ - public CompletableFuture testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context) throws ApiException { + public CompletableFuture 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) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = testQueryParameterCollectionFormatRequestBuilder(pipe, ioutil, http, url, context); return memberVarHttpClient.sendAsync( @@ -2040,7 +2058,7 @@ public class FakeApi { * @return CompletableFuture<ApiResponse<Void>> * @throws ApiException if fails to make API call */ - public CompletableFuture> testQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context) throws ApiException { + public CompletableFuture> 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) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = testQueryParameterCollectionFormatRequestBuilder(pipe, ioutil, http, url, context); return memberVarHttpClient.sendAsync( @@ -2063,7 +2081,7 @@ public class FakeApi { } } - private HttpRequest.Builder testQueryParameterCollectionFormatRequestBuilder(List pipe, List ioutil, List http, List url, List context) throws ApiException { + private HttpRequest.Builder testQueryParameterCollectionFormatRequestBuilder(@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) throws ApiException { // verify the required parameter 'pipe' is set if (pipe == null) { throw new ApiException(400, "Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat"); @@ -2133,7 +2151,7 @@ public class FakeApi { * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ - public CompletableFuture testStringMapReference(Map requestBody) throws ApiException { + public CompletableFuture testStringMapReference(@javax.annotation.Nonnull Map requestBody) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = testStringMapReferenceRequestBuilder(requestBody); return memberVarHttpClient.sendAsync( @@ -2157,7 +2175,7 @@ public class FakeApi { * @return CompletableFuture<ApiResponse<Void>> * @throws ApiException if fails to make API call */ - public CompletableFuture> testStringMapReferenceWithHttpInfo(Map requestBody) throws ApiException { + public CompletableFuture> testStringMapReferenceWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = testStringMapReferenceRequestBuilder(requestBody); return memberVarHttpClient.sendAsync( @@ -2180,7 +2198,7 @@ public class FakeApi { } } - private HttpRequest.Builder testStringMapReferenceRequestBuilder(Map requestBody) throws ApiException { + private HttpRequest.Builder testStringMapReferenceRequestBuilder(@javax.annotation.Nonnull Map requestBody) throws ApiException { // verify the required parameter 'requestBody' is set if (requestBody == null) { throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testStringMapReference"); diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 71ed25fa688..f0c25ec38ff 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -96,7 +96,7 @@ public class FakeClassnameTags123Api { * @return CompletableFuture<Client> * @throws ApiException if fails to make API call */ - public CompletableFuture testClassname(Client client) throws ApiException { + public CompletableFuture testClassname(@javax.annotation.Nonnull Client client) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = testClassnameRequestBuilder(client); return memberVarHttpClient.sendAsync( @@ -127,7 +127,7 @@ public class FakeClassnameTags123Api { * @return CompletableFuture<ApiResponse<Client>> * @throws ApiException if fails to make API call */ - public CompletableFuture> testClassnameWithHttpInfo(Client client) throws ApiException { + public CompletableFuture> testClassnameWithHttpInfo(@javax.annotation.Nonnull Client client) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = testClassnameRequestBuilder(client); return memberVarHttpClient.sendAsync( @@ -158,7 +158,7 @@ public class FakeClassnameTags123Api { } } - private HttpRequest.Builder testClassnameRequestBuilder(Client client) throws ApiException { + private HttpRequest.Builder testClassnameRequestBuilder(@javax.annotation.Nonnull Client client) throws ApiException { // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling testClassname"); diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/PetApi.java index 325b72eb3f3..467c34a05d3 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/PetApi.java @@ -98,7 +98,7 @@ public class PetApi { * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ - public CompletableFuture addPet(Pet pet) throws ApiException { + public CompletableFuture addPet(@javax.annotation.Nonnull Pet pet) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = addPetRequestBuilder(pet); return memberVarHttpClient.sendAsync( @@ -122,7 +122,7 @@ public class PetApi { * @return CompletableFuture<ApiResponse<Void>> * @throws ApiException if fails to make API call */ - public CompletableFuture> addPetWithHttpInfo(Pet pet) throws ApiException { + public CompletableFuture> addPetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = addPetRequestBuilder(pet); return memberVarHttpClient.sendAsync( @@ -145,7 +145,7 @@ public class PetApi { } } - private HttpRequest.Builder addPetRequestBuilder(Pet pet) throws ApiException { + private HttpRequest.Builder addPetRequestBuilder(@javax.annotation.Nonnull Pet pet) throws ApiException { // verify the required parameter 'pet' is set if (pet == null) { throw new ApiException(400, "Missing the required parameter 'pet' when calling addPet"); @@ -183,7 +183,7 @@ public class PetApi { * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ - public CompletableFuture deletePet(Long petId, String apiKey) throws ApiException { + public CompletableFuture deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = deletePetRequestBuilder(petId, apiKey); return memberVarHttpClient.sendAsync( @@ -208,7 +208,7 @@ public class PetApi { * @return CompletableFuture<ApiResponse<Void>> * @throws ApiException if fails to make API call */ - public CompletableFuture> deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException { + public CompletableFuture> deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = deletePetRequestBuilder(petId, apiKey); return memberVarHttpClient.sendAsync( @@ -231,7 +231,7 @@ public class PetApi { } } - private HttpRequest.Builder deletePetRequestBuilder(Long petId, String apiKey) throws ApiException { + private HttpRequest.Builder deletePetRequestBuilder(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling deletePet"); @@ -266,7 +266,7 @@ public class PetApi { * @return CompletableFuture<List<Pet>> * @throws ApiException if fails to make API call */ - public CompletableFuture> findPetsByStatus(List status) throws ApiException { + public CompletableFuture> findPetsByStatus(@javax.annotation.Nonnull List status) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = findPetsByStatusRequestBuilder(status); return memberVarHttpClient.sendAsync( @@ -297,7 +297,7 @@ public class PetApi { * @return CompletableFuture<ApiResponse<List<Pet>>> * @throws ApiException if fails to make API call */ - public CompletableFuture>> findPetsByStatusWithHttpInfo(List status) throws ApiException { + public CompletableFuture>> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = findPetsByStatusRequestBuilder(status); return memberVarHttpClient.sendAsync( @@ -328,7 +328,7 @@ public class PetApi { } } - private HttpRequest.Builder findPetsByStatusRequestBuilder(List status) throws ApiException { + private HttpRequest.Builder findPetsByStatusRequestBuilder(@javax.annotation.Nonnull List status) throws ApiException { // verify the required parameter 'status' is set if (status == null) { throw new ApiException(400, "Missing the required parameter 'status' when calling findPetsByStatus"); @@ -376,7 +376,7 @@ public class PetApi { * @deprecated */ @Deprecated - public CompletableFuture> findPetsByTags(List tags) throws ApiException { + public CompletableFuture> findPetsByTags(@javax.annotation.Nonnull List tags) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = findPetsByTagsRequestBuilder(tags); return memberVarHttpClient.sendAsync( @@ -409,7 +409,7 @@ public class PetApi { * @deprecated */ @Deprecated - public CompletableFuture>> findPetsByTagsWithHttpInfo(List tags) throws ApiException { + public CompletableFuture>> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull List tags) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = findPetsByTagsRequestBuilder(tags); return memberVarHttpClient.sendAsync( @@ -440,7 +440,7 @@ public class PetApi { } } - private HttpRequest.Builder findPetsByTagsRequestBuilder(List tags) throws ApiException { + private HttpRequest.Builder findPetsByTagsRequestBuilder(@javax.annotation.Nonnull List tags) throws ApiException { // verify the required parameter 'tags' is set if (tags == null) { throw new ApiException(400, "Missing the required parameter 'tags' when calling findPetsByTags"); @@ -486,7 +486,7 @@ public class PetApi { * @return CompletableFuture<Pet> * @throws ApiException if fails to make API call */ - public CompletableFuture getPetById(Long petId) throws ApiException { + public CompletableFuture getPetById(@javax.annotation.Nonnull Long petId) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = getPetByIdRequestBuilder(petId); return memberVarHttpClient.sendAsync( @@ -517,7 +517,7 @@ public class PetApi { * @return CompletableFuture<ApiResponse<Pet>> * @throws ApiException if fails to make API call */ - public CompletableFuture> getPetByIdWithHttpInfo(Long petId) throws ApiException { + public CompletableFuture> getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = getPetByIdRequestBuilder(petId); return memberVarHttpClient.sendAsync( @@ -548,7 +548,7 @@ public class PetApi { } } - private HttpRequest.Builder getPetByIdRequestBuilder(Long petId) throws ApiException { + private HttpRequest.Builder getPetByIdRequestBuilder(@javax.annotation.Nonnull Long petId) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling getPetById"); @@ -580,7 +580,7 @@ public class PetApi { * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ - public CompletableFuture updatePet(Pet pet) throws ApiException { + public CompletableFuture updatePet(@javax.annotation.Nonnull Pet pet) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = updatePetRequestBuilder(pet); return memberVarHttpClient.sendAsync( @@ -604,7 +604,7 @@ public class PetApi { * @return CompletableFuture<ApiResponse<Void>> * @throws ApiException if fails to make API call */ - public CompletableFuture> updatePetWithHttpInfo(Pet pet) throws ApiException { + public CompletableFuture> updatePetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = updatePetRequestBuilder(pet); return memberVarHttpClient.sendAsync( @@ -627,7 +627,7 @@ public class PetApi { } } - private HttpRequest.Builder updatePetRequestBuilder(Pet pet) throws ApiException { + private HttpRequest.Builder updatePetRequestBuilder(@javax.annotation.Nonnull Pet pet) throws ApiException { // verify the required parameter 'pet' is set if (pet == null) { throw new ApiException(400, "Missing the required parameter 'pet' when calling updatePet"); @@ -666,7 +666,7 @@ public class PetApi { * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ - public CompletableFuture updatePetWithForm(Long petId, String name, String status) throws ApiException { + public CompletableFuture updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = updatePetWithFormRequestBuilder(petId, name, status); return memberVarHttpClient.sendAsync( @@ -692,7 +692,7 @@ public class PetApi { * @return CompletableFuture<ApiResponse<Void>> * @throws ApiException if fails to make API call */ - public CompletableFuture> updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException { + public CompletableFuture> updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = updatePetWithFormRequestBuilder(petId, name, status); return memberVarHttpClient.sendAsync( @@ -715,7 +715,7 @@ public class PetApi { } } - private HttpRequest.Builder updatePetWithFormRequestBuilder(Long petId, String name, String status) throws ApiException { + private HttpRequest.Builder updatePetWithFormRequestBuilder(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling updatePetWithForm"); @@ -766,7 +766,7 @@ public class PetApi { * @return CompletableFuture<ModelApiResponse> * @throws ApiException if fails to make API call */ - public CompletableFuture uploadFile(Long petId, String additionalMetadata, File _file) throws ApiException { + public CompletableFuture uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = uploadFileRequestBuilder(petId, additionalMetadata, _file); return memberVarHttpClient.sendAsync( @@ -799,7 +799,7 @@ public class PetApi { * @return CompletableFuture<ApiResponse<ModelApiResponse>> * @throws ApiException if fails to make API call */ - public CompletableFuture> uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws ApiException { + public CompletableFuture> uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = uploadFileRequestBuilder(petId, additionalMetadata, _file); return memberVarHttpClient.sendAsync( @@ -830,7 +830,7 @@ public class PetApi { } } - private HttpRequest.Builder uploadFileRequestBuilder(Long petId, String additionalMetadata, File _file) throws ApiException { + private HttpRequest.Builder uploadFileRequestBuilder(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling uploadFile"); @@ -898,7 +898,7 @@ public class PetApi { * @return CompletableFuture<ModelApiResponse> * @throws ApiException if fails to make API call */ - public CompletableFuture uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws ApiException { + public CompletableFuture uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = uploadFileWithRequiredFileRequestBuilder(petId, requiredFile, additionalMetadata); return memberVarHttpClient.sendAsync( @@ -931,7 +931,7 @@ public class PetApi { * @return CompletableFuture<ApiResponse<ModelApiResponse>> * @throws ApiException if fails to make API call */ - public CompletableFuture> uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws ApiException { + public CompletableFuture> uploadFileWithRequiredFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = uploadFileWithRequiredFileRequestBuilder(petId, requiredFile, additionalMetadata); return memberVarHttpClient.sendAsync( @@ -962,7 +962,7 @@ public class PetApi { } } - private HttpRequest.Builder uploadFileWithRequiredFileRequestBuilder(Long petId, File requiredFile, String additionalMetadata) throws ApiException { + private HttpRequest.Builder uploadFileWithRequiredFileRequestBuilder(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling uploadFileWithRequiredFile"); diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/StoreApi.java index b9a84ca3202..a4c72ae2749 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/StoreApi.java @@ -96,7 +96,7 @@ public class StoreApi { * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ - public CompletableFuture deleteOrder(String orderId) throws ApiException { + public CompletableFuture deleteOrder(@javax.annotation.Nonnull String orderId) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = deleteOrderRequestBuilder(orderId); return memberVarHttpClient.sendAsync( @@ -120,7 +120,7 @@ public class StoreApi { * @return CompletableFuture<ApiResponse<Void>> * @throws ApiException if fails to make API call */ - public CompletableFuture> deleteOrderWithHttpInfo(String orderId) throws ApiException { + public CompletableFuture> deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = deleteOrderRequestBuilder(orderId); return memberVarHttpClient.sendAsync( @@ -143,7 +143,7 @@ public class StoreApi { } } - private HttpRequest.Builder deleteOrderRequestBuilder(String orderId) throws ApiException { + private HttpRequest.Builder deleteOrderRequestBuilder(@javax.annotation.Nonnull String orderId) throws ApiException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new ApiException(400, "Missing the required parameter 'orderId' when calling deleteOrder"); @@ -262,7 +262,7 @@ public class StoreApi { * @return CompletableFuture<Order> * @throws ApiException if fails to make API call */ - public CompletableFuture getOrderById(Long orderId) throws ApiException { + public CompletableFuture getOrderById(@javax.annotation.Nonnull Long orderId) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = getOrderByIdRequestBuilder(orderId); return memberVarHttpClient.sendAsync( @@ -293,7 +293,7 @@ public class StoreApi { * @return CompletableFuture<ApiResponse<Order>> * @throws ApiException if fails to make API call */ - public CompletableFuture> getOrderByIdWithHttpInfo(Long orderId) throws ApiException { + public CompletableFuture> getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = getOrderByIdRequestBuilder(orderId); return memberVarHttpClient.sendAsync( @@ -324,7 +324,7 @@ public class StoreApi { } } - private HttpRequest.Builder getOrderByIdRequestBuilder(Long orderId) throws ApiException { + private HttpRequest.Builder getOrderByIdRequestBuilder(@javax.annotation.Nonnull Long orderId) throws ApiException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new ApiException(400, "Missing the required parameter 'orderId' when calling getOrderById"); @@ -356,7 +356,7 @@ public class StoreApi { * @return CompletableFuture<Order> * @throws ApiException if fails to make API call */ - public CompletableFuture placeOrder(Order order) throws ApiException { + public CompletableFuture placeOrder(@javax.annotation.Nonnull Order order) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = placeOrderRequestBuilder(order); return memberVarHttpClient.sendAsync( @@ -387,7 +387,7 @@ public class StoreApi { * @return CompletableFuture<ApiResponse<Order>> * @throws ApiException if fails to make API call */ - public CompletableFuture> placeOrderWithHttpInfo(Order order) throws ApiException { + public CompletableFuture> placeOrderWithHttpInfo(@javax.annotation.Nonnull Order order) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = placeOrderRequestBuilder(order); return memberVarHttpClient.sendAsync( @@ -418,7 +418,7 @@ public class StoreApi { } } - private HttpRequest.Builder placeOrderRequestBuilder(Order order) throws ApiException { + private HttpRequest.Builder placeOrderRequestBuilder(@javax.annotation.Nonnull Order order) throws ApiException { // verify the required parameter 'order' is set if (order == null) { throw new ApiException(400, "Missing the required parameter 'order' when calling placeOrder"); diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/UserApi.java index 1ee3b3efbc6..7ec398311f9 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/UserApi.java @@ -97,7 +97,7 @@ public class UserApi { * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ - public CompletableFuture createUser(User user) throws ApiException { + public CompletableFuture createUser(@javax.annotation.Nonnull User user) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = createUserRequestBuilder(user); return memberVarHttpClient.sendAsync( @@ -121,7 +121,7 @@ public class UserApi { * @return CompletableFuture<ApiResponse<Void>> * @throws ApiException if fails to make API call */ - public CompletableFuture> createUserWithHttpInfo(User user) throws ApiException { + public CompletableFuture> createUserWithHttpInfo(@javax.annotation.Nonnull User user) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = createUserRequestBuilder(user); return memberVarHttpClient.sendAsync( @@ -144,7 +144,7 @@ public class UserApi { } } - private HttpRequest.Builder createUserRequestBuilder(User user) throws ApiException { + private HttpRequest.Builder createUserRequestBuilder(@javax.annotation.Nonnull User user) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException(400, "Missing the required parameter 'user' when calling createUser"); @@ -181,7 +181,7 @@ public class UserApi { * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ - public CompletableFuture createUsersWithArrayInput(List user) throws ApiException { + public CompletableFuture createUsersWithArrayInput(@javax.annotation.Nonnull List user) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = createUsersWithArrayInputRequestBuilder(user); return memberVarHttpClient.sendAsync( @@ -205,7 +205,7 @@ public class UserApi { * @return CompletableFuture<ApiResponse<Void>> * @throws ApiException if fails to make API call */ - public CompletableFuture> createUsersWithArrayInputWithHttpInfo(List user) throws ApiException { + public CompletableFuture> createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List user) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = createUsersWithArrayInputRequestBuilder(user); return memberVarHttpClient.sendAsync( @@ -228,7 +228,7 @@ public class UserApi { } } - private HttpRequest.Builder createUsersWithArrayInputRequestBuilder(List user) throws ApiException { + private HttpRequest.Builder createUsersWithArrayInputRequestBuilder(@javax.annotation.Nonnull List user) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithArrayInput"); @@ -265,7 +265,7 @@ public class UserApi { * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ - public CompletableFuture createUsersWithListInput(List user) throws ApiException { + public CompletableFuture createUsersWithListInput(@javax.annotation.Nonnull List user) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = createUsersWithListInputRequestBuilder(user); return memberVarHttpClient.sendAsync( @@ -289,7 +289,7 @@ public class UserApi { * @return CompletableFuture<ApiResponse<Void>> * @throws ApiException if fails to make API call */ - public CompletableFuture> createUsersWithListInputWithHttpInfo(List user) throws ApiException { + public CompletableFuture> createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List user) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = createUsersWithListInputRequestBuilder(user); return memberVarHttpClient.sendAsync( @@ -312,7 +312,7 @@ public class UserApi { } } - private HttpRequest.Builder createUsersWithListInputRequestBuilder(List user) throws ApiException { + private HttpRequest.Builder createUsersWithListInputRequestBuilder(@javax.annotation.Nonnull List user) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithListInput"); @@ -349,7 +349,7 @@ public class UserApi { * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ - public CompletableFuture deleteUser(String username) throws ApiException { + public CompletableFuture deleteUser(@javax.annotation.Nonnull String username) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = deleteUserRequestBuilder(username); return memberVarHttpClient.sendAsync( @@ -373,7 +373,7 @@ public class UserApi { * @return CompletableFuture<ApiResponse<Void>> * @throws ApiException if fails to make API call */ - public CompletableFuture> deleteUserWithHttpInfo(String username) throws ApiException { + public CompletableFuture> deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = deleteUserRequestBuilder(username); return memberVarHttpClient.sendAsync( @@ -396,7 +396,7 @@ public class UserApi { } } - private HttpRequest.Builder deleteUserRequestBuilder(String username) throws ApiException { + private HttpRequest.Builder deleteUserRequestBuilder(@javax.annotation.Nonnull String username) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling deleteUser"); @@ -428,7 +428,7 @@ public class UserApi { * @return CompletableFuture<User> * @throws ApiException if fails to make API call */ - public CompletableFuture getUserByName(String username) throws ApiException { + public CompletableFuture getUserByName(@javax.annotation.Nonnull String username) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = getUserByNameRequestBuilder(username); return memberVarHttpClient.sendAsync( @@ -459,7 +459,7 @@ public class UserApi { * @return CompletableFuture<ApiResponse<User>> * @throws ApiException if fails to make API call */ - public CompletableFuture> getUserByNameWithHttpInfo(String username) throws ApiException { + public CompletableFuture> getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = getUserByNameRequestBuilder(username); return memberVarHttpClient.sendAsync( @@ -490,7 +490,7 @@ public class UserApi { } } - private HttpRequest.Builder getUserByNameRequestBuilder(String username) throws ApiException { + private HttpRequest.Builder getUserByNameRequestBuilder(@javax.annotation.Nonnull String username) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling getUserByName"); @@ -523,7 +523,7 @@ public class UserApi { * @return CompletableFuture<String> * @throws ApiException if fails to make API call */ - public CompletableFuture loginUser(String username, String password) throws ApiException { + public CompletableFuture loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = loginUserRequestBuilder(username, password); return memberVarHttpClient.sendAsync( @@ -555,7 +555,7 @@ public class UserApi { * @return CompletableFuture<ApiResponse<String>> * @throws ApiException if fails to make API call */ - public CompletableFuture> loginUserWithHttpInfo(String username, String password) throws ApiException { + public CompletableFuture> loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = loginUserRequestBuilder(username, password); return memberVarHttpClient.sendAsync( @@ -586,7 +586,7 @@ public class UserApi { } } - private HttpRequest.Builder loginUserRequestBuilder(String username, String password) throws ApiException { + private HttpRequest.Builder loginUserRequestBuilder(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling loginUser"); @@ -711,7 +711,7 @@ public class UserApi { * @return CompletableFuture<Void> * @throws ApiException if fails to make API call */ - public CompletableFuture updateUser(String username, User user) throws ApiException { + public CompletableFuture updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = updateUserRequestBuilder(username, user); return memberVarHttpClient.sendAsync( @@ -736,7 +736,7 @@ public class UserApi { * @return CompletableFuture<ApiResponse<Void>> * @throws ApiException if fails to make API call */ - public CompletableFuture> updateUserWithHttpInfo(String username, User user) throws ApiException { + public CompletableFuture> updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { try { HttpRequest.Builder localVarRequestBuilder = updateUserRequestBuilder(username, user); return memberVarHttpClient.sendAsync( @@ -759,7 +759,7 @@ public class UserApi { } } - private HttpRequest.Builder updateUserRequestBuilder(String username, User user) throws ApiException { + private HttpRequest.Builder updateUserRequestBuilder(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser"); diff --git a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/api/PetApi.java index 9b0450d9727..99fd2b395fe 100644 --- a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/api/PetApi.java @@ -97,7 +97,7 @@ public class PetApi { * @return Pet * @throws ApiException if fails to make API call */ - public Pet addPet(Pet pet) throws ApiException { + public Pet addPet(@jakarta.annotation.Nonnull Pet pet) throws ApiException { ApiResponse localVarResponse = addPetWithHttpInfo(pet); return localVarResponse.getData(); } @@ -109,7 +109,7 @@ public class PetApi { * @return ApiResponse<Pet> * @throws ApiException if fails to make API call */ - public ApiResponse addPetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse addPetWithHttpInfo(@jakarta.annotation.Nonnull Pet pet) throws ApiException { HttpRequest.Builder localVarRequestBuilder = addPetRequestBuilder(pet); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -149,7 +149,7 @@ public class PetApi { } } - private HttpRequest.Builder addPetRequestBuilder(Pet pet) throws ApiException { + private HttpRequest.Builder addPetRequestBuilder(@jakarta.annotation.Nonnull Pet pet) throws ApiException { // verify the required parameter 'pet' is set if (pet == null) { throw new ApiException(400, "Missing the required parameter 'pet' when calling addPet"); @@ -186,7 +186,7 @@ public class PetApi { * @param apiKey (optional) * @throws ApiException if fails to make API call */ - public void deletePet(Long petId, String apiKey) throws ApiException { + public void deletePet(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws ApiException { deletePetWithHttpInfo(petId, apiKey); } @@ -198,7 +198,7 @@ public class PetApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException { + public ApiResponse deletePetWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws ApiException { HttpRequest.Builder localVarRequestBuilder = deletePetRequestBuilder(petId, apiKey); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -232,7 +232,7 @@ public class PetApi { } } - private HttpRequest.Builder deletePetRequestBuilder(Long petId, String apiKey) throws ApiException { + private HttpRequest.Builder deletePetRequestBuilder(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling deletePet"); @@ -267,7 +267,7 @@ public class PetApi { * @return List<Pet> * @throws ApiException if fails to make API call */ - public List findPetsByStatus(List status) throws ApiException { + public List findPetsByStatus(@jakarta.annotation.Nonnull List status) throws ApiException { ApiResponse> localVarResponse = findPetsByStatusWithHttpInfo(status); return localVarResponse.getData(); } @@ -279,7 +279,7 @@ public class PetApi { * @return ApiResponse<List<Pet>> * @throws ApiException if fails to make API call */ - public ApiResponse> findPetsByStatusWithHttpInfo(List status) throws ApiException { + public ApiResponse> findPetsByStatusWithHttpInfo(@jakarta.annotation.Nonnull List status) throws ApiException { HttpRequest.Builder localVarRequestBuilder = findPetsByStatusRequestBuilder(status); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -319,7 +319,7 @@ public class PetApi { } } - private HttpRequest.Builder findPetsByStatusRequestBuilder(List status) throws ApiException { + private HttpRequest.Builder findPetsByStatusRequestBuilder(@jakarta.annotation.Nonnull List status) throws ApiException { // verify the required parameter 'status' is set if (status == null) { throw new ApiException(400, "Missing the required parameter 'status' when calling findPetsByStatus"); @@ -367,7 +367,7 @@ public class PetApi { * @deprecated */ @Deprecated - public List findPetsByTags(List tags) throws ApiException { + public List findPetsByTags(@jakarta.annotation.Nonnull List tags) throws ApiException { ApiResponse> localVarResponse = findPetsByTagsWithHttpInfo(tags); return localVarResponse.getData(); } @@ -381,7 +381,7 @@ public class PetApi { * @deprecated */ @Deprecated - public ApiResponse> findPetsByTagsWithHttpInfo(List tags) throws ApiException { + public ApiResponse> findPetsByTagsWithHttpInfo(@jakarta.annotation.Nonnull List tags) throws ApiException { HttpRequest.Builder localVarRequestBuilder = findPetsByTagsRequestBuilder(tags); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -421,7 +421,7 @@ public class PetApi { } } - private HttpRequest.Builder findPetsByTagsRequestBuilder(List tags) throws ApiException { + private HttpRequest.Builder findPetsByTagsRequestBuilder(@jakarta.annotation.Nonnull List tags) throws ApiException { // verify the required parameter 'tags' is set if (tags == null) { throw new ApiException(400, "Missing the required parameter 'tags' when calling findPetsByTags"); @@ -467,7 +467,7 @@ public class PetApi { * @return Pet * @throws ApiException if fails to make API call */ - public Pet getPetById(Long petId) throws ApiException { + public Pet getPetById(@jakarta.annotation.Nonnull Long petId) throws ApiException { ApiResponse localVarResponse = getPetByIdWithHttpInfo(petId); return localVarResponse.getData(); } @@ -479,7 +479,7 @@ public class PetApi { * @return ApiResponse<Pet> * @throws ApiException if fails to make API call */ - public ApiResponse getPetByIdWithHttpInfo(Long petId) throws ApiException { + public ApiResponse getPetByIdWithHttpInfo(@jakarta.annotation.Nonnull Long petId) throws ApiException { HttpRequest.Builder localVarRequestBuilder = getPetByIdRequestBuilder(petId); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -519,7 +519,7 @@ public class PetApi { } } - private HttpRequest.Builder getPetByIdRequestBuilder(Long petId) throws ApiException { + private HttpRequest.Builder getPetByIdRequestBuilder(@jakarta.annotation.Nonnull Long petId) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling getPetById"); @@ -553,7 +553,7 @@ public class PetApi { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public Pet updatePet(Pet pet) throws ApiException { + public Pet updatePet(@jakarta.annotation.Nonnull Pet pet) throws ApiException { ApiResponse localVarResponse = updatePetWithHttpInfo(pet); return localVarResponse.getData(); } @@ -567,7 +567,7 @@ public class PetApi { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public ApiResponse updatePetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse updatePetWithHttpInfo(@jakarta.annotation.Nonnull Pet pet) throws ApiException { HttpRequest.Builder localVarRequestBuilder = updatePetRequestBuilder(pet); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -607,7 +607,7 @@ public class PetApi { } } - private HttpRequest.Builder updatePetRequestBuilder(Pet pet) throws ApiException { + private HttpRequest.Builder updatePetRequestBuilder(@jakarta.annotation.Nonnull Pet pet) throws ApiException { // verify the required parameter 'pet' is set if (pet == null) { throw new ApiException(400, "Missing the required parameter 'pet' when calling updatePet"); @@ -645,7 +645,7 @@ public class PetApi { * @param status Updated status of the pet (optional) * @throws ApiException if fails to make API call */ - public void updatePetWithForm(Long petId, String name, String status) throws ApiException { + public void updatePetWithForm(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws ApiException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -658,7 +658,7 @@ public class PetApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException { + public ApiResponse updatePetWithFormWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws ApiException { HttpRequest.Builder localVarRequestBuilder = updatePetWithFormRequestBuilder(petId, name, status); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -692,7 +692,7 @@ public class PetApi { } } - private HttpRequest.Builder updatePetWithFormRequestBuilder(Long petId, String name, String status) throws ApiException { + private HttpRequest.Builder updatePetWithFormRequestBuilder(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling updatePetWithForm"); @@ -743,7 +743,7 @@ public class PetApi { * @return ModelApiResponse * @throws ApiException if fails to make API call */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws ApiException { + public ModelApiResponse uploadFile(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws ApiException { ApiResponse localVarResponse = uploadFileWithHttpInfo(petId, additionalMetadata, _file); return localVarResponse.getData(); } @@ -757,7 +757,7 @@ public class PetApi { * @return ApiResponse<ModelApiResponse> * @throws ApiException if fails to make API call */ - public ApiResponse uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws ApiException { + public ApiResponse uploadFileWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws ApiException { HttpRequest.Builder localVarRequestBuilder = uploadFileRequestBuilder(petId, additionalMetadata, _file); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -797,7 +797,7 @@ public class PetApi { } } - private HttpRequest.Builder uploadFileRequestBuilder(Long petId, String additionalMetadata, File _file) throws ApiException { + private HttpRequest.Builder uploadFileRequestBuilder(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling uploadFile"); diff --git a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/api/StoreApi.java index 8e4278d2d5f..651dbd555ed 100644 --- a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/api/StoreApi.java @@ -94,7 +94,7 @@ public class StoreApi { * @param orderId ID of the order that needs to be deleted (required) * @throws ApiException if fails to make API call */ - public void deleteOrder(String orderId) throws ApiException { + public void deleteOrder(@jakarta.annotation.Nonnull String orderId) throws ApiException { deleteOrderWithHttpInfo(orderId); } @@ -105,7 +105,7 @@ public class StoreApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse deleteOrderWithHttpInfo(String orderId) throws ApiException { + public ApiResponse deleteOrderWithHttpInfo(@jakarta.annotation.Nonnull String orderId) throws ApiException { HttpRequest.Builder localVarRequestBuilder = deleteOrderRequestBuilder(orderId); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -139,7 +139,7 @@ public class StoreApi { } } - private HttpRequest.Builder deleteOrderRequestBuilder(String orderId) throws ApiException { + private HttpRequest.Builder deleteOrderRequestBuilder(@jakarta.annotation.Nonnull String orderId) throws ApiException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new ApiException(400, "Missing the required parameter 'orderId' when calling deleteOrder"); @@ -248,7 +248,7 @@ public class StoreApi { * @return Order * @throws ApiException if fails to make API call */ - public Order getOrderById(Long orderId) throws ApiException { + public Order getOrderById(@jakarta.annotation.Nonnull Long orderId) throws ApiException { ApiResponse localVarResponse = getOrderByIdWithHttpInfo(orderId); return localVarResponse.getData(); } @@ -260,7 +260,7 @@ public class StoreApi { * @return ApiResponse<Order> * @throws ApiException if fails to make API call */ - public ApiResponse getOrderByIdWithHttpInfo(Long orderId) throws ApiException { + public ApiResponse getOrderByIdWithHttpInfo(@jakarta.annotation.Nonnull Long orderId) throws ApiException { HttpRequest.Builder localVarRequestBuilder = getOrderByIdRequestBuilder(orderId); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -300,7 +300,7 @@ public class StoreApi { } } - private HttpRequest.Builder getOrderByIdRequestBuilder(Long orderId) throws ApiException { + private HttpRequest.Builder getOrderByIdRequestBuilder(@jakarta.annotation.Nonnull Long orderId) throws ApiException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new ApiException(400, "Missing the required parameter 'orderId' when calling getOrderById"); @@ -332,7 +332,7 @@ public class StoreApi { * @return Order * @throws ApiException if fails to make API call */ - public Order placeOrder(Order order) throws ApiException { + public Order placeOrder(@jakarta.annotation.Nonnull Order order) throws ApiException { ApiResponse localVarResponse = placeOrderWithHttpInfo(order); return localVarResponse.getData(); } @@ -344,7 +344,7 @@ public class StoreApi { * @return ApiResponse<Order> * @throws ApiException if fails to make API call */ - public ApiResponse placeOrderWithHttpInfo(Order order) throws ApiException { + public ApiResponse placeOrderWithHttpInfo(@jakarta.annotation.Nonnull Order order) throws ApiException { HttpRequest.Builder localVarRequestBuilder = placeOrderRequestBuilder(order); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -384,7 +384,7 @@ public class StoreApi { } } - private HttpRequest.Builder placeOrderRequestBuilder(Order order) throws ApiException { + private HttpRequest.Builder placeOrderRequestBuilder(@jakarta.annotation.Nonnull Order order) throws ApiException { // verify the required parameter 'order' is set if (order == null) { throw new ApiException(400, "Missing the required parameter 'order' when calling placeOrder"); diff --git a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/api/UserApi.java index 59f6c9bba97..44fc820fd0f 100644 --- a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/api/UserApi.java @@ -95,7 +95,7 @@ public class UserApi { * @param user Created user object (required) * @throws ApiException if fails to make API call */ - public void createUser(User user) throws ApiException { + public void createUser(@jakarta.annotation.Nonnull User user) throws ApiException { createUserWithHttpInfo(user); } @@ -106,7 +106,7 @@ public class UserApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse createUserWithHttpInfo(User user) throws ApiException { + public ApiResponse createUserWithHttpInfo(@jakarta.annotation.Nonnull User user) throws ApiException { HttpRequest.Builder localVarRequestBuilder = createUserRequestBuilder(user); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -140,7 +140,7 @@ public class UserApi { } } - private HttpRequest.Builder createUserRequestBuilder(User user) throws ApiException { + private HttpRequest.Builder createUserRequestBuilder(@jakarta.annotation.Nonnull User user) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException(400, "Missing the required parameter 'user' when calling createUser"); @@ -176,7 +176,7 @@ public class UserApi { * @param user List of user object (required) * @throws ApiException if fails to make API call */ - public void createUsersWithArrayInput(List user) throws ApiException { + public void createUsersWithArrayInput(@jakarta.annotation.Nonnull List user) throws ApiException { createUsersWithArrayInputWithHttpInfo(user); } @@ -187,7 +187,7 @@ public class UserApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse createUsersWithArrayInputWithHttpInfo(List user) throws ApiException { + public ApiResponse createUsersWithArrayInputWithHttpInfo(@jakarta.annotation.Nonnull List user) throws ApiException { HttpRequest.Builder localVarRequestBuilder = createUsersWithArrayInputRequestBuilder(user); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -221,7 +221,7 @@ public class UserApi { } } - private HttpRequest.Builder createUsersWithArrayInputRequestBuilder(List user) throws ApiException { + private HttpRequest.Builder createUsersWithArrayInputRequestBuilder(@jakarta.annotation.Nonnull List user) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithArrayInput"); @@ -257,7 +257,7 @@ public class UserApi { * @param user List of user object (required) * @throws ApiException if fails to make API call */ - public void createUsersWithListInput(List user) throws ApiException { + public void createUsersWithListInput(@jakarta.annotation.Nonnull List user) throws ApiException { createUsersWithListInputWithHttpInfo(user); } @@ -268,7 +268,7 @@ public class UserApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse createUsersWithListInputWithHttpInfo(List user) throws ApiException { + public ApiResponse createUsersWithListInputWithHttpInfo(@jakarta.annotation.Nonnull List user) throws ApiException { HttpRequest.Builder localVarRequestBuilder = createUsersWithListInputRequestBuilder(user); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -302,7 +302,7 @@ public class UserApi { } } - private HttpRequest.Builder createUsersWithListInputRequestBuilder(List user) throws ApiException { + private HttpRequest.Builder createUsersWithListInputRequestBuilder(@jakarta.annotation.Nonnull List user) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithListInput"); @@ -338,7 +338,7 @@ public class UserApi { * @param username The name that needs to be deleted (required) * @throws ApiException if fails to make API call */ - public void deleteUser(String username) throws ApiException { + public void deleteUser(@jakarta.annotation.Nonnull String username) throws ApiException { deleteUserWithHttpInfo(username); } @@ -349,7 +349,7 @@ public class UserApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse deleteUserWithHttpInfo(String username) throws ApiException { + public ApiResponse deleteUserWithHttpInfo(@jakarta.annotation.Nonnull String username) throws ApiException { HttpRequest.Builder localVarRequestBuilder = deleteUserRequestBuilder(username); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -383,7 +383,7 @@ public class UserApi { } } - private HttpRequest.Builder deleteUserRequestBuilder(String username) throws ApiException { + private HttpRequest.Builder deleteUserRequestBuilder(@jakarta.annotation.Nonnull String username) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling deleteUser"); @@ -415,7 +415,7 @@ public class UserApi { * @return User * @throws ApiException if fails to make API call */ - public User getUserByName(String username) throws ApiException { + public User getUserByName(@jakarta.annotation.Nonnull String username) throws ApiException { ApiResponse localVarResponse = getUserByNameWithHttpInfo(username); return localVarResponse.getData(); } @@ -427,7 +427,7 @@ public class UserApi { * @return ApiResponse<User> * @throws ApiException if fails to make API call */ - public ApiResponse getUserByNameWithHttpInfo(String username) throws ApiException { + public ApiResponse getUserByNameWithHttpInfo(@jakarta.annotation.Nonnull String username) throws ApiException { HttpRequest.Builder localVarRequestBuilder = getUserByNameRequestBuilder(username); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -467,7 +467,7 @@ public class UserApi { } } - private HttpRequest.Builder getUserByNameRequestBuilder(String username) throws ApiException { + private HttpRequest.Builder getUserByNameRequestBuilder(@jakarta.annotation.Nonnull String username) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling getUserByName"); @@ -500,7 +500,7 @@ public class UserApi { * @return String * @throws ApiException if fails to make API call */ - public String loginUser(String username, String password) throws ApiException { + public String loginUser(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws ApiException { ApiResponse localVarResponse = loginUserWithHttpInfo(username, password); return localVarResponse.getData(); } @@ -513,7 +513,7 @@ public class UserApi { * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse loginUserWithHttpInfo(String username, String password) throws ApiException { + public ApiResponse loginUserWithHttpInfo(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws ApiException { HttpRequest.Builder localVarRequestBuilder = loginUserRequestBuilder(username, password); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -553,7 +553,7 @@ public class UserApi { } } - private HttpRequest.Builder loginUserRequestBuilder(String username, String password) throws ApiException { + private HttpRequest.Builder loginUserRequestBuilder(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling loginUser"); @@ -674,7 +674,7 @@ public class UserApi { * @param user Updated user object (required) * @throws ApiException if fails to make API call */ - public void updateUser(String username, User user) throws ApiException { + public void updateUser(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws ApiException { updateUserWithHttpInfo(username, user); } @@ -686,7 +686,7 @@ public class UserApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse updateUserWithHttpInfo(String username, User user) throws ApiException { + public ApiResponse updateUserWithHttpInfo(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws ApiException { HttpRequest.Builder localVarRequestBuilder = updateUserRequestBuilder(username, user); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -720,7 +720,7 @@ public class UserApi { } } - private HttpRequest.Builder updateUserRequestBuilder(String username, User user) throws ApiException { + private HttpRequest.Builder updateUserRequestBuilder(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser"); diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index ade671810ed..556e272cb2a 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -89,7 +89,7 @@ public class AnotherFakeApi { * @return Client * @throws ApiException if fails to make API call */ - public Client call123testSpecialTags(Client client) throws ApiException { + public Client call123testSpecialTags(@javax.annotation.Nonnull Client client) throws ApiException { ApiResponse localVarResponse = call123testSpecialTagsWithHttpInfo(client); return localVarResponse.getData(); } @@ -101,7 +101,7 @@ public class AnotherFakeApi { * @return ApiResponse<Client> * @throws ApiException if fails to make API call */ - public ApiResponse call123testSpecialTagsWithHttpInfo(Client client) throws ApiException { + public ApiResponse call123testSpecialTagsWithHttpInfo(@javax.annotation.Nonnull Client client) throws ApiException { HttpRequest.Builder localVarRequestBuilder = call123testSpecialTagsRequestBuilder(client); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -141,7 +141,7 @@ public class AnotherFakeApi { } } - private HttpRequest.Builder call123testSpecialTagsRequestBuilder(Client client) throws ApiException { + private HttpRequest.Builder call123testSpecialTagsRequestBuilder(@javax.annotation.Nonnull Client client) throws ApiException { // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags"); diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/FakeApi.java index 50654f0a24d..93d635cc08a 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/FakeApi.java @@ -260,7 +260,7 @@ public class FakeApi { * @return Boolean * @throws ApiException if fails to make API call */ - public Boolean fakeOuterBooleanSerialize(Boolean body) throws ApiException { + public Boolean fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body) throws ApiException { ApiResponse localVarResponse = fakeOuterBooleanSerializeWithHttpInfo(body); return localVarResponse.getData(); } @@ -272,7 +272,7 @@ public class FakeApi { * @return ApiResponse<Boolean> * @throws ApiException if fails to make API call */ - public ApiResponse fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws ApiException { + public ApiResponse fakeOuterBooleanSerializeWithHttpInfo(@javax.annotation.Nullable Boolean body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = fakeOuterBooleanSerializeRequestBuilder(body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -312,7 +312,7 @@ public class FakeApi { } } - private HttpRequest.Builder fakeOuterBooleanSerializeRequestBuilder(Boolean body) throws ApiException { + private HttpRequest.Builder fakeOuterBooleanSerializeRequestBuilder(@javax.annotation.Nullable Boolean body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -345,7 +345,7 @@ public class FakeApi { * @return OuterComposite * @throws ApiException if fails to make API call */ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException { + public OuterComposite fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite outerComposite) throws ApiException { ApiResponse localVarResponse = fakeOuterCompositeSerializeWithHttpInfo(outerComposite); return localVarResponse.getData(); } @@ -357,7 +357,7 @@ public class FakeApi { * @return ApiResponse<OuterComposite> * @throws ApiException if fails to make API call */ - public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws ApiException { + public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(@javax.annotation.Nullable OuterComposite outerComposite) throws ApiException { HttpRequest.Builder localVarRequestBuilder = fakeOuterCompositeSerializeRequestBuilder(outerComposite); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -397,7 +397,7 @@ public class FakeApi { } } - private HttpRequest.Builder fakeOuterCompositeSerializeRequestBuilder(OuterComposite outerComposite) throws ApiException { + private HttpRequest.Builder fakeOuterCompositeSerializeRequestBuilder(@javax.annotation.Nullable OuterComposite outerComposite) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -430,7 +430,7 @@ public class FakeApi { * @return BigDecimal * @throws ApiException if fails to make API call */ - public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws ApiException { + public BigDecimal fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body) throws ApiException { ApiResponse localVarResponse = fakeOuterNumberSerializeWithHttpInfo(body); return localVarResponse.getData(); } @@ -442,7 +442,7 @@ public class FakeApi { * @return ApiResponse<BigDecimal> * @throws ApiException if fails to make API call */ - public ApiResponse fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws ApiException { + public ApiResponse fakeOuterNumberSerializeWithHttpInfo(@javax.annotation.Nullable BigDecimal body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = fakeOuterNumberSerializeRequestBuilder(body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -482,7 +482,7 @@ public class FakeApi { } } - private HttpRequest.Builder fakeOuterNumberSerializeRequestBuilder(BigDecimal body) throws ApiException { + private HttpRequest.Builder fakeOuterNumberSerializeRequestBuilder(@javax.annotation.Nullable BigDecimal body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -515,7 +515,7 @@ public class FakeApi { * @return String * @throws ApiException if fails to make API call */ - public String fakeOuterStringSerialize(String body) throws ApiException { + public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws ApiException { ApiResponse localVarResponse = fakeOuterStringSerializeWithHttpInfo(body); return localVarResponse.getData(); } @@ -527,7 +527,7 @@ public class FakeApi { * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse fakeOuterStringSerializeWithHttpInfo(String body) throws ApiException { + public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = fakeOuterStringSerializeRequestBuilder(body); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -567,7 +567,7 @@ public class FakeApi { } } - private HttpRequest.Builder fakeOuterStringSerializeRequestBuilder(String body) throws ApiException { + private HttpRequest.Builder fakeOuterStringSerializeRequestBuilder(@javax.annotation.Nullable String body) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -748,7 +748,7 @@ public class FakeApi { * @param requestBody request body (required) * @throws ApiException if fails to make API call */ - public void testAdditionalPropertiesReference(Map requestBody) throws ApiException { + public void testAdditionalPropertiesReference(@javax.annotation.Nonnull Map requestBody) throws ApiException { testAdditionalPropertiesReferenceWithHttpInfo(requestBody); } @@ -759,7 +759,7 @@ public class FakeApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse testAdditionalPropertiesReferenceWithHttpInfo(Map requestBody) throws ApiException { + public ApiResponse testAdditionalPropertiesReferenceWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testAdditionalPropertiesReferenceRequestBuilder(requestBody); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -793,7 +793,7 @@ public class FakeApi { } } - private HttpRequest.Builder testAdditionalPropertiesReferenceRequestBuilder(Map requestBody) throws ApiException { + private HttpRequest.Builder testAdditionalPropertiesReferenceRequestBuilder(@javax.annotation.Nonnull Map requestBody) throws ApiException { // verify the required parameter 'requestBody' is set if (requestBody == null) { throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testAdditionalPropertiesReference"); @@ -829,7 +829,7 @@ public class FakeApi { * @param fileSchemaTestClass (required) * @throws ApiException if fails to make API call */ - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException { + public void testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws ApiException { testBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass); } @@ -840,7 +840,7 @@ public class FakeApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws ApiException { + public ApiResponse testBodyWithFileSchemaWithHttpInfo(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testBodyWithFileSchemaRequestBuilder(fileSchemaTestClass); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -874,7 +874,7 @@ public class FakeApi { } } - private HttpRequest.Builder testBodyWithFileSchemaRequestBuilder(FileSchemaTestClass fileSchemaTestClass) throws ApiException { + private HttpRequest.Builder testBodyWithFileSchemaRequestBuilder(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws ApiException { // verify the required parameter 'fileSchemaTestClass' is set if (fileSchemaTestClass == null) { throw new ApiException(400, "Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema"); @@ -911,7 +911,7 @@ public class FakeApi { * @param user (required) * @throws ApiException if fails to make API call */ - public void testBodyWithQueryParams(String query, User user) throws ApiException { + public void testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws ApiException { testBodyWithQueryParamsWithHttpInfo(query, user); } @@ -923,7 +923,7 @@ public class FakeApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse testBodyWithQueryParamsWithHttpInfo(String query, User user) throws ApiException { + public ApiResponse testBodyWithQueryParamsWithHttpInfo(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testBodyWithQueryParamsRequestBuilder(query, user); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -957,7 +957,7 @@ public class FakeApi { } } - private HttpRequest.Builder testBodyWithQueryParamsRequestBuilder(String query, User user) throws ApiException { + private HttpRequest.Builder testBodyWithQueryParamsRequestBuilder(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws ApiException { // verify the required parameter 'query' is set if (query == null) { throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams"); @@ -1013,7 +1013,7 @@ public class FakeApi { * @return Client * @throws ApiException if fails to make API call */ - public Client testClientModel(Client client) throws ApiException { + public Client testClientModel(@javax.annotation.Nonnull Client client) throws ApiException { ApiResponse localVarResponse = testClientModelWithHttpInfo(client); return localVarResponse.getData(); } @@ -1025,7 +1025,7 @@ public class FakeApi { * @return ApiResponse<Client> * @throws ApiException if fails to make API call */ - public ApiResponse testClientModelWithHttpInfo(Client client) throws ApiException { + public ApiResponse testClientModelWithHttpInfo(@javax.annotation.Nonnull Client client) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testClientModelRequestBuilder(client); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -1065,7 +1065,7 @@ public class FakeApi { } } - private HttpRequest.Builder testClientModelRequestBuilder(Client client) throws ApiException { + private HttpRequest.Builder testClientModelRequestBuilder(@javax.annotation.Nonnull Client client) throws ApiException { // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling testClientModel"); @@ -1114,7 +1114,7 @@ public class FakeApi { * @param paramCallback None (optional) * @throws ApiException if fails to make API call */ - 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 ApiException { + 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 ApiException { testEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -1138,7 +1138,7 @@ public class FakeApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse 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 ApiException { + public ApiResponse 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 ApiException { HttpRequest.Builder localVarRequestBuilder = testEndpointParametersRequestBuilder(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -1172,7 +1172,7 @@ public class FakeApi { } } - private HttpRequest.Builder testEndpointParametersRequestBuilder(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 ApiException { + private HttpRequest.Builder testEndpointParametersRequestBuilder(@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 ApiException { // verify the required parameter 'number' is set if (number == null) { throw new ApiException(400, "Missing the required parameter 'number' when calling testEndpointParameters"); @@ -1274,7 +1274,7 @@ public class FakeApi { * @param enumFormString Form parameter enum test (string) (optional, default to -efg) * @throws ApiException if fails to make API call */ - public void testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { + 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 enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws ApiException { testEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -1292,7 +1292,7 @@ public class FakeApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse testEnumParametersWithHttpInfo(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { + public ApiResponse 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 enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testEnumParametersRequestBuilder(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -1326,7 +1326,7 @@ public class FakeApi { } } - private HttpRequest.Builder testEnumParametersRequestBuilder(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { + private HttpRequest.Builder testEnumParametersRequestBuilder(@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 enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -1399,11 +1399,17 @@ public class FakeApi { * @throws ApiException if fails to make API call */ public void testGroupParameters(APItestGroupParametersRequest apiRequest) throws ApiException { + @javax.annotation.Nonnull Integer requiredStringGroup = apiRequest.requiredStringGroup(); + @javax.annotation.Nonnull Boolean requiredBooleanGroup = apiRequest.requiredBooleanGroup(); + @javax.annotation.Nonnull Long requiredInt64Group = apiRequest.requiredInt64Group(); + @javax.annotation.Nullable Integer stringGroup = apiRequest.stringGroup(); + @javax.annotation.Nullable Boolean booleanGroup = apiRequest.booleanGroup(); + @javax.annotation.Nullable Long int64Group = apiRequest.int64Group(); testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -1436,7 +1442,7 @@ public class FakeApi { * @param int64Group Integer in group parameters (optional) * @throws ApiException if fails to make API call */ - public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { + 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 ApiException { testGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -1452,7 +1458,7 @@ public class FakeApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { + public ApiResponse 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 ApiException { HttpRequest.Builder localVarRequestBuilder = testGroupParametersRequestBuilder(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -1486,7 +1492,7 @@ public class FakeApi { } } - private HttpRequest.Builder testGroupParametersRequestBuilder(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { + private HttpRequest.Builder testGroupParametersRequestBuilder(@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 ApiException { // verify the required parameter 'requiredStringGroup' is set if (requiredStringGroup == null) { throw new ApiException(400, "Missing the required parameter 'requiredStringGroup' when calling testGroupParameters"); @@ -1547,11 +1553,17 @@ public class FakeApi { public static final class APItestGroupParametersRequest { + @javax.annotation.Nonnull private Integer requiredStringGroup; // Required String in group parameters (required) + @javax.annotation.Nonnull private Boolean requiredBooleanGroup; // Required Boolean in group parameters (required) + @javax.annotation.Nonnull private Long requiredInt64Group; // Required Integer in group parameters (required) + @javax.annotation.Nullable private Integer stringGroup; // String in group parameters (optional) + @javax.annotation.Nullable private Boolean booleanGroup; // Boolean in group parameters (optional) + @javax.annotation.Nullable private Long int64Group; // Integer in group parameters (optional) private APItestGroupParametersRequest(Builder builder) { @@ -1562,21 +1574,27 @@ public class FakeApi { this.booleanGroup = builder.booleanGroup; this.int64Group = builder.int64Group; } + @javax.annotation.Nonnull public Integer requiredStringGroup() { return requiredStringGroup; } + @javax.annotation.Nonnull public Boolean requiredBooleanGroup() { return requiredBooleanGroup; } + @javax.annotation.Nonnull public Long requiredInt64Group() { return requiredInt64Group; } + @javax.annotation.Nullable public Integer stringGroup() { return stringGroup; } + @javax.annotation.Nullable public Boolean booleanGroup() { return booleanGroup; } + @javax.annotation.Nullable public Long int64Group() { return int64Group; } @@ -1592,27 +1610,27 @@ public class FakeApi { private Boolean booleanGroup; private Long int64Group; - public Builder requiredStringGroup(Integer requiredStringGroup) { + public Builder requiredStringGroup(@javax.annotation.Nonnull Integer requiredStringGroup) { this.requiredStringGroup = requiredStringGroup; return this; } - public Builder requiredBooleanGroup(Boolean requiredBooleanGroup) { + public Builder requiredBooleanGroup(@javax.annotation.Nonnull Boolean requiredBooleanGroup) { this.requiredBooleanGroup = requiredBooleanGroup; return this; } - public Builder requiredInt64Group(Long requiredInt64Group) { + public Builder requiredInt64Group(@javax.annotation.Nonnull Long requiredInt64Group) { this.requiredInt64Group = requiredInt64Group; return this; } - public Builder stringGroup(Integer stringGroup) { + public Builder stringGroup(@javax.annotation.Nullable Integer stringGroup) { this.stringGroup = stringGroup; return this; } - public Builder booleanGroup(Boolean booleanGroup) { + public Builder booleanGroup(@javax.annotation.Nullable Boolean booleanGroup) { this.booleanGroup = booleanGroup; return this; } - public Builder int64Group(Long int64Group) { + public Builder int64Group(@javax.annotation.Nullable Long int64Group) { this.int64Group = int64Group; return this; } @@ -1628,7 +1646,7 @@ public class FakeApi { * @param requestBody request body (required) * @throws ApiException if fails to make API call */ - public void testInlineAdditionalProperties(Map requestBody) throws ApiException { + public void testInlineAdditionalProperties(@javax.annotation.Nonnull Map requestBody) throws ApiException { testInlineAdditionalPropertiesWithHttpInfo(requestBody); } @@ -1639,7 +1657,7 @@ public class FakeApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map requestBody) throws ApiException { + public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testInlineAdditionalPropertiesRequestBuilder(requestBody); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -1673,7 +1691,7 @@ public class FakeApi { } } - private HttpRequest.Builder testInlineAdditionalPropertiesRequestBuilder(Map requestBody) throws ApiException { + private HttpRequest.Builder testInlineAdditionalPropertiesRequestBuilder(@javax.annotation.Nonnull Map requestBody) throws ApiException { // verify the required parameter 'requestBody' is set if (requestBody == null) { throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties"); @@ -1709,7 +1727,7 @@ public class FakeApi { * @param testInlineFreeformAdditionalPropertiesRequest request body (required) * @throws ApiException if fails to make API call */ - public void testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { + public void testInlineFreeformAdditionalProperties(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { testInlineFreeformAdditionalPropertiesWithHttpInfo(testInlineFreeformAdditionalPropertiesRequest); } @@ -1720,7 +1738,7 @@ public class FakeApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse testInlineFreeformAdditionalPropertiesWithHttpInfo(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { + public ApiResponse testInlineFreeformAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testInlineFreeformAdditionalPropertiesRequestBuilder(testInlineFreeformAdditionalPropertiesRequest); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -1754,7 +1772,7 @@ public class FakeApi { } } - private HttpRequest.Builder testInlineFreeformAdditionalPropertiesRequestBuilder(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { + private HttpRequest.Builder testInlineFreeformAdditionalPropertiesRequestBuilder(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { // verify the required parameter 'testInlineFreeformAdditionalPropertiesRequest' is set if (testInlineFreeformAdditionalPropertiesRequest == null) { throw new ApiException(400, "Missing the required parameter 'testInlineFreeformAdditionalPropertiesRequest' when calling testInlineFreeformAdditionalProperties"); @@ -1791,7 +1809,7 @@ public class FakeApi { * @param param2 field2 (required) * @throws ApiException if fails to make API call */ - public void testJsonFormData(String param, String param2) throws ApiException { + public void testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws ApiException { testJsonFormDataWithHttpInfo(param, param2); } @@ -1803,7 +1821,7 @@ public class FakeApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse testJsonFormDataWithHttpInfo(String param, String param2) throws ApiException { + public ApiResponse testJsonFormDataWithHttpInfo(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testJsonFormDataRequestBuilder(param, param2); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -1837,7 +1855,7 @@ public class FakeApi { } } - private HttpRequest.Builder testJsonFormDataRequestBuilder(String param, String param2) throws ApiException { + private HttpRequest.Builder testJsonFormDataRequestBuilder(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws ApiException { // verify the required parameter 'param' is set if (param == null) { throw new ApiException(400, "Missing the required parameter 'param' when calling testJsonFormData"); @@ -1892,7 +1910,7 @@ public class FakeApi { * @param context (required) * @throws ApiException if fails to make API call */ - public void testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context) throws ApiException { + 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) throws ApiException { testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context); } @@ -1907,7 +1925,7 @@ public class FakeApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse testQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context) throws ApiException { + public ApiResponse 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) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testQueryParameterCollectionFormatRequestBuilder(pipe, ioutil, http, url, context); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -1941,7 +1959,7 @@ public class FakeApi { } } - private HttpRequest.Builder testQueryParameterCollectionFormatRequestBuilder(List pipe, List ioutil, List http, List url, List context) throws ApiException { + private HttpRequest.Builder testQueryParameterCollectionFormatRequestBuilder(@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) throws ApiException { // verify the required parameter 'pipe' is set if (pipe == null) { throw new ApiException(400, "Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat"); @@ -2010,7 +2028,7 @@ public class FakeApi { * @param requestBody request body (required) * @throws ApiException if fails to make API call */ - public void testStringMapReference(Map requestBody) throws ApiException { + public void testStringMapReference(@javax.annotation.Nonnull Map requestBody) throws ApiException { testStringMapReferenceWithHttpInfo(requestBody); } @@ -2021,7 +2039,7 @@ public class FakeApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse testStringMapReferenceWithHttpInfo(Map requestBody) throws ApiException { + public ApiResponse testStringMapReferenceWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testStringMapReferenceRequestBuilder(requestBody); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -2055,7 +2073,7 @@ public class FakeApi { } } - private HttpRequest.Builder testStringMapReferenceRequestBuilder(Map requestBody) throws ApiException { + private HttpRequest.Builder testStringMapReferenceRequestBuilder(@javax.annotation.Nonnull Map requestBody) throws ApiException { // verify the required parameter 'requestBody' is set if (requestBody == null) { throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testStringMapReference"); diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 58f04494ad8..e73bd330b31 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -95,7 +95,7 @@ public class FakeClassnameTags123Api { * @return Client * @throws ApiException if fails to make API call */ - public Client testClassname(Client client) throws ApiException { + public Client testClassname(@javax.annotation.Nonnull Client client) throws ApiException { ApiResponse localVarResponse = testClassnameWithHttpInfo(client); return localVarResponse.getData(); } @@ -107,7 +107,7 @@ public class FakeClassnameTags123Api { * @return ApiResponse<Client> * @throws ApiException if fails to make API call */ - public ApiResponse testClassnameWithHttpInfo(Client client) throws ApiException { + public ApiResponse testClassnameWithHttpInfo(@javax.annotation.Nonnull Client client) throws ApiException { HttpRequest.Builder localVarRequestBuilder = testClassnameRequestBuilder(client); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -147,7 +147,7 @@ public class FakeClassnameTags123Api { } } - private HttpRequest.Builder testClassnameRequestBuilder(Client client) throws ApiException { + private HttpRequest.Builder testClassnameRequestBuilder(@javax.annotation.Nonnull Client client) throws ApiException { // verify the required parameter 'client' is set if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling testClassname"); diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/PetApi.java index 198790d5277..5f31295089a 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/PetApi.java @@ -96,7 +96,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store (required) * @throws ApiException if fails to make API call */ - public void addPet(Pet pet) throws ApiException { + public void addPet(@javax.annotation.Nonnull Pet pet) throws ApiException { addPetWithHttpInfo(pet); } @@ -107,7 +107,7 @@ public class PetApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse addPetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse addPetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException { HttpRequest.Builder localVarRequestBuilder = addPetRequestBuilder(pet); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -141,7 +141,7 @@ public class PetApi { } } - private HttpRequest.Builder addPetRequestBuilder(Pet pet) throws ApiException { + private HttpRequest.Builder addPetRequestBuilder(@javax.annotation.Nonnull Pet pet) throws ApiException { // verify the required parameter 'pet' is set if (pet == null) { throw new ApiException(400, "Missing the required parameter 'pet' when calling addPet"); @@ -178,7 +178,7 @@ public class PetApi { * @param apiKey (optional) * @throws ApiException if fails to make API call */ - public void deletePet(Long petId, String apiKey) throws ApiException { + public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { deletePetWithHttpInfo(petId, apiKey); } @@ -190,7 +190,7 @@ public class PetApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException { + public ApiResponse deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { HttpRequest.Builder localVarRequestBuilder = deletePetRequestBuilder(petId, apiKey); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -224,7 +224,7 @@ public class PetApi { } } - private HttpRequest.Builder deletePetRequestBuilder(Long petId, String apiKey) throws ApiException { + private HttpRequest.Builder deletePetRequestBuilder(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling deletePet"); @@ -259,7 +259,7 @@ public class PetApi { * @return List<Pet> * @throws ApiException if fails to make API call */ - public List findPetsByStatus(List status) throws ApiException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws ApiException { ApiResponse> localVarResponse = findPetsByStatusWithHttpInfo(status); return localVarResponse.getData(); } @@ -271,7 +271,7 @@ public class PetApi { * @return ApiResponse<List<Pet>> * @throws ApiException if fails to make API call */ - public ApiResponse> findPetsByStatusWithHttpInfo(List status) throws ApiException { + public ApiResponse> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws ApiException { HttpRequest.Builder localVarRequestBuilder = findPetsByStatusRequestBuilder(status); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -311,7 +311,7 @@ public class PetApi { } } - private HttpRequest.Builder findPetsByStatusRequestBuilder(List status) throws ApiException { + private HttpRequest.Builder findPetsByStatusRequestBuilder(@javax.annotation.Nonnull List status) throws ApiException { // verify the required parameter 'status' is set if (status == null) { throw new ApiException(400, "Missing the required parameter 'status' when calling findPetsByStatus"); @@ -359,7 +359,7 @@ public class PetApi { * @deprecated */ @Deprecated - public List findPetsByTags(List tags) throws ApiException { + public List findPetsByTags(@javax.annotation.Nonnull List tags) throws ApiException { ApiResponse> localVarResponse = findPetsByTagsWithHttpInfo(tags); return localVarResponse.getData(); } @@ -373,7 +373,7 @@ public class PetApi { * @deprecated */ @Deprecated - public ApiResponse> findPetsByTagsWithHttpInfo(List tags) throws ApiException { + public ApiResponse> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull List tags) throws ApiException { HttpRequest.Builder localVarRequestBuilder = findPetsByTagsRequestBuilder(tags); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -413,7 +413,7 @@ public class PetApi { } } - private HttpRequest.Builder findPetsByTagsRequestBuilder(List tags) throws ApiException { + private HttpRequest.Builder findPetsByTagsRequestBuilder(@javax.annotation.Nonnull List tags) throws ApiException { // verify the required parameter 'tags' is set if (tags == null) { throw new ApiException(400, "Missing the required parameter 'tags' when calling findPetsByTags"); @@ -459,7 +459,7 @@ public class PetApi { * @return Pet * @throws ApiException if fails to make API call */ - public Pet getPetById(Long petId) throws ApiException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws ApiException { ApiResponse localVarResponse = getPetByIdWithHttpInfo(petId); return localVarResponse.getData(); } @@ -471,7 +471,7 @@ public class PetApi { * @return ApiResponse<Pet> * @throws ApiException if fails to make API call */ - public ApiResponse getPetByIdWithHttpInfo(Long petId) throws ApiException { + public ApiResponse getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws ApiException { HttpRequest.Builder localVarRequestBuilder = getPetByIdRequestBuilder(petId); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -511,7 +511,7 @@ public class PetApi { } } - private HttpRequest.Builder getPetByIdRequestBuilder(Long petId) throws ApiException { + private HttpRequest.Builder getPetByIdRequestBuilder(@javax.annotation.Nonnull Long petId) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling getPetById"); @@ -542,7 +542,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store (required) * @throws ApiException if fails to make API call */ - public void updatePet(Pet pet) throws ApiException { + public void updatePet(@javax.annotation.Nonnull Pet pet) throws ApiException { updatePetWithHttpInfo(pet); } @@ -553,7 +553,7 @@ public class PetApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse updatePetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse updatePetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException { HttpRequest.Builder localVarRequestBuilder = updatePetRequestBuilder(pet); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -587,7 +587,7 @@ public class PetApi { } } - private HttpRequest.Builder updatePetRequestBuilder(Pet pet) throws ApiException { + private HttpRequest.Builder updatePetRequestBuilder(@javax.annotation.Nonnull Pet pet) throws ApiException { // verify the required parameter 'pet' is set if (pet == null) { throw new ApiException(400, "Missing the required parameter 'pet' when calling updatePet"); @@ -625,7 +625,7 @@ public class PetApi { * @param status Updated status of the pet (optional) * @throws ApiException if fails to make API call */ - public void updatePetWithForm(Long petId, String name, String status) throws ApiException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -638,7 +638,7 @@ public class PetApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException { + public ApiResponse updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { HttpRequest.Builder localVarRequestBuilder = updatePetWithFormRequestBuilder(petId, name, status); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -672,7 +672,7 @@ public class PetApi { } } - private HttpRequest.Builder updatePetWithFormRequestBuilder(Long petId, String name, String status) throws ApiException { + private HttpRequest.Builder updatePetWithFormRequestBuilder(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling updatePetWithForm"); @@ -723,7 +723,7 @@ public class PetApi { * @return ModelApiResponse * @throws ApiException if fails to make API call */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws ApiException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { ApiResponse localVarResponse = uploadFileWithHttpInfo(petId, additionalMetadata, _file); return localVarResponse.getData(); } @@ -737,7 +737,7 @@ public class PetApi { * @return ApiResponse<ModelApiResponse> * @throws ApiException if fails to make API call */ - public ApiResponse uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws ApiException { + public ApiResponse uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { HttpRequest.Builder localVarRequestBuilder = uploadFileRequestBuilder(petId, additionalMetadata, _file); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -777,7 +777,7 @@ public class PetApi { } } - private HttpRequest.Builder uploadFileRequestBuilder(Long petId, String additionalMetadata, File _file) throws ApiException { + private HttpRequest.Builder uploadFileRequestBuilder(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling uploadFile"); @@ -845,7 +845,7 @@ public class PetApi { * @return ModelApiResponse * @throws ApiException if fails to make API call */ - public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws ApiException { + public ModelApiResponse uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws ApiException { ApiResponse localVarResponse = uploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata); return localVarResponse.getData(); } @@ -859,7 +859,7 @@ public class PetApi { * @return ApiResponse<ModelApiResponse> * @throws ApiException if fails to make API call */ - public ApiResponse uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws ApiException { + public ApiResponse uploadFileWithRequiredFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws ApiException { HttpRequest.Builder localVarRequestBuilder = uploadFileWithRequiredFileRequestBuilder(petId, requiredFile, additionalMetadata); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -899,7 +899,7 @@ public class PetApi { } } - private HttpRequest.Builder uploadFileWithRequiredFileRequestBuilder(Long petId, File requiredFile, String additionalMetadata) throws ApiException { + private HttpRequest.Builder uploadFileWithRequiredFileRequestBuilder(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling uploadFileWithRequiredFile"); diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/StoreApi.java index 3dd2a14bfbd..f48eaadd7d0 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/StoreApi.java @@ -94,7 +94,7 @@ public class StoreApi { * @param orderId ID of the order that needs to be deleted (required) * @throws ApiException if fails to make API call */ - public void deleteOrder(String orderId) throws ApiException { + public void deleteOrder(@javax.annotation.Nonnull String orderId) throws ApiException { deleteOrderWithHttpInfo(orderId); } @@ -105,7 +105,7 @@ public class StoreApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse deleteOrderWithHttpInfo(String orderId) throws ApiException { + public ApiResponse deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws ApiException { HttpRequest.Builder localVarRequestBuilder = deleteOrderRequestBuilder(orderId); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -139,7 +139,7 @@ public class StoreApi { } } - private HttpRequest.Builder deleteOrderRequestBuilder(String orderId) throws ApiException { + private HttpRequest.Builder deleteOrderRequestBuilder(@javax.annotation.Nonnull String orderId) throws ApiException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new ApiException(400, "Missing the required parameter 'orderId' when calling deleteOrder"); @@ -248,7 +248,7 @@ public class StoreApi { * @return Order * @throws ApiException if fails to make API call */ - public Order getOrderById(Long orderId) throws ApiException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws ApiException { ApiResponse localVarResponse = getOrderByIdWithHttpInfo(orderId); return localVarResponse.getData(); } @@ -260,7 +260,7 @@ public class StoreApi { * @return ApiResponse<Order> * @throws ApiException if fails to make API call */ - public ApiResponse getOrderByIdWithHttpInfo(Long orderId) throws ApiException { + public ApiResponse getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws ApiException { HttpRequest.Builder localVarRequestBuilder = getOrderByIdRequestBuilder(orderId); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -300,7 +300,7 @@ public class StoreApi { } } - private HttpRequest.Builder getOrderByIdRequestBuilder(Long orderId) throws ApiException { + private HttpRequest.Builder getOrderByIdRequestBuilder(@javax.annotation.Nonnull Long orderId) throws ApiException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new ApiException(400, "Missing the required parameter 'orderId' when calling getOrderById"); @@ -332,7 +332,7 @@ public class StoreApi { * @return Order * @throws ApiException if fails to make API call */ - public Order placeOrder(Order order) throws ApiException { + public Order placeOrder(@javax.annotation.Nonnull Order order) throws ApiException { ApiResponse localVarResponse = placeOrderWithHttpInfo(order); return localVarResponse.getData(); } @@ -344,7 +344,7 @@ public class StoreApi { * @return ApiResponse<Order> * @throws ApiException if fails to make API call */ - public ApiResponse placeOrderWithHttpInfo(Order order) throws ApiException { + public ApiResponse placeOrderWithHttpInfo(@javax.annotation.Nonnull Order order) throws ApiException { HttpRequest.Builder localVarRequestBuilder = placeOrderRequestBuilder(order); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -384,7 +384,7 @@ public class StoreApi { } } - private HttpRequest.Builder placeOrderRequestBuilder(Order order) throws ApiException { + private HttpRequest.Builder placeOrderRequestBuilder(@javax.annotation.Nonnull Order order) throws ApiException { // verify the required parameter 'order' is set if (order == null) { throw new ApiException(400, "Missing the required parameter 'order' when calling placeOrder"); diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/UserApi.java index 193c5f97674..830dcbf6d49 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/UserApi.java @@ -95,7 +95,7 @@ public class UserApi { * @param user Created user object (required) * @throws ApiException if fails to make API call */ - public void createUser(User user) throws ApiException { + public void createUser(@javax.annotation.Nonnull User user) throws ApiException { createUserWithHttpInfo(user); } @@ -106,7 +106,7 @@ public class UserApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse createUserWithHttpInfo(User user) throws ApiException { + public ApiResponse createUserWithHttpInfo(@javax.annotation.Nonnull User user) throws ApiException { HttpRequest.Builder localVarRequestBuilder = createUserRequestBuilder(user); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -140,7 +140,7 @@ public class UserApi { } } - private HttpRequest.Builder createUserRequestBuilder(User user) throws ApiException { + private HttpRequest.Builder createUserRequestBuilder(@javax.annotation.Nonnull User user) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException(400, "Missing the required parameter 'user' when calling createUser"); @@ -176,7 +176,7 @@ public class UserApi { * @param user List of user object (required) * @throws ApiException if fails to make API call */ - public void createUsersWithArrayInput(List user) throws ApiException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List user) throws ApiException { createUsersWithArrayInputWithHttpInfo(user); } @@ -187,7 +187,7 @@ public class UserApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse createUsersWithArrayInputWithHttpInfo(List user) throws ApiException { + public ApiResponse createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List user) throws ApiException { HttpRequest.Builder localVarRequestBuilder = createUsersWithArrayInputRequestBuilder(user); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -221,7 +221,7 @@ public class UserApi { } } - private HttpRequest.Builder createUsersWithArrayInputRequestBuilder(List user) throws ApiException { + private HttpRequest.Builder createUsersWithArrayInputRequestBuilder(@javax.annotation.Nonnull List user) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithArrayInput"); @@ -257,7 +257,7 @@ public class UserApi { * @param user List of user object (required) * @throws ApiException if fails to make API call */ - public void createUsersWithListInput(List user) throws ApiException { + public void createUsersWithListInput(@javax.annotation.Nonnull List user) throws ApiException { createUsersWithListInputWithHttpInfo(user); } @@ -268,7 +268,7 @@ public class UserApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse createUsersWithListInputWithHttpInfo(List user) throws ApiException { + public ApiResponse createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List user) throws ApiException { HttpRequest.Builder localVarRequestBuilder = createUsersWithListInputRequestBuilder(user); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -302,7 +302,7 @@ public class UserApi { } } - private HttpRequest.Builder createUsersWithListInputRequestBuilder(List user) throws ApiException { + private HttpRequest.Builder createUsersWithListInputRequestBuilder(@javax.annotation.Nonnull List user) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithListInput"); @@ -338,7 +338,7 @@ public class UserApi { * @param username The name that needs to be deleted (required) * @throws ApiException if fails to make API call */ - public void deleteUser(String username) throws ApiException { + public void deleteUser(@javax.annotation.Nonnull String username) throws ApiException { deleteUserWithHttpInfo(username); } @@ -349,7 +349,7 @@ public class UserApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse deleteUserWithHttpInfo(String username) throws ApiException { + public ApiResponse deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { HttpRequest.Builder localVarRequestBuilder = deleteUserRequestBuilder(username); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -383,7 +383,7 @@ public class UserApi { } } - private HttpRequest.Builder deleteUserRequestBuilder(String username) throws ApiException { + private HttpRequest.Builder deleteUserRequestBuilder(@javax.annotation.Nonnull String username) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling deleteUser"); @@ -415,7 +415,7 @@ public class UserApi { * @return User * @throws ApiException if fails to make API call */ - public User getUserByName(String username) throws ApiException { + public User getUserByName(@javax.annotation.Nonnull String username) throws ApiException { ApiResponse localVarResponse = getUserByNameWithHttpInfo(username); return localVarResponse.getData(); } @@ -427,7 +427,7 @@ public class UserApi { * @return ApiResponse<User> * @throws ApiException if fails to make API call */ - public ApiResponse getUserByNameWithHttpInfo(String username) throws ApiException { + public ApiResponse getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { HttpRequest.Builder localVarRequestBuilder = getUserByNameRequestBuilder(username); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -467,7 +467,7 @@ public class UserApi { } } - private HttpRequest.Builder getUserByNameRequestBuilder(String username) throws ApiException { + private HttpRequest.Builder getUserByNameRequestBuilder(@javax.annotation.Nonnull String username) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling getUserByName"); @@ -500,7 +500,7 @@ public class UserApi { * @return String * @throws ApiException if fails to make API call */ - public String loginUser(String username, String password) throws ApiException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { ApiResponse localVarResponse = loginUserWithHttpInfo(username, password); return localVarResponse.getData(); } @@ -513,7 +513,7 @@ public class UserApi { * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse loginUserWithHttpInfo(String username, String password) throws ApiException { + public ApiResponse loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { HttpRequest.Builder localVarRequestBuilder = loginUserRequestBuilder(username, password); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -553,7 +553,7 @@ public class UserApi { } } - private HttpRequest.Builder loginUserRequestBuilder(String username, String password) throws ApiException { + private HttpRequest.Builder loginUserRequestBuilder(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling loginUser"); @@ -674,7 +674,7 @@ public class UserApi { * @param user Updated user object (required) * @throws ApiException if fails to make API call */ - public void updateUser(String username, User user) throws ApiException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { updateUserWithHttpInfo(username, user); } @@ -686,7 +686,7 @@ public class UserApi { * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse updateUserWithHttpInfo(String username, User user) throws ApiException { + public ApiResponse updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { HttpRequest.Builder localVarRequestBuilder = updateUserRequestBuilder(username, user); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -720,7 +720,7 @@ public class UserApi { } } - private HttpRequest.Builder updateUserRequestBuilder(String username, User user) throws ApiException { + private HttpRequest.Builder updateUserRequestBuilder(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser"); diff --git a/samples/client/petstore/java/okhttp-gson-3.1-duplicated-operationid/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/okhttp-gson-3.1-duplicated-operationid/src/main/java/org/openapitools/client/api/PetApi.java index cd1f819b542..ad5ccf7d062 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1-duplicated-operationid/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/okhttp-gson-3.1-duplicated-operationid/src/main/java/org/openapitools/client/api/PetApi.java @@ -86,7 +86,7 @@ public class PetApi { 404 Pet not found - */ - public okhttp3.Call getPetByIdCall(Long petId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPetByIdCall(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -133,7 +133,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getPetByIdValidateBeforeCall(Long petId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPetByIdValidateBeforeCall(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling getPetById(Async)"); @@ -158,7 +158,7 @@ public class PetApi { 404 Pet not found - */ - public Object getPetById(Long petId) throws ApiException { + public Object getPetById(@javax.annotation.Nonnull Long petId) throws ApiException { ApiResponse localVarResp = getPetByIdWithHttpInfo(petId); return localVarResp.getData(); } @@ -178,7 +178,7 @@ public class PetApi { 404 Pet not found - */ - public ApiResponse getPetByIdWithHttpInfo(Long petId) throws ApiException { + public ApiResponse getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws ApiException { okhttp3.Call localVarCall = getPetByIdValidateBeforeCall(petId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -200,7 +200,7 @@ public class PetApi { 404 Pet not found - */ - public okhttp3.Call getPetByIdAsync(Long petId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPetByIdAsync(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPetByIdValidateBeforeCall(petId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/api/DefaultApi.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/api/DefaultApi.java index b8f8bcdfa3d..f72923e0417 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/api/DefaultApi.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/api/DefaultApi.java @@ -86,7 +86,7 @@ public class DefaultApi { 405 Invalid input - */ - public okhttp3.Call fakeWebhooksSourcesDeletedPostCall(FakeWebhooksSourcesDeletedPostRequest fakeWebhooksSourcesDeletedPostRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeWebhooksSourcesDeletedPostCall(@javax.annotation.Nullable FakeWebhooksSourcesDeletedPostRequest fakeWebhooksSourcesDeletedPostRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -131,7 +131,7 @@ public class DefaultApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call fakeWebhooksSourcesDeletedPostValidateBeforeCall(FakeWebhooksSourcesDeletedPostRequest fakeWebhooksSourcesDeletedPostRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call fakeWebhooksSourcesDeletedPostValidateBeforeCall(@javax.annotation.Nullable FakeWebhooksSourcesDeletedPostRequest fakeWebhooksSourcesDeletedPostRequest, final ApiCallback _callback) throws ApiException { return fakeWebhooksSourcesDeletedPostCall(fakeWebhooksSourcesDeletedPostRequest, _callback); } @@ -149,7 +149,7 @@ public class DefaultApi { 405 Invalid input - */ - public void fakeWebhooksSourcesDeletedPost(FakeWebhooksSourcesDeletedPostRequest fakeWebhooksSourcesDeletedPostRequest) throws ApiException { + public void fakeWebhooksSourcesDeletedPost(@javax.annotation.Nullable FakeWebhooksSourcesDeletedPostRequest fakeWebhooksSourcesDeletedPostRequest) throws ApiException { fakeWebhooksSourcesDeletedPostWithHttpInfo(fakeWebhooksSourcesDeletedPostRequest); } @@ -167,7 +167,7 @@ public class DefaultApi { 405 Invalid input - */ - public ApiResponse fakeWebhooksSourcesDeletedPostWithHttpInfo(FakeWebhooksSourcesDeletedPostRequest fakeWebhooksSourcesDeletedPostRequest) throws ApiException { + public ApiResponse fakeWebhooksSourcesDeletedPostWithHttpInfo(@javax.annotation.Nullable FakeWebhooksSourcesDeletedPostRequest fakeWebhooksSourcesDeletedPostRequest) throws ApiException { okhttp3.Call localVarCall = fakeWebhooksSourcesDeletedPostValidateBeforeCall(fakeWebhooksSourcesDeletedPostRequest, null); return localVarApiClient.execute(localVarCall); } @@ -187,7 +187,7 @@ public class DefaultApi { 405 Invalid input - */ - public okhttp3.Call fakeWebhooksSourcesDeletedPostAsync(FakeWebhooksSourcesDeletedPostRequest fakeWebhooksSourcesDeletedPostRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeWebhooksSourcesDeletedPostAsync(@javax.annotation.Nullable FakeWebhooksSourcesDeletedPostRequest fakeWebhooksSourcesDeletedPostRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = fakeWebhooksSourcesDeletedPostValidateBeforeCall(fakeWebhooksSourcesDeletedPostRequest, _callback); localVarApiClient.executeAsync(localVarCall, _callback); diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/api/FakeApi.java index a8ef3885b94..eefccaf2685 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/api/FakeApi.java @@ -681,7 +681,7 @@ public class FakeApi { 200 Successful Response - */ - public okhttp3.Call op3Call(List queryEnum, final ApiCallback _callback) throws ApiException { + public okhttp3.Call op3Call(@javax.annotation.Nonnull List queryEnum, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -729,7 +729,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call op3ValidateBeforeCall(List queryEnum, final ApiCallback _callback) throws ApiException { + private okhttp3.Call op3ValidateBeforeCall(@javax.annotation.Nonnull List queryEnum, final ApiCallback _callback) throws ApiException { // verify the required parameter 'queryEnum' is set if (queryEnum == null) { throw new ApiException("Missing the required parameter 'queryEnum' when calling op3(Async)"); @@ -751,7 +751,7 @@ public class FakeApi { 200 Successful Response - */ - public void op3(List queryEnum) throws ApiException { + public void op3(@javax.annotation.Nonnull List queryEnum) throws ApiException { op3WithHttpInfo(queryEnum); } @@ -768,7 +768,7 @@ public class FakeApi { 200 Successful Response - */ - public ApiResponse op3WithHttpInfo(List queryEnum) throws ApiException { + public ApiResponse op3WithHttpInfo(@javax.annotation.Nonnull List queryEnum) throws ApiException { okhttp3.Call localVarCall = op3ValidateBeforeCall(queryEnum, null); return localVarApiClient.execute(localVarCall); } @@ -787,7 +787,7 @@ public class FakeApi { 200 Successful Response - */ - public okhttp3.Call op3Async(List queryEnum, final ApiCallback _callback) throws ApiException { + public okhttp3.Call op3Async(@javax.annotation.Nonnull List queryEnum, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = op3ValidateBeforeCall(queryEnum, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -806,7 +806,7 @@ public class FakeApi { 200 required to pass validation - */ - public okhttp3.Call refToRefParameterCall(UUID refToUuid, final ApiCallback _callback) throws ApiException { + public okhttp3.Call refToRefParameterCall(@javax.annotation.Nonnull UUID refToUuid, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -856,7 +856,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call refToRefParameterValidateBeforeCall(UUID refToUuid, final ApiCallback _callback) throws ApiException { + private okhttp3.Call refToRefParameterValidateBeforeCall(@javax.annotation.Nonnull UUID refToUuid, final ApiCallback _callback) throws ApiException { // verify the required parameter 'refToUuid' is set if (refToUuid == null) { throw new ApiException("Missing the required parameter 'refToUuid' when calling refToRefParameter(Async)"); @@ -879,7 +879,7 @@ public class FakeApi { 200 required to pass validation - */ - public String refToRefParameter(UUID refToUuid) throws ApiException { + public String refToRefParameter(@javax.annotation.Nonnull UUID refToUuid) throws ApiException { ApiResponse localVarResp = refToRefParameterWithHttpInfo(refToUuid); return localVarResp.getData(); } @@ -897,7 +897,7 @@ public class FakeApi { 200 required to pass validation - */ - public ApiResponse refToRefParameterWithHttpInfo(UUID refToUuid) throws ApiException { + public ApiResponse refToRefParameterWithHttpInfo(@javax.annotation.Nonnull UUID refToUuid) throws ApiException { okhttp3.Call localVarCall = refToRefParameterValidateBeforeCall(refToUuid, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -917,7 +917,7 @@ public class FakeApi { 200 required to pass validation - */ - public okhttp3.Call refToRefParameterAsync(UUID refToUuid, final ApiCallback _callback) throws ApiException { + public okhttp3.Call refToRefParameterAsync(@javax.annotation.Nonnull UUID refToUuid, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = refToRefParameterValidateBeforeCall(refToUuid, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -937,7 +937,7 @@ public class FakeApi { 200 Successful Response - */ - public okhttp3.Call refToRefParameterAnyofCall(RefToRefParameterAnyofRefToAnyofParameter refToAnyof, final ApiCallback _callback) throws ApiException { + public okhttp3.Call refToRefParameterAnyofCall(@javax.annotation.Nonnull RefToRefParameterAnyofRefToAnyofParameter refToAnyof, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -986,7 +986,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call refToRefParameterAnyofValidateBeforeCall(RefToRefParameterAnyofRefToAnyofParameter refToAnyof, final ApiCallback _callback) throws ApiException { + private okhttp3.Call refToRefParameterAnyofValidateBeforeCall(@javax.annotation.Nonnull RefToRefParameterAnyofRefToAnyofParameter refToAnyof, final ApiCallback _callback) throws ApiException { // verify the required parameter 'refToAnyof' is set if (refToAnyof == null) { throw new ApiException("Missing the required parameter 'refToAnyof' when calling refToRefParameterAnyof(Async)"); @@ -1008,7 +1008,7 @@ public class FakeApi { 200 Successful Response - */ - public void refToRefParameterAnyof(RefToRefParameterAnyofRefToAnyofParameter refToAnyof) throws ApiException { + public void refToRefParameterAnyof(@javax.annotation.Nonnull RefToRefParameterAnyofRefToAnyofParameter refToAnyof) throws ApiException { refToRefParameterAnyofWithHttpInfo(refToAnyof); } @@ -1025,7 +1025,7 @@ public class FakeApi { 200 Successful Response - */ - public ApiResponse refToRefParameterAnyofWithHttpInfo(RefToRefParameterAnyofRefToAnyofParameter refToAnyof) throws ApiException { + public ApiResponse refToRefParameterAnyofWithHttpInfo(@javax.annotation.Nonnull RefToRefParameterAnyofRefToAnyofParameter refToAnyof) throws ApiException { okhttp3.Call localVarCall = refToRefParameterAnyofValidateBeforeCall(refToAnyof, null); return localVarApiClient.execute(localVarCall); } @@ -1044,7 +1044,7 @@ public class FakeApi { 200 Successful Response - */ - public okhttp3.Call refToRefParameterAnyofAsync(RefToRefParameterAnyofRefToAnyofParameter refToAnyof, final ApiCallback _callback) throws ApiException { + public okhttp3.Call refToRefParameterAnyofAsync(@javax.annotation.Nonnull RefToRefParameterAnyofRefToAnyofParameter refToAnyof, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = refToRefParameterAnyofValidateBeforeCall(refToAnyof, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -1063,7 +1063,7 @@ public class FakeApi { 200 Successful Response - */ - public okhttp3.Call refToRefParameterOneofCall(RefRefToPathLevelParameterOneofRefToOneofParameter refToOneof, final ApiCallback _callback) throws ApiException { + public okhttp3.Call refToRefParameterOneofCall(@javax.annotation.Nonnull RefRefToPathLevelParameterOneofRefToOneofParameter refToOneof, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1112,7 +1112,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call refToRefParameterOneofValidateBeforeCall(RefRefToPathLevelParameterOneofRefToOneofParameter refToOneof, final ApiCallback _callback) throws ApiException { + private okhttp3.Call refToRefParameterOneofValidateBeforeCall(@javax.annotation.Nonnull RefRefToPathLevelParameterOneofRefToOneofParameter refToOneof, final ApiCallback _callback) throws ApiException { // verify the required parameter 'refToOneof' is set if (refToOneof == null) { throw new ApiException("Missing the required parameter 'refToOneof' when calling refToRefParameterOneof(Async)"); @@ -1134,7 +1134,7 @@ public class FakeApi { 200 Successful Response - */ - public void refToRefParameterOneof(RefRefToPathLevelParameterOneofRefToOneofParameter refToOneof) throws ApiException { + public void refToRefParameterOneof(@javax.annotation.Nonnull RefRefToPathLevelParameterOneofRefToOneofParameter refToOneof) throws ApiException { refToRefParameterOneofWithHttpInfo(refToOneof); } @@ -1151,7 +1151,7 @@ public class FakeApi { 200 Successful Response - */ - public ApiResponse refToRefParameterOneofWithHttpInfo(RefRefToPathLevelParameterOneofRefToOneofParameter refToOneof) throws ApiException { + public ApiResponse refToRefParameterOneofWithHttpInfo(@javax.annotation.Nonnull RefRefToPathLevelParameterOneofRefToOneofParameter refToOneof) throws ApiException { okhttp3.Call localVarCall = refToRefParameterOneofValidateBeforeCall(refToOneof, null); return localVarApiClient.execute(localVarCall); } @@ -1170,7 +1170,7 @@ public class FakeApi { 200 Successful Response - */ - public okhttp3.Call refToRefParameterOneofAsync(RefRefToPathLevelParameterOneofRefToOneofParameter refToOneof, final ApiCallback _callback) throws ApiException { + public okhttp3.Call refToRefParameterOneofAsync(@javax.annotation.Nonnull RefRefToPathLevelParameterOneofRefToOneofParameter refToOneof, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = refToRefParameterOneofValidateBeforeCall(refToOneof, _callback); localVarApiClient.executeAsync(localVarCall, _callback); diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/api/PetApi.java index 5766da3819b..7c146cd617b 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/api/PetApi.java @@ -88,7 +88,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call addPetCall(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addPetCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -136,7 +136,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call addPetValidateBeforeCall(Pet pet, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addPetValidateBeforeCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { // verify the required parameter 'pet' is set if (pet == null) { throw new ApiException("Missing the required parameter 'pet' when calling addPet(Async)"); @@ -160,7 +160,7 @@ public class PetApi { 405 Invalid input - */ - public Pet addPet(Pet pet) throws ApiException { + public Pet addPet(@javax.annotation.Nonnull Pet pet) throws ApiException { ApiResponse localVarResp = addPetWithHttpInfo(pet); return localVarResp.getData(); } @@ -179,7 +179,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse addPetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse addPetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException { okhttp3.Call localVarCall = addPetValidateBeforeCall(pet, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -200,7 +200,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call addPetAsync(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addPetAsync(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = addPetValidateBeforeCall(pet, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -221,7 +221,7 @@ public class PetApi { 400 Invalid pet value - */ - public okhttp3.Call deletePetCall(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deletePetCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -271,7 +271,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deletePetValidateBeforeCall(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deletePetValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling deletePet(Async)"); @@ -294,7 +294,7 @@ public class PetApi { 400 Invalid pet value - */ - public void deletePet(Long petId, String apiKey) throws ApiException { + public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { deletePetWithHttpInfo(petId, apiKey); } @@ -312,7 +312,7 @@ public class PetApi { 400 Invalid pet value - */ - public ApiResponse deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException { + public ApiResponse deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { okhttp3.Call localVarCall = deletePetValidateBeforeCall(petId, apiKey, null); return localVarApiClient.execute(localVarCall); } @@ -332,7 +332,7 @@ public class PetApi { 400 Invalid pet value - */ - public okhttp3.Call deletePetAsync(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deletePetAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deletePetValidateBeforeCall(petId, apiKey, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -352,7 +352,7 @@ public class PetApi { 400 Invalid status value - */ - public okhttp3.Call findPetsByStatusCall(List status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findPetsByStatusCall(@javax.annotation.Nonnull List status, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -402,7 +402,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call findPetsByStatusValidateBeforeCall(List status, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findPetsByStatusValidateBeforeCall(@javax.annotation.Nonnull List status, final ApiCallback _callback) throws ApiException { // verify the required parameter 'status' is set if (status == null) { throw new ApiException("Missing the required parameter 'status' when calling findPetsByStatus(Async)"); @@ -426,7 +426,7 @@ public class PetApi { 400 Invalid status value - */ - public List findPetsByStatus(List status) throws ApiException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws ApiException { ApiResponse> localVarResp = findPetsByStatusWithHttpInfo(status); return localVarResp.getData(); } @@ -445,7 +445,7 @@ public class PetApi { 400 Invalid status value - */ - public ApiResponse> findPetsByStatusWithHttpInfo(List status) throws ApiException { + public ApiResponse> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws ApiException { okhttp3.Call localVarCall = findPetsByStatusValidateBeforeCall(status, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -466,7 +466,7 @@ public class PetApi { 400 Invalid status value - */ - public okhttp3.Call findPetsByStatusAsync(List status, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call findPetsByStatusAsync(@javax.annotation.Nonnull List status, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = findPetsByStatusValidateBeforeCall(status, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); @@ -489,7 +489,7 @@ public class PetApi { * @deprecated */ @Deprecated - public okhttp3.Call findPetsByTagsCall(List tags, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findPetsByTagsCall(@javax.annotation.Nonnull List tags, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -540,7 +540,7 @@ public class PetApi { @Deprecated @SuppressWarnings("rawtypes") - private okhttp3.Call findPetsByTagsValidateBeforeCall(List tags, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findPetsByTagsValidateBeforeCall(@javax.annotation.Nonnull List tags, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tags' is set if (tags == null) { throw new ApiException("Missing the required parameter 'tags' when calling findPetsByTags(Async)"); @@ -566,7 +566,7 @@ public class PetApi { * @deprecated */ @Deprecated - public List findPetsByTags(List tags) throws ApiException { + public List findPetsByTags(@javax.annotation.Nonnull List tags) throws ApiException { ApiResponse> localVarResp = findPetsByTagsWithHttpInfo(tags); return localVarResp.getData(); } @@ -587,7 +587,7 @@ public class PetApi { * @deprecated */ @Deprecated - public ApiResponse> findPetsByTagsWithHttpInfo(List tags) throws ApiException { + public ApiResponse> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull List tags) throws ApiException { okhttp3.Call localVarCall = findPetsByTagsValidateBeforeCall(tags, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -610,7 +610,7 @@ public class PetApi { * @deprecated */ @Deprecated - public okhttp3.Call findPetsByTagsAsync(List tags, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call findPetsByTagsAsync(@javax.annotation.Nonnull List tags, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = findPetsByTagsValidateBeforeCall(tags, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); @@ -632,7 +632,7 @@ public class PetApi { 404 Pet not found - */ - public okhttp3.Call getPetByIdCall(Long petId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPetByIdCall(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -679,7 +679,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getPetByIdValidateBeforeCall(Long petId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPetByIdValidateBeforeCall(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling getPetById(Async)"); @@ -704,7 +704,7 @@ public class PetApi { 404 Pet not found - */ - public Pet getPetById(Long petId) throws ApiException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws ApiException { ApiResponse localVarResp = getPetByIdWithHttpInfo(petId); return localVarResp.getData(); } @@ -724,7 +724,7 @@ public class PetApi { 404 Pet not found - */ - public ApiResponse getPetByIdWithHttpInfo(Long petId) throws ApiException { + public ApiResponse getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws ApiException { okhttp3.Call localVarCall = getPetByIdValidateBeforeCall(petId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -746,7 +746,7 @@ public class PetApi { 404 Pet not found - */ - public okhttp3.Call getPetByIdAsync(Long petId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPetByIdAsync(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPetByIdValidateBeforeCall(petId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -771,7 +771,7 @@ public class PetApi { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public okhttp3.Call updatePetCall(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -819,7 +819,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updatePetValidateBeforeCall(Pet pet, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updatePetValidateBeforeCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { // verify the required parameter 'pet' is set if (pet == null) { throw new ApiException("Missing the required parameter 'pet' when calling updatePet(Async)"); @@ -847,7 +847,7 @@ public class PetApi { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public Pet updatePet(Pet pet) throws ApiException { + public Pet updatePet(@javax.annotation.Nonnull Pet pet) throws ApiException { ApiResponse localVarResp = updatePetWithHttpInfo(pet); return localVarResp.getData(); } @@ -870,7 +870,7 @@ public class PetApi { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public ApiResponse updatePetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse updatePetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException { okhttp3.Call localVarCall = updatePetValidateBeforeCall(pet, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -895,7 +895,7 @@ public class PetApi { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public okhttp3.Call updatePetAsync(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetAsync(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updatePetValidateBeforeCall(pet, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -917,7 +917,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call updatePetWithFormCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetWithFormCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -971,7 +971,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updatePetWithFormValidateBeforeCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updatePetWithFormValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling updatePetWithForm(Async)"); @@ -995,7 +995,7 @@ public class PetApi { 405 Invalid input - */ - public void updatePetWithForm(Long petId, String name, String status) throws ApiException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -1014,7 +1014,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException { + public ApiResponse updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { okhttp3.Call localVarCall = updatePetWithFormValidateBeforeCall(petId, name, status, null); return localVarApiClient.execute(localVarCall); } @@ -1035,7 +1035,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call updatePetWithFormAsync(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetWithFormAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updatePetWithFormValidateBeforeCall(petId, name, status, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -1056,7 +1056,7 @@ public class PetApi { 200 successful operation - */ - public okhttp3.Call uploadFileCall(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1111,7 +1111,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call uploadFileValidateBeforeCall(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + private okhttp3.Call uploadFileValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling uploadFile(Async)"); @@ -1136,7 +1136,7 @@ public class PetApi { 200 successful operation - */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws ApiException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { ApiResponse localVarResp = uploadFileWithHttpInfo(petId, additionalMetadata, _file); return localVarResp.getData(); } @@ -1156,7 +1156,7 @@ public class PetApi { 200 successful operation - */ - public ApiResponse uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws ApiException { + public ApiResponse uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { okhttp3.Call localVarCall = uploadFileValidateBeforeCall(petId, additionalMetadata, _file, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1178,7 +1178,7 @@ public class PetApi { 200 successful operation - */ - public okhttp3.Call uploadFileAsync(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = uploadFileValidateBeforeCall(petId, additionalMetadata, _file, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/api/StoreApi.java index 1572d13a748..e1140a10a68 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/api/StoreApi.java @@ -86,7 +86,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call deleteOrderCall(String orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteOrderCall(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -131,7 +131,7 @@ public class StoreApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteOrderValidateBeforeCall(String orderId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteOrderValidateBeforeCall(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new ApiException("Missing the required parameter 'orderId' when calling deleteOrder(Async)"); @@ -154,7 +154,7 @@ public class StoreApi { 404 Order not found - */ - public void deleteOrder(String orderId) throws ApiException { + public void deleteOrder(@javax.annotation.Nonnull String orderId) throws ApiException { deleteOrderWithHttpInfo(orderId); } @@ -172,7 +172,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse deleteOrderWithHttpInfo(String orderId) throws ApiException { + public ApiResponse deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws ApiException { okhttp3.Call localVarCall = deleteOrderValidateBeforeCall(orderId, null); return localVarApiClient.execute(localVarCall); } @@ -192,7 +192,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call deleteOrderAsync(String orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteOrderAsync(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteOrderValidateBeforeCall(orderId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -330,7 +330,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call getOrderByIdCall(Long orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getOrderByIdCall(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -377,7 +377,7 @@ public class StoreApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getOrderByIdValidateBeforeCall(Long orderId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getOrderByIdValidateBeforeCall(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new ApiException("Missing the required parameter 'orderId' when calling getOrderById(Async)"); @@ -402,7 +402,7 @@ public class StoreApi { 404 Order not found - */ - public Order getOrderById(Long orderId) throws ApiException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws ApiException { ApiResponse localVarResp = getOrderByIdWithHttpInfo(orderId); return localVarResp.getData(); } @@ -422,7 +422,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse getOrderByIdWithHttpInfo(Long orderId) throws ApiException { + public ApiResponse getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws ApiException { okhttp3.Call localVarCall = getOrderByIdValidateBeforeCall(orderId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -444,7 +444,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call getOrderByIdAsync(Long orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getOrderByIdAsync(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getOrderByIdValidateBeforeCall(orderId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -465,7 +465,7 @@ public class StoreApi { 400 Invalid Order - */ - public okhttp3.Call placeOrderCall(Order order, final ApiCallback _callback) throws ApiException { + public okhttp3.Call placeOrderCall(@javax.annotation.Nonnull Order order, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -512,7 +512,7 @@ public class StoreApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call placeOrderValidateBeforeCall(Order order, final ApiCallback _callback) throws ApiException { + private okhttp3.Call placeOrderValidateBeforeCall(@javax.annotation.Nonnull Order order, final ApiCallback _callback) throws ApiException { // verify the required parameter 'order' is set if (order == null) { throw new ApiException("Missing the required parameter 'order' when calling placeOrder(Async)"); @@ -536,7 +536,7 @@ public class StoreApi { 400 Invalid Order - */ - public Order placeOrder(Order order) throws ApiException { + public Order placeOrder(@javax.annotation.Nonnull Order order) throws ApiException { ApiResponse localVarResp = placeOrderWithHttpInfo(order); return localVarResp.getData(); } @@ -555,7 +555,7 @@ public class StoreApi { 400 Invalid Order - */ - public ApiResponse placeOrderWithHttpInfo(Order order) throws ApiException { + public ApiResponse placeOrderWithHttpInfo(@javax.annotation.Nonnull Order order) throws ApiException { okhttp3.Call localVarCall = placeOrderValidateBeforeCall(order, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -576,7 +576,7 @@ public class StoreApi { 400 Invalid Order - */ - public okhttp3.Call placeOrderAsync(Order order, final ApiCallback _callback) throws ApiException { + public okhttp3.Call placeOrderAsync(@javax.annotation.Nonnull Order order, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = placeOrderValidateBeforeCall(order, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/api/UserApi.java index 684295ba1bb..34d1386c02e 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/api/UserApi.java @@ -86,7 +86,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUserCall(User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUserCall(@javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -131,7 +131,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createUserValidateBeforeCall(User user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUserValidateBeforeCall(@javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling createUser(Async)"); @@ -153,7 +153,7 @@ public class UserApi { 0 successful operation - */ - public void createUser(User user) throws ApiException { + public void createUser(@javax.annotation.Nonnull User user) throws ApiException { createUserWithHttpInfo(user); } @@ -170,7 +170,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUserWithHttpInfo(User user) throws ApiException { + public ApiResponse createUserWithHttpInfo(@javax.annotation.Nonnull User user) throws ApiException { okhttp3.Call localVarCall = createUserValidateBeforeCall(user, null); return localVarApiClient.execute(localVarCall); } @@ -189,7 +189,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUserAsync(User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUserAsync(@javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUserValidateBeforeCall(user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -208,7 +208,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithArrayInputCall(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithArrayInputCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -253,7 +253,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createUsersWithArrayInputValidateBeforeCall(List user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUsersWithArrayInputValidateBeforeCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling createUsersWithArrayInput(Async)"); @@ -275,7 +275,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithArrayInput(List user) throws ApiException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List user) throws ApiException { createUsersWithArrayInputWithHttpInfo(user); } @@ -292,7 +292,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithArrayInputWithHttpInfo(List user) throws ApiException { + public ApiResponse createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List user) throws ApiException { okhttp3.Call localVarCall = createUsersWithArrayInputValidateBeforeCall(user, null); return localVarApiClient.execute(localVarCall); } @@ -311,7 +311,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithArrayInputAsync(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithArrayInputAsync(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUsersWithArrayInputValidateBeforeCall(user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -330,7 +330,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithListInputCall(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithListInputCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -375,7 +375,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createUsersWithListInputValidateBeforeCall(List user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUsersWithListInputValidateBeforeCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling createUsersWithListInput(Async)"); @@ -397,7 +397,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithListInput(List user) throws ApiException { + public void createUsersWithListInput(@javax.annotation.Nonnull List user) throws ApiException { createUsersWithListInputWithHttpInfo(user); } @@ -414,7 +414,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithListInputWithHttpInfo(List user) throws ApiException { + public ApiResponse createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List user) throws ApiException { okhttp3.Call localVarCall = createUsersWithListInputValidateBeforeCall(user, null); return localVarApiClient.execute(localVarCall); } @@ -433,7 +433,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithListInputAsync(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithListInputAsync(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUsersWithListInputValidateBeforeCall(user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -453,7 +453,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call deleteUserCall(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUserCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -498,7 +498,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteUserValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteUserValidateBeforeCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling deleteUser(Async)"); @@ -521,7 +521,7 @@ public class UserApi { 404 User not found - */ - public void deleteUser(String username) throws ApiException { + public void deleteUser(@javax.annotation.Nonnull String username) throws ApiException { deleteUserWithHttpInfo(username); } @@ -539,7 +539,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse deleteUserWithHttpInfo(String username) throws ApiException { + public ApiResponse deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { okhttp3.Call localVarCall = deleteUserValidateBeforeCall(username, null); return localVarApiClient.execute(localVarCall); } @@ -559,7 +559,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call deleteUserAsync(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUserAsync(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteUserValidateBeforeCall(username, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -580,7 +580,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call getUserByNameCall(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUserByNameCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -627,7 +627,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getUserByNameValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserByNameValidateBeforeCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling getUserByName(Async)"); @@ -652,7 +652,7 @@ public class UserApi { 404 User not found - */ - public User getUserByName(String username) throws ApiException { + public User getUserByName(@javax.annotation.Nonnull String username) throws ApiException { ApiResponse localVarResp = getUserByNameWithHttpInfo(username); return localVarResp.getData(); } @@ -672,7 +672,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse getUserByNameWithHttpInfo(String username) throws ApiException { + public ApiResponse getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { okhttp3.Call localVarCall = getUserByNameValidateBeforeCall(username, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -694,7 +694,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call getUserByNameAsync(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUserByNameAsync(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserByNameValidateBeforeCall(username, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -716,7 +716,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public okhttp3.Call loginUserCall(String username, String password, final ApiCallback _callback) throws ApiException { + public okhttp3.Call loginUserCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -770,7 +770,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call loginUserValidateBeforeCall(String username, String password, final ApiCallback _callback) throws ApiException { + private okhttp3.Call loginUserValidateBeforeCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling loginUser(Async)"); @@ -800,7 +800,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public String loginUser(String username, String password) throws ApiException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { ApiResponse localVarResp = loginUserWithHttpInfo(username, password); return localVarResp.getData(); } @@ -820,7 +820,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public ApiResponse loginUserWithHttpInfo(String username, String password) throws ApiException { + public ApiResponse loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { okhttp3.Call localVarCall = loginUserValidateBeforeCall(username, password, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -842,7 +842,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public okhttp3.Call loginUserAsync(String username, String password, final ApiCallback _callback) throws ApiException { + public okhttp3.Call loginUserAsync(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = loginUserValidateBeforeCall(username, password, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -976,7 +976,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call updateUserCall(String username, User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateUserCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1022,7 +1022,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updateUserValidateBeforeCall(String username, User user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateUserValidateBeforeCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling updateUser(Async)"); @@ -1051,7 +1051,7 @@ public class UserApi { 404 User not found - */ - public void updateUser(String username, User user) throws ApiException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { updateUserWithHttpInfo(username, user); } @@ -1070,7 +1070,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse updateUserWithHttpInfo(String username, User user) throws ApiException { + public ApiResponse updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { okhttp3.Call localVarCall = updateUserValidateBeforeCall(username, user, null); return localVarApiClient.execute(localVarCall); } @@ -1091,7 +1091,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call updateUserAsync(String username, User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateUserAsync(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateUserValidateBeforeCall(username, user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/api/PetApi.java index 13eac29f4ee..2170c3dc7da 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/api/PetApi.java @@ -88,7 +88,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call addPetCall(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addPetCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -136,7 +136,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call addPetValidateBeforeCall(Pet pet, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addPetValidateBeforeCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { // verify the required parameter 'pet' is set if (pet == null) { throw new ApiException("Missing the required parameter 'pet' when calling addPet(Async)"); @@ -160,7 +160,7 @@ public class PetApi { 405 Invalid input - */ - public Pet addPet(Pet pet) throws ApiException { + public Pet addPet(@javax.annotation.Nonnull Pet pet) throws ApiException { ApiResponse localVarResp = addPetWithHttpInfo(pet); return localVarResp.getData(); } @@ -179,7 +179,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse addPetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse addPetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException { okhttp3.Call localVarCall = addPetValidateBeforeCall(pet, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -200,7 +200,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call addPetAsync(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addPetAsync(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = addPetValidateBeforeCall(pet, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -221,7 +221,7 @@ public class PetApi { 400 Invalid pet value - */ - public okhttp3.Call deletePetCall(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deletePetCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -271,7 +271,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deletePetValidateBeforeCall(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deletePetValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling deletePet(Async)"); @@ -294,7 +294,7 @@ public class PetApi { 400 Invalid pet value - */ - public void deletePet(Long petId, String apiKey) throws ApiException { + public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { deletePetWithHttpInfo(petId, apiKey); } @@ -312,7 +312,7 @@ public class PetApi { 400 Invalid pet value - */ - public ApiResponse deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException { + public ApiResponse deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { okhttp3.Call localVarCall = deletePetValidateBeforeCall(petId, apiKey, null); return localVarApiClient.execute(localVarCall); } @@ -332,7 +332,7 @@ public class PetApi { 400 Invalid pet value - */ - public okhttp3.Call deletePetAsync(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deletePetAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deletePetValidateBeforeCall(petId, apiKey, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -352,7 +352,7 @@ public class PetApi { 400 Invalid status value - */ - public okhttp3.Call findPetsByStatusCall(List status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findPetsByStatusCall(@javax.annotation.Nonnull List status, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -402,7 +402,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call findPetsByStatusValidateBeforeCall(List status, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findPetsByStatusValidateBeforeCall(@javax.annotation.Nonnull List status, final ApiCallback _callback) throws ApiException { // verify the required parameter 'status' is set if (status == null) { throw new ApiException("Missing the required parameter 'status' when calling findPetsByStatus(Async)"); @@ -426,7 +426,7 @@ public class PetApi { 400 Invalid status value - */ - public List findPetsByStatus(List status) throws ApiException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws ApiException { ApiResponse> localVarResp = findPetsByStatusWithHttpInfo(status); return localVarResp.getData(); } @@ -445,7 +445,7 @@ public class PetApi { 400 Invalid status value - */ - public ApiResponse> findPetsByStatusWithHttpInfo(List status) throws ApiException { + public ApiResponse> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws ApiException { okhttp3.Call localVarCall = findPetsByStatusValidateBeforeCall(status, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -466,7 +466,7 @@ public class PetApi { 400 Invalid status value - */ - public okhttp3.Call findPetsByStatusAsync(List status, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call findPetsByStatusAsync(@javax.annotation.Nonnull List status, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = findPetsByStatusValidateBeforeCall(status, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); @@ -489,7 +489,7 @@ public class PetApi { * @deprecated */ @Deprecated - public okhttp3.Call findPetsByTagsCall(List tags, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findPetsByTagsCall(@javax.annotation.Nonnull List tags, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -540,7 +540,7 @@ public class PetApi { @Deprecated @SuppressWarnings("rawtypes") - private okhttp3.Call findPetsByTagsValidateBeforeCall(List tags, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findPetsByTagsValidateBeforeCall(@javax.annotation.Nonnull List tags, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tags' is set if (tags == null) { throw new ApiException("Missing the required parameter 'tags' when calling findPetsByTags(Async)"); @@ -566,7 +566,7 @@ public class PetApi { * @deprecated */ @Deprecated - public List findPetsByTags(List tags) throws ApiException { + public List findPetsByTags(@javax.annotation.Nonnull List tags) throws ApiException { ApiResponse> localVarResp = findPetsByTagsWithHttpInfo(tags); return localVarResp.getData(); } @@ -587,7 +587,7 @@ public class PetApi { * @deprecated */ @Deprecated - public ApiResponse> findPetsByTagsWithHttpInfo(List tags) throws ApiException { + public ApiResponse> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull List tags) throws ApiException { okhttp3.Call localVarCall = findPetsByTagsValidateBeforeCall(tags, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -610,7 +610,7 @@ public class PetApi { * @deprecated */ @Deprecated - public okhttp3.Call findPetsByTagsAsync(List tags, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call findPetsByTagsAsync(@javax.annotation.Nonnull List tags, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = findPetsByTagsValidateBeforeCall(tags, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); @@ -632,7 +632,7 @@ public class PetApi { 404 Pet not found - */ - public okhttp3.Call getPetByIdCall(Long petId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPetByIdCall(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -679,7 +679,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getPetByIdValidateBeforeCall(Long petId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPetByIdValidateBeforeCall(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling getPetById(Async)"); @@ -704,7 +704,7 @@ public class PetApi { 404 Pet not found - */ - public Pet getPetById(Long petId) throws ApiException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws ApiException { ApiResponse localVarResp = getPetByIdWithHttpInfo(petId); return localVarResp.getData(); } @@ -724,7 +724,7 @@ public class PetApi { 404 Pet not found - */ - public ApiResponse getPetByIdWithHttpInfo(Long petId) throws ApiException { + public ApiResponse getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws ApiException { okhttp3.Call localVarCall = getPetByIdValidateBeforeCall(petId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -746,7 +746,7 @@ public class PetApi { 404 Pet not found - */ - public okhttp3.Call getPetByIdAsync(Long petId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPetByIdAsync(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPetByIdValidateBeforeCall(petId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -771,7 +771,7 @@ public class PetApi { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public okhttp3.Call updatePetCall(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -819,7 +819,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updatePetValidateBeforeCall(Pet pet, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updatePetValidateBeforeCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { // verify the required parameter 'pet' is set if (pet == null) { throw new ApiException("Missing the required parameter 'pet' when calling updatePet(Async)"); @@ -847,7 +847,7 @@ public class PetApi { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public Pet updatePet(Pet pet) throws ApiException { + public Pet updatePet(@javax.annotation.Nonnull Pet pet) throws ApiException { ApiResponse localVarResp = updatePetWithHttpInfo(pet); return localVarResp.getData(); } @@ -870,7 +870,7 @@ public class PetApi { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public ApiResponse updatePetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse updatePetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException { okhttp3.Call localVarCall = updatePetValidateBeforeCall(pet, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -895,7 +895,7 @@ public class PetApi { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public okhttp3.Call updatePetAsync(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetAsync(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updatePetValidateBeforeCall(pet, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -917,7 +917,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call updatePetWithFormCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetWithFormCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -971,7 +971,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updatePetWithFormValidateBeforeCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updatePetWithFormValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling updatePetWithForm(Async)"); @@ -995,7 +995,7 @@ public class PetApi { 405 Invalid input - */ - public void updatePetWithForm(Long petId, String name, String status) throws ApiException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -1014,7 +1014,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException { + public ApiResponse updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { okhttp3.Call localVarCall = updatePetWithFormValidateBeforeCall(petId, name, status, null); return localVarApiClient.execute(localVarCall); } @@ -1035,7 +1035,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call updatePetWithFormAsync(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetWithFormAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updatePetWithFormValidateBeforeCall(petId, name, status, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -1056,7 +1056,7 @@ public class PetApi { 200 successful operation - */ - public okhttp3.Call uploadFileCall(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1111,7 +1111,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call uploadFileValidateBeforeCall(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + private okhttp3.Call uploadFileValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling uploadFile(Async)"); @@ -1136,7 +1136,7 @@ public class PetApi { 200 successful operation - */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws ApiException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { ApiResponse localVarResp = uploadFileWithHttpInfo(petId, additionalMetadata, _file); return localVarResp.getData(); } @@ -1156,7 +1156,7 @@ public class PetApi { 200 successful operation - */ - public ApiResponse uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws ApiException { + public ApiResponse uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { okhttp3.Call localVarCall = uploadFileValidateBeforeCall(petId, additionalMetadata, _file, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1178,7 +1178,7 @@ public class PetApi { 200 successful operation - */ - public okhttp3.Call uploadFileAsync(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = uploadFileValidateBeforeCall(petId, additionalMetadata, _file, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/api/StoreApi.java index badbcb7a6fd..dcdaea84b75 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/api/StoreApi.java @@ -86,7 +86,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call deleteOrderCall(String orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteOrderCall(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -131,7 +131,7 @@ public class StoreApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteOrderValidateBeforeCall(String orderId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteOrderValidateBeforeCall(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new ApiException("Missing the required parameter 'orderId' when calling deleteOrder(Async)"); @@ -154,7 +154,7 @@ public class StoreApi { 404 Order not found - */ - public void deleteOrder(String orderId) throws ApiException { + public void deleteOrder(@javax.annotation.Nonnull String orderId) throws ApiException { deleteOrderWithHttpInfo(orderId); } @@ -172,7 +172,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse deleteOrderWithHttpInfo(String orderId) throws ApiException { + public ApiResponse deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws ApiException { okhttp3.Call localVarCall = deleteOrderValidateBeforeCall(orderId, null); return localVarApiClient.execute(localVarCall); } @@ -192,7 +192,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call deleteOrderAsync(String orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteOrderAsync(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteOrderValidateBeforeCall(orderId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -330,7 +330,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call getOrderByIdCall(Long orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getOrderByIdCall(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -377,7 +377,7 @@ public class StoreApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getOrderByIdValidateBeforeCall(Long orderId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getOrderByIdValidateBeforeCall(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new ApiException("Missing the required parameter 'orderId' when calling getOrderById(Async)"); @@ -402,7 +402,7 @@ public class StoreApi { 404 Order not found - */ - public Order getOrderById(Long orderId) throws ApiException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws ApiException { ApiResponse localVarResp = getOrderByIdWithHttpInfo(orderId); return localVarResp.getData(); } @@ -422,7 +422,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse getOrderByIdWithHttpInfo(Long orderId) throws ApiException { + public ApiResponse getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws ApiException { okhttp3.Call localVarCall = getOrderByIdValidateBeforeCall(orderId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -444,7 +444,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call getOrderByIdAsync(Long orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getOrderByIdAsync(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getOrderByIdValidateBeforeCall(orderId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -465,7 +465,7 @@ public class StoreApi { 400 Invalid Order - */ - public okhttp3.Call placeOrderCall(Order order, final ApiCallback _callback) throws ApiException { + public okhttp3.Call placeOrderCall(@javax.annotation.Nonnull Order order, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -512,7 +512,7 @@ public class StoreApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call placeOrderValidateBeforeCall(Order order, final ApiCallback _callback) throws ApiException { + private okhttp3.Call placeOrderValidateBeforeCall(@javax.annotation.Nonnull Order order, final ApiCallback _callback) throws ApiException { // verify the required parameter 'order' is set if (order == null) { throw new ApiException("Missing the required parameter 'order' when calling placeOrder(Async)"); @@ -536,7 +536,7 @@ public class StoreApi { 400 Invalid Order - */ - public Order placeOrder(Order order) throws ApiException { + public Order placeOrder(@javax.annotation.Nonnull Order order) throws ApiException { ApiResponse localVarResp = placeOrderWithHttpInfo(order); return localVarResp.getData(); } @@ -555,7 +555,7 @@ public class StoreApi { 400 Invalid Order - */ - public ApiResponse placeOrderWithHttpInfo(Order order) throws ApiException { + public ApiResponse placeOrderWithHttpInfo(@javax.annotation.Nonnull Order order) throws ApiException { okhttp3.Call localVarCall = placeOrderValidateBeforeCall(order, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -576,7 +576,7 @@ public class StoreApi { 400 Invalid Order - */ - public okhttp3.Call placeOrderAsync(Order order, final ApiCallback _callback) throws ApiException { + public okhttp3.Call placeOrderAsync(@javax.annotation.Nonnull Order order, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = placeOrderValidateBeforeCall(order, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/api/UserApi.java index 251c006c0d2..2e79a5cbf4a 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/api/UserApi.java @@ -86,7 +86,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUserCall(User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUserCall(@javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -131,7 +131,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createUserValidateBeforeCall(User user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUserValidateBeforeCall(@javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling createUser(Async)"); @@ -153,7 +153,7 @@ public class UserApi { 0 successful operation - */ - public void createUser(User user) throws ApiException { + public void createUser(@javax.annotation.Nonnull User user) throws ApiException { createUserWithHttpInfo(user); } @@ -170,7 +170,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUserWithHttpInfo(User user) throws ApiException { + public ApiResponse createUserWithHttpInfo(@javax.annotation.Nonnull User user) throws ApiException { okhttp3.Call localVarCall = createUserValidateBeforeCall(user, null); return localVarApiClient.execute(localVarCall); } @@ -189,7 +189,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUserAsync(User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUserAsync(@javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUserValidateBeforeCall(user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -208,7 +208,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithArrayInputCall(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithArrayInputCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -253,7 +253,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createUsersWithArrayInputValidateBeforeCall(List user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUsersWithArrayInputValidateBeforeCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling createUsersWithArrayInput(Async)"); @@ -275,7 +275,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithArrayInput(List user) throws ApiException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List user) throws ApiException { createUsersWithArrayInputWithHttpInfo(user); } @@ -292,7 +292,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithArrayInputWithHttpInfo(List user) throws ApiException { + public ApiResponse createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List user) throws ApiException { okhttp3.Call localVarCall = createUsersWithArrayInputValidateBeforeCall(user, null); return localVarApiClient.execute(localVarCall); } @@ -311,7 +311,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithArrayInputAsync(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithArrayInputAsync(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUsersWithArrayInputValidateBeforeCall(user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -330,7 +330,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithListInputCall(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithListInputCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -375,7 +375,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createUsersWithListInputValidateBeforeCall(List user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUsersWithListInputValidateBeforeCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling createUsersWithListInput(Async)"); @@ -397,7 +397,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithListInput(List user) throws ApiException { + public void createUsersWithListInput(@javax.annotation.Nonnull List user) throws ApiException { createUsersWithListInputWithHttpInfo(user); } @@ -414,7 +414,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithListInputWithHttpInfo(List user) throws ApiException { + public ApiResponse createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List user) throws ApiException { okhttp3.Call localVarCall = createUsersWithListInputValidateBeforeCall(user, null); return localVarApiClient.execute(localVarCall); } @@ -433,7 +433,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithListInputAsync(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithListInputAsync(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUsersWithListInputValidateBeforeCall(user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -453,7 +453,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call deleteUserCall(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUserCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -498,7 +498,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteUserValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteUserValidateBeforeCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling deleteUser(Async)"); @@ -521,7 +521,7 @@ public class UserApi { 404 User not found - */ - public void deleteUser(String username) throws ApiException { + public void deleteUser(@javax.annotation.Nonnull String username) throws ApiException { deleteUserWithHttpInfo(username); } @@ -539,7 +539,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse deleteUserWithHttpInfo(String username) throws ApiException { + public ApiResponse deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { okhttp3.Call localVarCall = deleteUserValidateBeforeCall(username, null); return localVarApiClient.execute(localVarCall); } @@ -559,7 +559,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call deleteUserAsync(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUserAsync(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteUserValidateBeforeCall(username, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -580,7 +580,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call getUserByNameCall(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUserByNameCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -627,7 +627,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getUserByNameValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserByNameValidateBeforeCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling getUserByName(Async)"); @@ -652,7 +652,7 @@ public class UserApi { 404 User not found - */ - public User getUserByName(String username) throws ApiException { + public User getUserByName(@javax.annotation.Nonnull String username) throws ApiException { ApiResponse localVarResp = getUserByNameWithHttpInfo(username); return localVarResp.getData(); } @@ -672,7 +672,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse getUserByNameWithHttpInfo(String username) throws ApiException { + public ApiResponse getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { okhttp3.Call localVarCall = getUserByNameValidateBeforeCall(username, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -694,7 +694,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call getUserByNameAsync(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUserByNameAsync(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserByNameValidateBeforeCall(username, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -716,7 +716,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public okhttp3.Call loginUserCall(String username, String password, final ApiCallback _callback) throws ApiException { + public okhttp3.Call loginUserCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -770,7 +770,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call loginUserValidateBeforeCall(String username, String password, final ApiCallback _callback) throws ApiException { + private okhttp3.Call loginUserValidateBeforeCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling loginUser(Async)"); @@ -800,7 +800,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public String loginUser(String username, String password) throws ApiException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { ApiResponse localVarResp = loginUserWithHttpInfo(username, password); return localVarResp.getData(); } @@ -820,7 +820,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public ApiResponse loginUserWithHttpInfo(String username, String password) throws ApiException { + public ApiResponse loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { okhttp3.Call localVarCall = loginUserValidateBeforeCall(username, password, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -842,7 +842,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public okhttp3.Call loginUserAsync(String username, String password, final ApiCallback _callback) throws ApiException { + public okhttp3.Call loginUserAsync(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = loginUserValidateBeforeCall(username, password, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -976,7 +976,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call updateUserCall(String username, User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateUserCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1022,7 +1022,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updateUserValidateBeforeCall(String username, User user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateUserValidateBeforeCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling updateUser(Async)"); @@ -1051,7 +1051,7 @@ public class UserApi { 404 User not found - */ - public void updateUser(String username, User user) throws ApiException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { updateUserWithHttpInfo(username, user); } @@ -1070,7 +1070,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse updateUserWithHttpInfo(String username, User user) throws ApiException { + public ApiResponse updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { okhttp3.Call localVarCall = updateUserValidateBeforeCall(username, user, null); return localVarApiClient.execute(localVarCall); } @@ -1091,7 +1091,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call updateUserAsync(String username, User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateUserAsync(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateUserValidateBeforeCall(username, user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 5a4e8e9536a..13ff2c2ebf8 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -90,7 +90,7 @@ public class AnotherFakeApi { 200 successful operation - */ - public okhttp3.Call call123testSpecialTagsCall(UUID uuidTest, Client body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call call123testSpecialTagsCall(@javax.annotation.Nonnull UUID uuidTest, @javax.annotation.Nonnull Client body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -145,7 +145,7 @@ public class AnotherFakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call call123testSpecialTagsValidateBeforeCall(UUID uuidTest, Client body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call call123testSpecialTagsValidateBeforeCall(@javax.annotation.Nonnull UUID uuidTest, @javax.annotation.Nonnull Client body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'uuidTest' is set if (uuidTest == null) { throw new ApiException("Missing the required parameter 'uuidTest' when calling call123testSpecialTags(Async)"); @@ -174,7 +174,7 @@ public class AnotherFakeApi { 200 successful operation - */ - public Client call123testSpecialTags(UUID uuidTest, Client body) throws ApiException { + public Client call123testSpecialTags(@javax.annotation.Nonnull UUID uuidTest, @javax.annotation.Nonnull Client body) throws ApiException { ApiResponse localVarResp = call123testSpecialTagsWithHttpInfo(uuidTest, body); return localVarResp.getData(); } @@ -193,7 +193,7 @@ public class AnotherFakeApi { 200 successful operation - */ - public ApiResponse call123testSpecialTagsWithHttpInfo(UUID uuidTest, Client body) throws ApiException { + public ApiResponse call123testSpecialTagsWithHttpInfo(@javax.annotation.Nonnull UUID uuidTest, @javax.annotation.Nonnull Client body) throws ApiException { okhttp3.Call localVarCall = call123testSpecialTagsValidateBeforeCall(uuidTest, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -214,7 +214,7 @@ public class AnotherFakeApi { 200 successful operation - */ - public okhttp3.Call call123testSpecialTagsAsync(UUID uuidTest, Client body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call call123testSpecialTagsAsync(@javax.annotation.Nonnull UUID uuidTest, @javax.annotation.Nonnull Client body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = call123testSpecialTagsValidateBeforeCall(uuidTest, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/FakeApi.java index a68eb3c2f2a..e9806568a56 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/FakeApi.java @@ -96,7 +96,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call createXmlItemCall(XmlItem xmlItem, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createXmlItemCall(@javax.annotation.Nonnull XmlItem xmlItem, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -154,7 +154,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createXmlItemValidateBeforeCall(XmlItem xmlItem, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createXmlItemValidateBeforeCall(@javax.annotation.Nonnull XmlItem xmlItem, final ApiCallback _callback) throws ApiException { // verify the required parameter 'xmlItem' is set if (xmlItem == null) { throw new ApiException("Missing the required parameter 'xmlItem' when calling createXmlItem(Async)"); @@ -176,7 +176,7 @@ public class FakeApi { 200 successful operation - */ - public void createXmlItem(XmlItem xmlItem) throws ApiException { + public void createXmlItem(@javax.annotation.Nonnull XmlItem xmlItem) throws ApiException { createXmlItemWithHttpInfo(xmlItem); } @@ -193,7 +193,7 @@ public class FakeApi { 200 successful operation - */ - public ApiResponse createXmlItemWithHttpInfo(XmlItem xmlItem) throws ApiException { + public ApiResponse createXmlItemWithHttpInfo(@javax.annotation.Nonnull XmlItem xmlItem) throws ApiException { okhttp3.Call localVarCall = createXmlItemValidateBeforeCall(xmlItem, null); return localVarApiClient.execute(localVarCall); } @@ -212,7 +212,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call createXmlItemAsync(XmlItem xmlItem, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createXmlItemAsync(@javax.annotation.Nonnull XmlItem xmlItem, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createXmlItemValidateBeforeCall(xmlItem, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -231,7 +231,7 @@ public class FakeApi { 200 Output boolean - */ - public okhttp3.Call fakeOuterBooleanSerializeCall(Boolean body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterBooleanSerializeCall(@javax.annotation.Nullable Boolean body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -284,7 +284,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call fakeOuterBooleanSerializeValidateBeforeCall(Boolean body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call fakeOuterBooleanSerializeValidateBeforeCall(@javax.annotation.Nullable Boolean body, final ApiCallback _callback) throws ApiException { return fakeOuterBooleanSerializeCall(body, _callback); } @@ -302,7 +302,7 @@ public class FakeApi { 200 Output boolean - */ - public Boolean fakeOuterBooleanSerialize(Boolean body) throws ApiException { + public Boolean fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body) throws ApiException { ApiResponse localVarResp = fakeOuterBooleanSerializeWithHttpInfo(body); return localVarResp.getData(); } @@ -320,7 +320,7 @@ public class FakeApi { 200 Output boolean - */ - public ApiResponse fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws ApiException { + public ApiResponse fakeOuterBooleanSerializeWithHttpInfo(@javax.annotation.Nullable Boolean body) throws ApiException { okhttp3.Call localVarCall = fakeOuterBooleanSerializeValidateBeforeCall(body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -340,7 +340,7 @@ public class FakeApi { 200 Output boolean - */ - public okhttp3.Call fakeOuterBooleanSerializeAsync(Boolean body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterBooleanSerializeAsync(@javax.annotation.Nullable Boolean body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = fakeOuterBooleanSerializeValidateBeforeCall(body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -360,7 +360,7 @@ public class FakeApi { 200 Output composite - */ - public okhttp3.Call fakeOuterCompositeSerializeCall(OuterComposite body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterCompositeSerializeCall(@javax.annotation.Nullable OuterComposite body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -413,7 +413,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call fakeOuterCompositeSerializeValidateBeforeCall(OuterComposite body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call fakeOuterCompositeSerializeValidateBeforeCall(@javax.annotation.Nullable OuterComposite body, final ApiCallback _callback) throws ApiException { return fakeOuterCompositeSerializeCall(body, _callback); } @@ -431,7 +431,7 @@ public class FakeApi { 200 Output composite - */ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException { + public OuterComposite fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite body) throws ApiException { ApiResponse localVarResp = fakeOuterCompositeSerializeWithHttpInfo(body); return localVarResp.getData(); } @@ -449,7 +449,7 @@ public class FakeApi { 200 Output composite - */ - public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(OuterComposite body) throws ApiException { + public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(@javax.annotation.Nullable OuterComposite body) throws ApiException { okhttp3.Call localVarCall = fakeOuterCompositeSerializeValidateBeforeCall(body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -469,7 +469,7 @@ public class FakeApi { 200 Output composite - */ - public okhttp3.Call fakeOuterCompositeSerializeAsync(OuterComposite body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterCompositeSerializeAsync(@javax.annotation.Nullable OuterComposite body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = fakeOuterCompositeSerializeValidateBeforeCall(body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -489,7 +489,7 @@ public class FakeApi { 200 Output number - */ - public okhttp3.Call fakeOuterNumberSerializeCall(BigDecimal body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterNumberSerializeCall(@javax.annotation.Nullable BigDecimal body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -542,7 +542,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call fakeOuterNumberSerializeValidateBeforeCall(BigDecimal body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call fakeOuterNumberSerializeValidateBeforeCall(@javax.annotation.Nullable BigDecimal body, final ApiCallback _callback) throws ApiException { return fakeOuterNumberSerializeCall(body, _callback); } @@ -560,7 +560,7 @@ public class FakeApi { 200 Output number - */ - public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws ApiException { + public BigDecimal fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body) throws ApiException { ApiResponse localVarResp = fakeOuterNumberSerializeWithHttpInfo(body); return localVarResp.getData(); } @@ -578,7 +578,7 @@ public class FakeApi { 200 Output number - */ - public ApiResponse fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws ApiException { + public ApiResponse fakeOuterNumberSerializeWithHttpInfo(@javax.annotation.Nullable BigDecimal body) throws ApiException { okhttp3.Call localVarCall = fakeOuterNumberSerializeValidateBeforeCall(body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -598,7 +598,7 @@ public class FakeApi { 200 Output number - */ - public okhttp3.Call fakeOuterNumberSerializeAsync(BigDecimal body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterNumberSerializeAsync(@javax.annotation.Nullable BigDecimal body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = fakeOuterNumberSerializeValidateBeforeCall(body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -618,7 +618,7 @@ public class FakeApi { 200 Output string - */ - public okhttp3.Call fakeOuterStringSerializeCall(String body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterStringSerializeCall(@javax.annotation.Nullable String body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -671,7 +671,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call fakeOuterStringSerializeValidateBeforeCall(String body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call fakeOuterStringSerializeValidateBeforeCall(@javax.annotation.Nullable String body, final ApiCallback _callback) throws ApiException { return fakeOuterStringSerializeCall(body, _callback); } @@ -689,7 +689,7 @@ public class FakeApi { 200 Output string - */ - public String fakeOuterStringSerialize(String body) throws ApiException { + public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws ApiException { ApiResponse localVarResp = fakeOuterStringSerializeWithHttpInfo(body); return localVarResp.getData(); } @@ -707,7 +707,7 @@ public class FakeApi { 200 Output string - */ - public ApiResponse fakeOuterStringSerializeWithHttpInfo(String body) throws ApiException { + public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws ApiException { okhttp3.Call localVarCall = fakeOuterStringSerializeValidateBeforeCall(body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -727,7 +727,7 @@ public class FakeApi { 200 Output string - */ - public okhttp3.Call fakeOuterStringSerializeAsync(String body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterStringSerializeAsync(@javax.annotation.Nullable String body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = fakeOuterStringSerializeValidateBeforeCall(body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -747,7 +747,7 @@ public class FakeApi { 200 Success - */ - public okhttp3.Call testBodyWithFileSchemaCall(FileSchemaTestClass body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testBodyWithFileSchemaCall(@javax.annotation.Nonnull FileSchemaTestClass body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -800,7 +800,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testBodyWithFileSchemaValidateBeforeCall(FileSchemaTestClass body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testBodyWithFileSchemaValidateBeforeCall(@javax.annotation.Nonnull FileSchemaTestClass body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling testBodyWithFileSchema(Async)"); @@ -822,7 +822,7 @@ public class FakeApi { 200 Success - */ - public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException { + public void testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass body) throws ApiException { testBodyWithFileSchemaWithHttpInfo(body); } @@ -839,7 +839,7 @@ public class FakeApi { 200 Success - */ - public ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws ApiException { + public ApiResponse testBodyWithFileSchemaWithHttpInfo(@javax.annotation.Nonnull FileSchemaTestClass body) throws ApiException { okhttp3.Call localVarCall = testBodyWithFileSchemaValidateBeforeCall(body, null); return localVarApiClient.execute(localVarCall); } @@ -858,7 +858,7 @@ public class FakeApi { 200 Success - */ - public okhttp3.Call testBodyWithFileSchemaAsync(FileSchemaTestClass body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testBodyWithFileSchemaAsync(@javax.annotation.Nonnull FileSchemaTestClass body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testBodyWithFileSchemaValidateBeforeCall(body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -878,7 +878,7 @@ public class FakeApi { 200 Success - */ - public okhttp3.Call testBodyWithQueryParamsCall(String query, User body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testBodyWithQueryParamsCall(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -932,7 +932,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testBodyWithQueryParamsValidateBeforeCall(String query, User body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testBodyWithQueryParamsValidateBeforeCall(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'query' is set if (query == null) { throw new ApiException("Missing the required parameter 'query' when calling testBodyWithQueryParams(Async)"); @@ -960,7 +960,7 @@ public class FakeApi { 200 Success - */ - public void testBodyWithQueryParams(String query, User body) throws ApiException { + public void testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User body) throws ApiException { testBodyWithQueryParamsWithHttpInfo(query, body); } @@ -978,7 +978,7 @@ public class FakeApi { 200 Success - */ - public ApiResponse testBodyWithQueryParamsWithHttpInfo(String query, User body) throws ApiException { + public ApiResponse testBodyWithQueryParamsWithHttpInfo(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User body) throws ApiException { okhttp3.Call localVarCall = testBodyWithQueryParamsValidateBeforeCall(query, body, null); return localVarApiClient.execute(localVarCall); } @@ -998,7 +998,7 @@ public class FakeApi { 200 Success - */ - public okhttp3.Call testBodyWithQueryParamsAsync(String query, User body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testBodyWithQueryParamsAsync(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testBodyWithQueryParamsValidateBeforeCall(query, body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -1017,7 +1017,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call testClientModelCall(Client body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testClientModelCall(@javax.annotation.Nonnull Client body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1071,7 +1071,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testClientModelValidateBeforeCall(Client body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testClientModelValidateBeforeCall(@javax.annotation.Nonnull Client body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling testClientModel(Async)"); @@ -1094,7 +1094,7 @@ public class FakeApi { 200 successful operation - */ - public Client testClientModel(Client body) throws ApiException { + public Client testClientModel(@javax.annotation.Nonnull Client body) throws ApiException { ApiResponse localVarResp = testClientModelWithHttpInfo(body); return localVarResp.getData(); } @@ -1112,7 +1112,7 @@ public class FakeApi { 200 successful operation - */ - public ApiResponse testClientModelWithHttpInfo(Client body) throws ApiException { + public ApiResponse testClientModelWithHttpInfo(@javax.annotation.Nonnull Client body) throws ApiException { okhttp3.Call localVarCall = testClientModelValidateBeforeCall(body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1132,7 +1132,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call testClientModelAsync(Client body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testClientModelAsync(@javax.annotation.Nonnull Client body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testClientModelValidateBeforeCall(body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1166,7 +1166,7 @@ public class FakeApi { 404 User not found - */ - public okhttp3.Call testEndpointParametersCall(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, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEndpointParametersCall(@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, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1275,7 +1275,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testEndpointParametersValidateBeforeCall(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, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testEndpointParametersValidateBeforeCall(@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, final ApiCallback _callback) throws ApiException { // verify the required parameter 'number' is set if (number == null) { throw new ApiException("Missing the required parameter 'number' when calling testEndpointParameters(Async)"); @@ -1326,7 +1326,7 @@ public class FakeApi { 404 User not found - */ - 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 ApiException { + 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 ApiException { testEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -1357,7 +1357,7 @@ public class FakeApi { 404 User not found - */ - public ApiResponse 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 ApiException { + public ApiResponse 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 ApiException { okhttp3.Call localVarCall = testEndpointParametersValidateBeforeCall(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback, null); return localVarApiClient.execute(localVarCall); } @@ -1390,7 +1390,7 @@ public class FakeApi { 404 User not found - */ - public okhttp3.Call testEndpointParametersAsync(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, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEndpointParametersAsync(@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, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testEndpointParametersValidateBeforeCall(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -1417,7 +1417,7 @@ public class FakeApi { 404 Not found - */ - public okhttp3.Call testEnumParametersCall(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEnumParametersCall(@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 enumFormStringArray, @javax.annotation.Nullable String enumFormString, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1484,7 +1484,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testEnumParametersValidateBeforeCall(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testEnumParametersValidateBeforeCall(@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 enumFormStringArray, @javax.annotation.Nullable String enumFormString, final ApiCallback _callback) throws ApiException { return testEnumParametersCall(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, _callback); } @@ -1509,7 +1509,7 @@ public class FakeApi { 404 Not found - */ - public void testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { + 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 enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws ApiException { testEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -1534,7 +1534,7 @@ public class FakeApi { 404 Not found - */ - public ApiResponse testEnumParametersWithHttpInfo(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { + public ApiResponse 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 enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws ApiException { okhttp3.Call localVarCall = testEnumParametersValidateBeforeCall(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, null); return localVarApiClient.execute(localVarCall); } @@ -1561,13 +1561,13 @@ public class FakeApi { 404 Not found - */ - public okhttp3.Call testEnumParametersAsync(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEnumParametersAsync(@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 enumFormStringArray, @javax.annotation.Nullable String enumFormString, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testEnumParametersValidateBeforeCall(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } - private okhttp3.Call testGroupParametersCall(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testGroupParametersCall(@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, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1625,7 +1625,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testGroupParametersValidateBeforeCall(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testGroupParametersValidateBeforeCall(@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, final ApiCallback _callback) throws ApiException { // verify the required parameter 'requiredStringGroup' is set if (requiredStringGroup == null) { throw new ApiException("Missing the required parameter 'requiredStringGroup' when calling testGroupParameters(Async)"); @@ -1646,12 +1646,12 @@ public class FakeApi { } - private ApiResponse testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { + private ApiResponse 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 ApiException { okhttp3.Call localVarCall = testGroupParametersValidateBeforeCall(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, null); return localVarApiClient.execute(localVarCall); } - private okhttp3.Call testGroupParametersAsync(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testGroupParametersAsync(@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, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testGroupParametersValidateBeforeCall(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -1659,14 +1659,20 @@ public class FakeApi { } public class APItestGroupParametersRequest { + @javax.annotation.Nonnull private final Integer requiredStringGroup; + @javax.annotation.Nonnull private final Boolean requiredBooleanGroup; + @javax.annotation.Nonnull private final Long requiredInt64Group; + @javax.annotation.Nullable private Integer stringGroup; + @javax.annotation.Nullable private Boolean booleanGroup; + @javax.annotation.Nullable private Long int64Group; - private APItestGroupParametersRequest(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group) { + private APItestGroupParametersRequest(@javax.annotation.Nonnull Integer requiredStringGroup, @javax.annotation.Nonnull Boolean requiredBooleanGroup, @javax.annotation.Nonnull Long requiredInt64Group) { this.requiredStringGroup = requiredStringGroup; this.requiredBooleanGroup = requiredBooleanGroup; this.requiredInt64Group = requiredInt64Group; @@ -1677,7 +1683,7 @@ public class FakeApi { * @param stringGroup String in group parameters (optional) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest stringGroup(Integer stringGroup) { + public APItestGroupParametersRequest stringGroup(@javax.annotation.Nullable Integer stringGroup) { this.stringGroup = stringGroup; return this; } @@ -1687,7 +1693,7 @@ public class FakeApi { * @param booleanGroup Boolean in group parameters (optional) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest booleanGroup(Boolean booleanGroup) { + public APItestGroupParametersRequest booleanGroup(@javax.annotation.Nullable Boolean booleanGroup) { this.booleanGroup = booleanGroup; return this; } @@ -1697,7 +1703,7 @@ public class FakeApi { * @param int64Group Integer in group parameters (optional) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest int64Group(Long int64Group) { + public APItestGroupParametersRequest int64Group(@javax.annotation.Nullable Long int64Group) { this.int64Group = int64Group; return this; } @@ -1778,7 +1784,7 @@ public class FakeApi { 400 Something wrong - */ - public APItestGroupParametersRequest testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group) { + public APItestGroupParametersRequest testGroupParameters(@javax.annotation.Nonnull Integer requiredStringGroup, @javax.annotation.Nonnull Boolean requiredBooleanGroup, @javax.annotation.Nonnull Long requiredInt64Group) { return new APItestGroupParametersRequest(requiredStringGroup, requiredBooleanGroup, requiredInt64Group); } /** @@ -1794,7 +1800,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call testInlineAdditionalPropertiesCall(Map param, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testInlineAdditionalPropertiesCall(@javax.annotation.Nonnull Map param, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1847,7 +1853,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testInlineAdditionalPropertiesValidateBeforeCall(Map param, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testInlineAdditionalPropertiesValidateBeforeCall(@javax.annotation.Nonnull Map param, final ApiCallback _callback) throws ApiException { // verify the required parameter 'param' is set if (param == null) { throw new ApiException("Missing the required parameter 'param' when calling testInlineAdditionalProperties(Async)"); @@ -1869,7 +1875,7 @@ public class FakeApi { 200 successful operation - */ - public void testInlineAdditionalProperties(Map param) throws ApiException { + public void testInlineAdditionalProperties(@javax.annotation.Nonnull Map param) throws ApiException { testInlineAdditionalPropertiesWithHttpInfo(param); } @@ -1886,7 +1892,7 @@ public class FakeApi { 200 successful operation - */ - public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map param) throws ApiException { + public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull Map param) throws ApiException { okhttp3.Call localVarCall = testInlineAdditionalPropertiesValidateBeforeCall(param, null); return localVarApiClient.execute(localVarCall); } @@ -1905,7 +1911,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call testInlineAdditionalPropertiesAsync(Map param, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testInlineAdditionalPropertiesAsync(@javax.annotation.Nonnull Map param, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testInlineAdditionalPropertiesValidateBeforeCall(param, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -1925,7 +1931,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call testJsonFormDataCall(String param, String param2, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testJsonFormDataCall(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1986,7 +1992,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testJsonFormDataValidateBeforeCall(String param, String param2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testJsonFormDataValidateBeforeCall(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'param' is set if (param == null) { throw new ApiException("Missing the required parameter 'param' when calling testJsonFormData(Async)"); @@ -2014,7 +2020,7 @@ public class FakeApi { 200 successful operation - */ - public void testJsonFormData(String param, String param2) throws ApiException { + public void testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws ApiException { testJsonFormDataWithHttpInfo(param, param2); } @@ -2032,7 +2038,7 @@ public class FakeApi { 200 successful operation - */ - public ApiResponse testJsonFormDataWithHttpInfo(String param, String param2) throws ApiException { + public ApiResponse testJsonFormDataWithHttpInfo(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws ApiException { okhttp3.Call localVarCall = testJsonFormDataValidateBeforeCall(param, param2, null); return localVarApiClient.execute(localVarCall); } @@ -2052,7 +2058,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call testJsonFormDataAsync(String param, String param2, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testJsonFormDataAsync(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testJsonFormDataValidateBeforeCall(param, param2, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -2075,7 +2081,7 @@ public class FakeApi { 200 Success - */ - public okhttp3.Call testQueryParameterCollectionFormatCall(List pipe, List ioutil, List http, List url, List context, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testQueryParameterCollectionFormatCall(@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, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2132,7 +2138,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testQueryParameterCollectionFormatValidateBeforeCall(List pipe, List ioutil, List http, List url, List context, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testQueryParameterCollectionFormatValidateBeforeCall(@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, final ApiCallback _callback) throws ApiException { // verify the required parameter 'pipe' is set if (pipe == null) { throw new ApiException("Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat(Async)"); @@ -2178,7 +2184,7 @@ public class FakeApi { 200 Success - */ - public void testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context) throws ApiException { + 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) throws ApiException { testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context); } @@ -2199,7 +2205,7 @@ public class FakeApi { 200 Success - */ - public ApiResponse testQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context) throws ApiException { + public ApiResponse 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) throws ApiException { okhttp3.Call localVarCall = testQueryParameterCollectionFormatValidateBeforeCall(pipe, ioutil, http, url, context, null); return localVarApiClient.execute(localVarCall); } @@ -2222,7 +2228,7 @@ public class FakeApi { 200 Success - */ - public okhttp3.Call testQueryParameterCollectionFormatAsync(List pipe, List ioutil, List http, List url, List context, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testQueryParameterCollectionFormatAsync(@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, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testQueryParameterCollectionFormatValidateBeforeCall(pipe, ioutil, http, url, context, _callback); localVarApiClient.executeAsync(localVarCall, _callback); diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index af02147469b..d5af0617ef4 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -88,7 +88,7 @@ public class FakeClassnameTags123Api { 200 successful operation - */ - public okhttp3.Call testClassnameCall(Client body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testClassnameCall(@javax.annotation.Nonnull Client body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -142,7 +142,7 @@ public class FakeClassnameTags123Api { } @SuppressWarnings("rawtypes") - private okhttp3.Call testClassnameValidateBeforeCall(Client body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testClassnameValidateBeforeCall(@javax.annotation.Nonnull Client body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling testClassname(Async)"); @@ -165,7 +165,7 @@ public class FakeClassnameTags123Api { 200 successful operation - */ - public Client testClassname(Client body) throws ApiException { + public Client testClassname(@javax.annotation.Nonnull Client body) throws ApiException { ApiResponse localVarResp = testClassnameWithHttpInfo(body); return localVarResp.getData(); } @@ -183,7 +183,7 @@ public class FakeClassnameTags123Api { 200 successful operation - */ - public ApiResponse testClassnameWithHttpInfo(Client body) throws ApiException { + public ApiResponse testClassnameWithHttpInfo(@javax.annotation.Nonnull Client body) throws ApiException { okhttp3.Call localVarCall = testClassnameValidateBeforeCall(body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -203,7 +203,7 @@ public class FakeClassnameTags123Api { 200 successful operation - */ - public okhttp3.Call testClassnameAsync(Client body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testClassnameAsync(@javax.annotation.Nonnull Client body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testClassnameValidateBeforeCall(body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/PetApi.java index df22ec9518f..29bb0e9a26e 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/PetApi.java @@ -92,7 +92,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call addPetCall(Pet body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addPetCall(@javax.annotation.Nonnull Pet body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -146,7 +146,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call addPetValidateBeforeCall(Pet body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addPetValidateBeforeCall(@javax.annotation.Nonnull Pet body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling addPet(Async)"); @@ -169,7 +169,7 @@ public class PetApi { 405 Invalid input - */ - public void addPet(Pet body) throws ApiException { + public void addPet(@javax.annotation.Nonnull Pet body) throws ApiException { addPetWithHttpInfo(body); } @@ -187,7 +187,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse addPetWithHttpInfo(Pet body) throws ApiException { + public ApiResponse addPetWithHttpInfo(@javax.annotation.Nonnull Pet body) throws ApiException { okhttp3.Call localVarCall = addPetValidateBeforeCall(body, null); return localVarApiClient.execute(localVarCall); } @@ -207,7 +207,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call addPetAsync(Pet body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addPetAsync(@javax.annotation.Nonnull Pet body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = addPetValidateBeforeCall(body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -228,7 +228,7 @@ public class PetApi { 400 Invalid pet value - */ - public okhttp3.Call deletePetCall(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deletePetCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -282,7 +282,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deletePetValidateBeforeCall(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deletePetValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling deletePet(Async)"); @@ -306,7 +306,7 @@ public class PetApi { 400 Invalid pet value - */ - public void deletePet(Long petId, String apiKey) throws ApiException { + public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { deletePetWithHttpInfo(petId, apiKey); } @@ -325,7 +325,7 @@ public class PetApi { 400 Invalid pet value - */ - public ApiResponse deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException { + public ApiResponse deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { okhttp3.Call localVarCall = deletePetValidateBeforeCall(petId, apiKey, null); return localVarApiClient.execute(localVarCall); } @@ -346,7 +346,7 @@ public class PetApi { 400 Invalid pet value - */ - public okhttp3.Call deletePetAsync(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deletePetAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deletePetValidateBeforeCall(petId, apiKey, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -366,7 +366,7 @@ public class PetApi { 400 Invalid status value - */ - public okhttp3.Call findPetsByStatusCall(List status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findPetsByStatusCall(@javax.annotation.Nonnull List status, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -421,7 +421,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call findPetsByStatusValidateBeforeCall(List status, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findPetsByStatusValidateBeforeCall(@javax.annotation.Nonnull List status, final ApiCallback _callback) throws ApiException { // verify the required parameter 'status' is set if (status == null) { throw new ApiException("Missing the required parameter 'status' when calling findPetsByStatus(Async)"); @@ -445,7 +445,7 @@ public class PetApi { 400 Invalid status value - */ - public List findPetsByStatus(List status) throws ApiException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws ApiException { ApiResponse> localVarResp = findPetsByStatusWithHttpInfo(status); return localVarResp.getData(); } @@ -464,7 +464,7 @@ public class PetApi { 400 Invalid status value - */ - public ApiResponse> findPetsByStatusWithHttpInfo(List status) throws ApiException { + public ApiResponse> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws ApiException { okhttp3.Call localVarCall = findPetsByStatusValidateBeforeCall(status, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -485,7 +485,7 @@ public class PetApi { 400 Invalid status value - */ - public okhttp3.Call findPetsByStatusAsync(List status, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call findPetsByStatusAsync(@javax.annotation.Nonnull List status, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = findPetsByStatusValidateBeforeCall(status, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); @@ -508,7 +508,7 @@ public class PetApi { * @deprecated */ @Deprecated - public okhttp3.Call findPetsByTagsCall(Set tags, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findPetsByTagsCall(@javax.annotation.Nonnull Set tags, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -564,7 +564,7 @@ public class PetApi { @Deprecated @SuppressWarnings("rawtypes") - private okhttp3.Call findPetsByTagsValidateBeforeCall(Set tags, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findPetsByTagsValidateBeforeCall(@javax.annotation.Nonnull Set tags, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tags' is set if (tags == null) { throw new ApiException("Missing the required parameter 'tags' when calling findPetsByTags(Async)"); @@ -590,7 +590,7 @@ public class PetApi { * @deprecated */ @Deprecated - public Set findPetsByTags(Set tags) throws ApiException { + public Set findPetsByTags(@javax.annotation.Nonnull Set tags) throws ApiException { ApiResponse> localVarResp = findPetsByTagsWithHttpInfo(tags); return localVarResp.getData(); } @@ -611,7 +611,7 @@ public class PetApi { * @deprecated */ @Deprecated - public ApiResponse> findPetsByTagsWithHttpInfo(Set tags) throws ApiException { + public ApiResponse> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull Set tags) throws ApiException { okhttp3.Call localVarCall = findPetsByTagsValidateBeforeCall(tags, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -634,7 +634,7 @@ public class PetApi { * @deprecated */ @Deprecated - public okhttp3.Call findPetsByTagsAsync(Set tags, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call findPetsByTagsAsync(@javax.annotation.Nonnull Set tags, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = findPetsByTagsValidateBeforeCall(tags, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); @@ -656,7 +656,7 @@ public class PetApi { 404 Pet not found - */ - public okhttp3.Call getPetByIdCall(Long petId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPetByIdCall(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -711,7 +711,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getPetByIdValidateBeforeCall(Long petId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPetByIdValidateBeforeCall(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling getPetById(Async)"); @@ -736,7 +736,7 @@ public class PetApi { 404 Pet not found - */ - public Pet getPetById(Long petId) throws ApiException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws ApiException { ApiResponse localVarResp = getPetByIdWithHttpInfo(petId); return localVarResp.getData(); } @@ -756,7 +756,7 @@ public class PetApi { 404 Pet not found - */ - public ApiResponse getPetByIdWithHttpInfo(Long petId) throws ApiException { + public ApiResponse getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws ApiException { okhttp3.Call localVarCall = getPetByIdValidateBeforeCall(petId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -778,7 +778,7 @@ public class PetApi { 404 Pet not found - */ - public okhttp3.Call getPetByIdAsync(Long petId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPetByIdAsync(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPetByIdValidateBeforeCall(petId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -801,7 +801,7 @@ public class PetApi { 405 Validation exception - */ - public okhttp3.Call updatePetCall(Pet body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetCall(@javax.annotation.Nonnull Pet body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -855,7 +855,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updatePetValidateBeforeCall(Pet body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updatePetValidateBeforeCall(@javax.annotation.Nonnull Pet body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling updatePet(Async)"); @@ -880,7 +880,7 @@ public class PetApi { 405 Validation exception - */ - public void updatePet(Pet body) throws ApiException { + public void updatePet(@javax.annotation.Nonnull Pet body) throws ApiException { updatePetWithHttpInfo(body); } @@ -900,7 +900,7 @@ public class PetApi { 405 Validation exception - */ - public ApiResponse updatePetWithHttpInfo(Pet body) throws ApiException { + public ApiResponse updatePetWithHttpInfo(@javax.annotation.Nonnull Pet body) throws ApiException { okhttp3.Call localVarCall = updatePetValidateBeforeCall(body, null); return localVarApiClient.execute(localVarCall); } @@ -922,7 +922,7 @@ public class PetApi { 405 Validation exception - */ - public okhttp3.Call updatePetAsync(Pet body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetAsync(@javax.annotation.Nonnull Pet body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updatePetValidateBeforeCall(body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -943,7 +943,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call updatePetWithFormCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetWithFormCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1005,7 +1005,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updatePetWithFormValidateBeforeCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updatePetWithFormValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling updatePetWithForm(Async)"); @@ -1029,7 +1029,7 @@ public class PetApi { 405 Invalid input - */ - public void updatePetWithForm(Long petId, String name, String status) throws ApiException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -1048,7 +1048,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException { + public ApiResponse updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { okhttp3.Call localVarCall = updatePetWithFormValidateBeforeCall(petId, name, status, null); return localVarApiClient.execute(localVarCall); } @@ -1069,7 +1069,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call updatePetWithFormAsync(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetWithFormAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updatePetWithFormValidateBeforeCall(petId, name, status, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -1090,7 +1090,7 @@ public class PetApi { 200 successful operation - */ - public okhttp3.Call uploadFileCall(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1153,7 +1153,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call uploadFileValidateBeforeCall(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + private okhttp3.Call uploadFileValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling uploadFile(Async)"); @@ -1178,7 +1178,7 @@ public class PetApi { 200 successful operation - */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws ApiException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { ApiResponse localVarResp = uploadFileWithHttpInfo(petId, additionalMetadata, _file); return localVarResp.getData(); } @@ -1198,7 +1198,7 @@ public class PetApi { 200 successful operation - */ - public ApiResponse uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws ApiException { + public ApiResponse uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { okhttp3.Call localVarCall = uploadFileValidateBeforeCall(petId, additionalMetadata, _file, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1220,7 +1220,7 @@ public class PetApi { 200 successful operation - */ - public okhttp3.Call uploadFileAsync(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = uploadFileValidateBeforeCall(petId, additionalMetadata, _file, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1242,7 +1242,7 @@ public class PetApi { 200 successful operation - */ - public okhttp3.Call uploadFileWithRequiredFileCall(Long petId, File requiredFile, String additionalMetadata, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileWithRequiredFileCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1305,7 +1305,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call uploadFileWithRequiredFileValidateBeforeCall(Long petId, File requiredFile, String additionalMetadata, final ApiCallback _callback) throws ApiException { + private okhttp3.Call uploadFileWithRequiredFileValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling uploadFileWithRequiredFile(Async)"); @@ -1335,7 +1335,7 @@ public class PetApi { 200 successful operation - */ - public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws ApiException { + public ModelApiResponse uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws ApiException { ApiResponse localVarResp = uploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata); return localVarResp.getData(); } @@ -1355,7 +1355,7 @@ public class PetApi { 200 successful operation - */ - public ApiResponse uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws ApiException { + public ApiResponse uploadFileWithRequiredFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws ApiException { okhttp3.Call localVarCall = uploadFileWithRequiredFileValidateBeforeCall(petId, requiredFile, additionalMetadata, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1377,7 +1377,7 @@ public class PetApi { 200 successful operation - */ - public okhttp3.Call uploadFileWithRequiredFileAsync(Long petId, File requiredFile, String additionalMetadata, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileWithRequiredFileAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = uploadFileWithRequiredFileValidateBeforeCall(petId, requiredFile, additionalMetadata, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/StoreApi.java index b67a4fa67ed..7afb9e20aa2 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/StoreApi.java @@ -89,7 +89,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call deleteOrderCall(String orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteOrderCall(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -142,7 +142,7 @@ public class StoreApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteOrderValidateBeforeCall(String orderId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteOrderValidateBeforeCall(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new ApiException("Missing the required parameter 'orderId' when calling deleteOrder(Async)"); @@ -165,7 +165,7 @@ public class StoreApi { 404 Order not found - */ - public void deleteOrder(String orderId) throws ApiException { + public void deleteOrder(@javax.annotation.Nonnull String orderId) throws ApiException { deleteOrderWithHttpInfo(orderId); } @@ -183,7 +183,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse deleteOrderWithHttpInfo(String orderId) throws ApiException { + public ApiResponse deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws ApiException { okhttp3.Call localVarCall = deleteOrderValidateBeforeCall(orderId, null); return localVarApiClient.execute(localVarCall); } @@ -203,7 +203,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call deleteOrderAsync(String orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteOrderAsync(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteOrderValidateBeforeCall(orderId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -349,7 +349,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call getOrderByIdCall(Long orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getOrderByIdCall(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -404,7 +404,7 @@ public class StoreApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getOrderByIdValidateBeforeCall(Long orderId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getOrderByIdValidateBeforeCall(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new ApiException("Missing the required parameter 'orderId' when calling getOrderById(Async)"); @@ -429,7 +429,7 @@ public class StoreApi { 404 Order not found - */ - public Order getOrderById(Long orderId) throws ApiException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws ApiException { ApiResponse localVarResp = getOrderByIdWithHttpInfo(orderId); return localVarResp.getData(); } @@ -449,7 +449,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse getOrderByIdWithHttpInfo(Long orderId) throws ApiException { + public ApiResponse getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws ApiException { okhttp3.Call localVarCall = getOrderByIdValidateBeforeCall(orderId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -471,7 +471,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call getOrderByIdAsync(Long orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getOrderByIdAsync(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getOrderByIdValidateBeforeCall(orderId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -492,7 +492,7 @@ public class StoreApi { 400 Invalid Order - */ - public okhttp3.Call placeOrderCall(Order body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call placeOrderCall(@javax.annotation.Nonnull Order body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -546,7 +546,7 @@ public class StoreApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call placeOrderValidateBeforeCall(Order body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call placeOrderValidateBeforeCall(@javax.annotation.Nonnull Order body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling placeOrder(Async)"); @@ -570,7 +570,7 @@ public class StoreApi { 400 Invalid Order - */ - public Order placeOrder(Order body) throws ApiException { + public Order placeOrder(@javax.annotation.Nonnull Order body) throws ApiException { ApiResponse localVarResp = placeOrderWithHttpInfo(body); return localVarResp.getData(); } @@ -589,7 +589,7 @@ public class StoreApi { 400 Invalid Order - */ - public ApiResponse placeOrderWithHttpInfo(Order body) throws ApiException { + public ApiResponse placeOrderWithHttpInfo(@javax.annotation.Nonnull Order body) throws ApiException { okhttp3.Call localVarCall = placeOrderValidateBeforeCall(body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -610,7 +610,7 @@ public class StoreApi { 400 Invalid Order - */ - public okhttp3.Call placeOrderAsync(Order body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call placeOrderAsync(@javax.annotation.Nonnull Order body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = placeOrderValidateBeforeCall(body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/UserApi.java index 0d70420710d..8187a0748fe 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/UserApi.java @@ -89,7 +89,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUserCall(User body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUserCall(@javax.annotation.Nonnull User body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -141,7 +141,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createUserValidateBeforeCall(User body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUserValidateBeforeCall(@javax.annotation.Nonnull User body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createUser(Async)"); @@ -163,7 +163,7 @@ public class UserApi { 0 successful operation - */ - public void createUser(User body) throws ApiException { + public void createUser(@javax.annotation.Nonnull User body) throws ApiException { createUserWithHttpInfo(body); } @@ -180,7 +180,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUserWithHttpInfo(User body) throws ApiException { + public ApiResponse createUserWithHttpInfo(@javax.annotation.Nonnull User body) throws ApiException { okhttp3.Call localVarCall = createUserValidateBeforeCall(body, null); return localVarApiClient.execute(localVarCall); } @@ -199,7 +199,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUserAsync(User body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUserAsync(@javax.annotation.Nonnull User body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUserValidateBeforeCall(body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -218,7 +218,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithArrayInputCall(List body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithArrayInputCall(@javax.annotation.Nonnull List body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -270,7 +270,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createUsersWithArrayInputValidateBeforeCall(List body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUsersWithArrayInputValidateBeforeCall(@javax.annotation.Nonnull List body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createUsersWithArrayInput(Async)"); @@ -292,7 +292,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithArrayInput(List body) throws ApiException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List body) throws ApiException { createUsersWithArrayInputWithHttpInfo(body); } @@ -309,7 +309,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithArrayInputWithHttpInfo(List body) throws ApiException { + public ApiResponse createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List body) throws ApiException { okhttp3.Call localVarCall = createUsersWithArrayInputValidateBeforeCall(body, null); return localVarApiClient.execute(localVarCall); } @@ -328,7 +328,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithArrayInputAsync(List body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithArrayInputAsync(@javax.annotation.Nonnull List body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUsersWithArrayInputValidateBeforeCall(body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -347,7 +347,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithListInputCall(List body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithListInputCall(@javax.annotation.Nonnull List body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -399,7 +399,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createUsersWithListInputValidateBeforeCall(List body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUsersWithListInputValidateBeforeCall(@javax.annotation.Nonnull List body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createUsersWithListInput(Async)"); @@ -421,7 +421,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithListInput(List body) throws ApiException { + public void createUsersWithListInput(@javax.annotation.Nonnull List body) throws ApiException { createUsersWithListInputWithHttpInfo(body); } @@ -438,7 +438,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithListInputWithHttpInfo(List body) throws ApiException { + public ApiResponse createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List body) throws ApiException { okhttp3.Call localVarCall = createUsersWithListInputValidateBeforeCall(body, null); return localVarApiClient.execute(localVarCall); } @@ -457,7 +457,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithListInputAsync(List body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithListInputAsync(@javax.annotation.Nonnull List body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUsersWithListInputValidateBeforeCall(body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -477,7 +477,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call deleteUserCall(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUserCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -530,7 +530,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteUserValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteUserValidateBeforeCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling deleteUser(Async)"); @@ -553,7 +553,7 @@ public class UserApi { 404 User not found - */ - public void deleteUser(String username) throws ApiException { + public void deleteUser(@javax.annotation.Nonnull String username) throws ApiException { deleteUserWithHttpInfo(username); } @@ -571,7 +571,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse deleteUserWithHttpInfo(String username) throws ApiException { + public ApiResponse deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { okhttp3.Call localVarCall = deleteUserValidateBeforeCall(username, null); return localVarApiClient.execute(localVarCall); } @@ -591,7 +591,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call deleteUserAsync(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUserAsync(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteUserValidateBeforeCall(username, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -612,7 +612,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call getUserByNameCall(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUserByNameCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -667,7 +667,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getUserByNameValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserByNameValidateBeforeCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling getUserByName(Async)"); @@ -692,7 +692,7 @@ public class UserApi { 404 User not found - */ - public User getUserByName(String username) throws ApiException { + public User getUserByName(@javax.annotation.Nonnull String username) throws ApiException { ApiResponse localVarResp = getUserByNameWithHttpInfo(username); return localVarResp.getData(); } @@ -712,7 +712,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse getUserByNameWithHttpInfo(String username) throws ApiException { + public ApiResponse getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { okhttp3.Call localVarCall = getUserByNameValidateBeforeCall(username, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -734,7 +734,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call getUserByNameAsync(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUserByNameAsync(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserByNameValidateBeforeCall(username, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -756,7 +756,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public okhttp3.Call loginUserCall(String username, String password, final ApiCallback _callback) throws ApiException { + public okhttp3.Call loginUserCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -812,7 +812,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call loginUserValidateBeforeCall(String username, String password, final ApiCallback _callback) throws ApiException { + private okhttp3.Call loginUserValidateBeforeCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling loginUser(Async)"); @@ -842,7 +842,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public String loginUser(String username, String password) throws ApiException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { ApiResponse localVarResp = loginUserWithHttpInfo(username, password); return localVarResp.getData(); } @@ -862,7 +862,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public ApiResponse loginUserWithHttpInfo(String username, String password) throws ApiException { + public ApiResponse loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { okhttp3.Call localVarCall = loginUserValidateBeforeCall(username, password, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -884,7 +884,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public okhttp3.Call loginUserAsync(String username, String password, final ApiCallback _callback) throws ApiException { + public okhttp3.Call loginUserAsync(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = loginUserValidateBeforeCall(username, password, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1026,7 +1026,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call updateUserCall(String username, User body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateUserCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1079,7 +1079,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updateUserValidateBeforeCall(String username, User body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateUserValidateBeforeCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling updateUser(Async)"); @@ -1108,7 +1108,7 @@ public class UserApi { 404 User not found - */ - public void updateUser(String username, User body) throws ApiException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User body) throws ApiException { updateUserWithHttpInfo(username, body); } @@ -1127,7 +1127,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse updateUserWithHttpInfo(String username, User body) throws ApiException { + public ApiResponse updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User body) throws ApiException { okhttp3.Call localVarCall = updateUserValidateBeforeCall(username, body, null); return localVarApiClient.execute(localVarCall); } @@ -1148,7 +1148,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call updateUserAsync(String username, User body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateUserAsync(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateUserValidateBeforeCall(username, body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/api/PetApi.java index b61c178f663..3733a6f9d4e 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/api/PetApi.java @@ -74,7 +74,7 @@ public class PetApi { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call addPetCall(Pet pet, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addPetCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -122,7 +122,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call addPetValidateBeforeCall(Pet pet, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addPetValidateBeforeCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { // verify the required parameter 'pet' is set if (pet == null) { throw new ApiException("Missing the required parameter 'pet' when calling addPet(Async)"); @@ -133,13 +133,13 @@ public class PetApi { } - private ApiResponse addPetWithHttpInfo(Pet pet) throws ApiException { + private ApiResponse addPetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException { okhttp3.Call localVarCall = addPetValidateBeforeCall(pet, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call addPetAsync(Pet pet, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addPetAsync(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = addPetValidateBeforeCall(pet, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -148,9 +148,10 @@ public class PetApi { } public class APIaddPetRequest { + @javax.annotation.Nonnull private final Pet pet; - private APIaddPetRequest(Pet pet) { + private APIaddPetRequest(@javax.annotation.Nonnull Pet pet) { this.pet = pet; } @@ -235,10 +236,10 @@ public class PetApi { 405 Invalid input - */ - public APIaddPetRequest addPet(Pet pet) { + public APIaddPetRequest addPet(@javax.annotation.Nonnull Pet pet) { return new APIaddPetRequest(pet); } - private okhttp3.Call deletePetCall(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deletePetCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -288,7 +289,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deletePetValidateBeforeCall(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deletePetValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling deletePet(Async)"); @@ -299,12 +300,12 @@ public class PetApi { } - private ApiResponse deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException { + private ApiResponse deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { okhttp3.Call localVarCall = deletePetValidateBeforeCall(petId, apiKey, null); return localVarApiClient.execute(localVarCall); } - private okhttp3.Call deletePetAsync(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deletePetAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deletePetValidateBeforeCall(petId, apiKey, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -312,10 +313,12 @@ public class PetApi { } public class APIdeletePetRequest { + @javax.annotation.Nonnull private final Long petId; + @javax.annotation.Nullable private String apiKey; - private APIdeletePetRequest(Long petId) { + private APIdeletePetRequest(@javax.annotation.Nonnull Long petId) { this.petId = petId; } @@ -324,7 +327,7 @@ public class PetApi { * @param apiKey (optional) * @return APIdeletePetRequest */ - public APIdeletePetRequest apiKey(String apiKey) { + public APIdeletePetRequest apiKey(@javax.annotation.Nullable String apiKey) { this.apiKey = apiKey; return this; } @@ -403,10 +406,10 @@ public class PetApi { 400 Invalid pet value - */ - public APIdeletePetRequest deletePet(Long petId) { + public APIdeletePetRequest deletePet(@javax.annotation.Nonnull Long petId) { return new APIdeletePetRequest(petId); } - private okhttp3.Call findPetsByStatusCall(List status, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findPetsByStatusCall(@javax.annotation.Nonnull List status, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -456,7 +459,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call findPetsByStatusValidateBeforeCall(List status, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findPetsByStatusValidateBeforeCall(@javax.annotation.Nonnull List status, final ApiCallback _callback) throws ApiException { // verify the required parameter 'status' is set if (status == null) { throw new ApiException("Missing the required parameter 'status' when calling findPetsByStatus(Async)"); @@ -467,13 +470,13 @@ public class PetApi { } - private ApiResponse> findPetsByStatusWithHttpInfo(List status) throws ApiException { + private ApiResponse> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws ApiException { okhttp3.Call localVarCall = findPetsByStatusValidateBeforeCall(status, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call findPetsByStatusAsync(List status, final ApiCallback> _callback) throws ApiException { + private okhttp3.Call findPetsByStatusAsync(@javax.annotation.Nonnull List status, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = findPetsByStatusValidateBeforeCall(status, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); @@ -482,9 +485,10 @@ public class PetApi { } public class APIfindPetsByStatusRequest { + @javax.annotation.Nonnull private final List status; - private APIfindPetsByStatusRequest(List status) { + private APIfindPetsByStatusRequest(@javax.annotation.Nonnull List status) { this.status = status; } @@ -569,10 +573,10 @@ public class PetApi { 400 Invalid status value - */ - public APIfindPetsByStatusRequest findPetsByStatus(List status) { + public APIfindPetsByStatusRequest findPetsByStatus(@javax.annotation.Nonnull List status) { return new APIfindPetsByStatusRequest(status); } - private okhttp3.Call findPetsByTagsCall(List tags, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findPetsByTagsCall(@javax.annotation.Nonnull List tags, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -623,7 +627,7 @@ public class PetApi { @Deprecated @SuppressWarnings("rawtypes") - private okhttp3.Call findPetsByTagsValidateBeforeCall(List tags, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findPetsByTagsValidateBeforeCall(@javax.annotation.Nonnull List tags, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tags' is set if (tags == null) { throw new ApiException("Missing the required parameter 'tags' when calling findPetsByTags(Async)"); @@ -634,13 +638,13 @@ public class PetApi { } - private ApiResponse> findPetsByTagsWithHttpInfo(List tags) throws ApiException { + private ApiResponse> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull List tags) throws ApiException { okhttp3.Call localVarCall = findPetsByTagsValidateBeforeCall(tags, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call findPetsByTagsAsync(List tags, final ApiCallback> _callback) throws ApiException { + private okhttp3.Call findPetsByTagsAsync(@javax.annotation.Nonnull List tags, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = findPetsByTagsValidateBeforeCall(tags, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); @@ -649,9 +653,10 @@ public class PetApi { } public class APIfindPetsByTagsRequest { + @javax.annotation.Nonnull private final List tags; - private APIfindPetsByTagsRequest(List tags) { + private APIfindPetsByTagsRequest(@javax.annotation.Nonnull List tags) { this.tags = tags; } @@ -746,10 +751,10 @@ public class PetApi { * @deprecated */ @Deprecated - public APIfindPetsByTagsRequest findPetsByTags(List tags) { + public APIfindPetsByTagsRequest findPetsByTags(@javax.annotation.Nonnull List tags) { return new APIfindPetsByTagsRequest(tags); } - private okhttp3.Call getPetByIdCall(Long petId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPetByIdCall(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -796,7 +801,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getPetByIdValidateBeforeCall(Long petId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPetByIdValidateBeforeCall(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling getPetById(Async)"); @@ -807,13 +812,13 @@ public class PetApi { } - private ApiResponse getPetByIdWithHttpInfo(Long petId) throws ApiException { + private ApiResponse getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws ApiException { okhttp3.Call localVarCall = getPetByIdValidateBeforeCall(petId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getPetByIdAsync(Long petId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPetByIdAsync(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPetByIdValidateBeforeCall(petId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -822,9 +827,10 @@ public class PetApi { } public class APIgetPetByIdRequest { + @javax.annotation.Nonnull private final Long petId; - private APIgetPetByIdRequest(Long petId) { + private APIgetPetByIdRequest(@javax.annotation.Nonnull Long petId) { this.petId = petId; } @@ -914,10 +920,10 @@ public class PetApi { 404 Pet not found - */ - public APIgetPetByIdRequest getPetById(Long petId) { + public APIgetPetByIdRequest getPetById(@javax.annotation.Nonnull Long petId) { return new APIgetPetByIdRequest(petId); } - private okhttp3.Call updatePetCall(Pet pet, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updatePetCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -965,7 +971,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updatePetValidateBeforeCall(Pet pet, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updatePetValidateBeforeCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { // verify the required parameter 'pet' is set if (pet == null) { throw new ApiException("Missing the required parameter 'pet' when calling updatePet(Async)"); @@ -976,13 +982,13 @@ public class PetApi { } - private ApiResponse updatePetWithHttpInfo(Pet pet) throws ApiException { + private ApiResponse updatePetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException { okhttp3.Call localVarCall = updatePetValidateBeforeCall(pet, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call updatePetAsync(Pet pet, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updatePetAsync(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updatePetValidateBeforeCall(pet, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -991,9 +997,10 @@ public class PetApi { } public class APIupdatePetRequest { + @javax.annotation.Nonnull private final Pet pet; - private APIupdatePetRequest(Pet pet) { + private APIupdatePetRequest(@javax.annotation.Nonnull Pet pet) { this.pet = pet; } @@ -1088,7 +1095,7 @@ public class PetApi { 405 Validation exception - */ - public APIupdatePetRequest updatePet(Pet pet) { + public APIupdatePetRequest updatePet(@javax.annotation.Nonnull Pet pet) { return new APIupdatePetRequest(pet); } /** @@ -1106,7 +1113,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call updatePetWithFormCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetWithFormCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1160,7 +1167,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updatePetWithFormValidateBeforeCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updatePetWithFormValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling updatePetWithForm(Async)"); @@ -1184,7 +1191,7 @@ public class PetApi { 405 Invalid input - */ - public void updatePetWithForm(Long petId, String name, String status) throws ApiException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -1203,7 +1210,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException { + public ApiResponse updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { okhttp3.Call localVarCall = updatePetWithFormValidateBeforeCall(petId, name, status, null); return localVarApiClient.execute(localVarCall); } @@ -1224,13 +1231,13 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call updatePetWithFormAsync(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetWithFormAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updatePetWithFormValidateBeforeCall(petId, name, status, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } - private okhttp3.Call uploadFileCall(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + private okhttp3.Call uploadFileCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1285,7 +1292,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call uploadFileValidateBeforeCall(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + private okhttp3.Call uploadFileValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling uploadFile(Async)"); @@ -1296,13 +1303,13 @@ public class PetApi { } - private ApiResponse uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws ApiException { + private ApiResponse uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { okhttp3.Call localVarCall = uploadFileValidateBeforeCall(petId, additionalMetadata, _file, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call uploadFileAsync(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + private okhttp3.Call uploadFileAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = uploadFileValidateBeforeCall(petId, additionalMetadata, _file, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1311,11 +1318,14 @@ public class PetApi { } public class APIuploadFileRequest { + @javax.annotation.Nonnull private final Long petId; + @javax.annotation.Nullable private String additionalMetadata; + @javax.annotation.Nullable private File _file; - private APIuploadFileRequest(Long petId) { + private APIuploadFileRequest(@javax.annotation.Nonnull Long petId) { this.petId = petId; } @@ -1324,7 +1334,7 @@ public class PetApi { * @param additionalMetadata Additional data to pass to server (optional) * @return APIuploadFileRequest */ - public APIuploadFileRequest additionalMetadata(String additionalMetadata) { + public APIuploadFileRequest additionalMetadata(@javax.annotation.Nullable String additionalMetadata) { this.additionalMetadata = additionalMetadata; return this; } @@ -1334,7 +1344,7 @@ public class PetApi { * @param _file file to upload (optional) * @return APIuploadFileRequest */ - public APIuploadFileRequest _file(File _file) { + public APIuploadFileRequest _file(@javax.annotation.Nullable File _file) { this._file = _file; return this; } @@ -1415,7 +1425,7 @@ public class PetApi { 200 successful operation - */ - public APIuploadFileRequest uploadFile(Long petId) { + public APIuploadFileRequest uploadFile(@javax.annotation.Nonnull Long petId) { return new APIuploadFileRequest(petId); } } diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/api/PetApi.java index 19783d0f9c3..2ec5099b45a 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/api/PetApi.java @@ -87,7 +87,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call addPetCall(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addPetCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -133,7 +133,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call addPetValidateBeforeCall(Pet pet, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addPetValidateBeforeCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { // verify the required parameter 'pet' is set if (pet == null) { throw new ApiException("Missing the required parameter 'pet' when calling addPet(Async)"); @@ -155,7 +155,7 @@ public class PetApi { 405 Invalid input - */ - public void addPet(Pet pet) throws ApiException { + public void addPet(@javax.annotation.Nonnull Pet pet) throws ApiException { addPetWithHttpInfo(pet); } @@ -172,7 +172,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse addPetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse addPetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException { okhttp3.Call localVarCall = addPetValidateBeforeCall(pet, null); return localVarApiClient.execute(localVarCall); } @@ -191,7 +191,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call addPetAsync(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addPetAsync(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = addPetValidateBeforeCall(pet, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -211,7 +211,7 @@ public class PetApi { 400 Invalid pet value - */ - public okhttp3.Call deletePetCall(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deletePetCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -261,7 +261,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deletePetValidateBeforeCall(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deletePetValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling deletePet(Async)"); @@ -284,7 +284,7 @@ public class PetApi { 400 Invalid pet value - */ - public void deletePet(Long petId, String apiKey) throws ApiException { + public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { deletePetWithHttpInfo(petId, apiKey); } @@ -302,7 +302,7 @@ public class PetApi { 400 Invalid pet value - */ - public ApiResponse deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException { + public ApiResponse deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { okhttp3.Call localVarCall = deletePetValidateBeforeCall(petId, apiKey, null); return localVarApiClient.execute(localVarCall); } @@ -322,7 +322,7 @@ public class PetApi { 400 Invalid pet value - */ - public okhttp3.Call deletePetAsync(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deletePetAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deletePetValidateBeforeCall(petId, apiKey, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -342,7 +342,7 @@ public class PetApi { 400 Invalid status value - */ - public okhttp3.Call findPetsByStatusCall(List status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findPetsByStatusCall(@javax.annotation.Nonnull List status, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -392,7 +392,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call findPetsByStatusValidateBeforeCall(List status, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findPetsByStatusValidateBeforeCall(@javax.annotation.Nonnull List status, final ApiCallback _callback) throws ApiException { // verify the required parameter 'status' is set if (status == null) { throw new ApiException("Missing the required parameter 'status' when calling findPetsByStatus(Async)"); @@ -416,7 +416,7 @@ public class PetApi { 400 Invalid status value - */ - public List findPetsByStatus(List status) throws ApiException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws ApiException { ApiResponse> localVarResp = findPetsByStatusWithHttpInfo(status); return localVarResp.getData(); } @@ -435,7 +435,7 @@ public class PetApi { 400 Invalid status value - */ - public ApiResponse> findPetsByStatusWithHttpInfo(List status) throws ApiException { + public ApiResponse> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws ApiException { okhttp3.Call localVarCall = findPetsByStatusValidateBeforeCall(status, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -456,7 +456,7 @@ public class PetApi { 400 Invalid status value - */ - public okhttp3.Call findPetsByStatusAsync(List status, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call findPetsByStatusAsync(@javax.annotation.Nonnull List status, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = findPetsByStatusValidateBeforeCall(status, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); @@ -479,7 +479,7 @@ public class PetApi { * @deprecated */ @Deprecated - public okhttp3.Call findPetsByTagsCall(List tags, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findPetsByTagsCall(@javax.annotation.Nonnull List tags, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -530,7 +530,7 @@ public class PetApi { @Deprecated @SuppressWarnings("rawtypes") - private okhttp3.Call findPetsByTagsValidateBeforeCall(List tags, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findPetsByTagsValidateBeforeCall(@javax.annotation.Nonnull List tags, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tags' is set if (tags == null) { throw new ApiException("Missing the required parameter 'tags' when calling findPetsByTags(Async)"); @@ -556,7 +556,7 @@ public class PetApi { * @deprecated */ @Deprecated - public List findPetsByTags(List tags) throws ApiException { + public List findPetsByTags(@javax.annotation.Nonnull List tags) throws ApiException { ApiResponse> localVarResp = findPetsByTagsWithHttpInfo(tags); return localVarResp.getData(); } @@ -577,7 +577,7 @@ public class PetApi { * @deprecated */ @Deprecated - public ApiResponse> findPetsByTagsWithHttpInfo(List tags) throws ApiException { + public ApiResponse> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull List tags) throws ApiException { okhttp3.Call localVarCall = findPetsByTagsValidateBeforeCall(tags, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -600,7 +600,7 @@ public class PetApi { * @deprecated */ @Deprecated - public okhttp3.Call findPetsByTagsAsync(List tags, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call findPetsByTagsAsync(@javax.annotation.Nonnull List tags, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = findPetsByTagsValidateBeforeCall(tags, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); @@ -622,7 +622,7 @@ public class PetApi { 404 Pet not found - */ - public okhttp3.Call getPetByIdCall(Long petId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPetByIdCall(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -669,7 +669,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getPetByIdValidateBeforeCall(Long petId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPetByIdValidateBeforeCall(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling getPetById(Async)"); @@ -694,7 +694,7 @@ public class PetApi { 404 Pet not found - */ - public Pet getPetById(Long petId) throws ApiException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws ApiException { ApiResponse localVarResp = getPetByIdWithHttpInfo(petId); return localVarResp.getData(); } @@ -714,7 +714,7 @@ public class PetApi { 404 Pet not found - */ - public ApiResponse getPetByIdWithHttpInfo(Long petId) throws ApiException { + public ApiResponse getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws ApiException { okhttp3.Call localVarCall = getPetByIdValidateBeforeCall(petId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -736,7 +736,7 @@ public class PetApi { 404 Pet not found - */ - public okhttp3.Call getPetByIdAsync(Long petId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPetByIdAsync(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPetByIdValidateBeforeCall(petId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -758,7 +758,7 @@ public class PetApi { 405 Validation exception - */ - public okhttp3.Call updatePetCall(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -804,7 +804,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updatePetValidateBeforeCall(Pet pet, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updatePetValidateBeforeCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { // verify the required parameter 'pet' is set if (pet == null) { throw new ApiException("Missing the required parameter 'pet' when calling updatePet(Async)"); @@ -828,7 +828,7 @@ public class PetApi { 405 Validation exception - */ - public void updatePet(Pet pet) throws ApiException { + public void updatePet(@javax.annotation.Nonnull Pet pet) throws ApiException { updatePetWithHttpInfo(pet); } @@ -847,7 +847,7 @@ public class PetApi { 405 Validation exception - */ - public ApiResponse updatePetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse updatePetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException { okhttp3.Call localVarCall = updatePetValidateBeforeCall(pet, null); return localVarApiClient.execute(localVarCall); } @@ -868,7 +868,7 @@ public class PetApi { 405 Validation exception - */ - public okhttp3.Call updatePetAsync(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetAsync(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updatePetValidateBeforeCall(pet, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -889,7 +889,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call updatePetWithFormCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetWithFormCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -943,7 +943,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updatePetWithFormValidateBeforeCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updatePetWithFormValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling updatePetWithForm(Async)"); @@ -967,7 +967,7 @@ public class PetApi { 405 Invalid input - */ - public void updatePetWithForm(Long petId, String name, String status) throws ApiException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -986,7 +986,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException { + public ApiResponse updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { okhttp3.Call localVarCall = updatePetWithFormValidateBeforeCall(petId, name, status, null); return localVarApiClient.execute(localVarCall); } @@ -1007,7 +1007,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call updatePetWithFormAsync(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetWithFormAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updatePetWithFormValidateBeforeCall(petId, name, status, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -1028,7 +1028,7 @@ public class PetApi { 200 successful operation - */ - public okhttp3.Call uploadFileCall(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1083,7 +1083,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call uploadFileValidateBeforeCall(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + private okhttp3.Call uploadFileValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling uploadFile(Async)"); @@ -1108,7 +1108,7 @@ public class PetApi { 200 successful operation - */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws ApiException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { ApiResponse localVarResp = uploadFileWithHttpInfo(petId, additionalMetadata, _file); return localVarResp.getData(); } @@ -1128,7 +1128,7 @@ public class PetApi { 200 successful operation - */ - public ApiResponse uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws ApiException { + public ApiResponse uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { okhttp3.Call localVarCall = uploadFileValidateBeforeCall(petId, additionalMetadata, _file, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1150,7 +1150,7 @@ public class PetApi { 200 successful operation - */ - public okhttp3.Call uploadFileAsync(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = uploadFileValidateBeforeCall(petId, additionalMetadata, _file, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/api/StoreApi.java index 1572d13a748..e1140a10a68 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/api/StoreApi.java @@ -86,7 +86,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call deleteOrderCall(String orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteOrderCall(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -131,7 +131,7 @@ public class StoreApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteOrderValidateBeforeCall(String orderId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteOrderValidateBeforeCall(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new ApiException("Missing the required parameter 'orderId' when calling deleteOrder(Async)"); @@ -154,7 +154,7 @@ public class StoreApi { 404 Order not found - */ - public void deleteOrder(String orderId) throws ApiException { + public void deleteOrder(@javax.annotation.Nonnull String orderId) throws ApiException { deleteOrderWithHttpInfo(orderId); } @@ -172,7 +172,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse deleteOrderWithHttpInfo(String orderId) throws ApiException { + public ApiResponse deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws ApiException { okhttp3.Call localVarCall = deleteOrderValidateBeforeCall(orderId, null); return localVarApiClient.execute(localVarCall); } @@ -192,7 +192,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call deleteOrderAsync(String orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteOrderAsync(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteOrderValidateBeforeCall(orderId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -330,7 +330,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call getOrderByIdCall(Long orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getOrderByIdCall(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -377,7 +377,7 @@ public class StoreApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getOrderByIdValidateBeforeCall(Long orderId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getOrderByIdValidateBeforeCall(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new ApiException("Missing the required parameter 'orderId' when calling getOrderById(Async)"); @@ -402,7 +402,7 @@ public class StoreApi { 404 Order not found - */ - public Order getOrderById(Long orderId) throws ApiException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws ApiException { ApiResponse localVarResp = getOrderByIdWithHttpInfo(orderId); return localVarResp.getData(); } @@ -422,7 +422,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse getOrderByIdWithHttpInfo(Long orderId) throws ApiException { + public ApiResponse getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws ApiException { okhttp3.Call localVarCall = getOrderByIdValidateBeforeCall(orderId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -444,7 +444,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call getOrderByIdAsync(Long orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getOrderByIdAsync(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getOrderByIdValidateBeforeCall(orderId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -465,7 +465,7 @@ public class StoreApi { 400 Invalid Order - */ - public okhttp3.Call placeOrderCall(Order order, final ApiCallback _callback) throws ApiException { + public okhttp3.Call placeOrderCall(@javax.annotation.Nonnull Order order, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -512,7 +512,7 @@ public class StoreApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call placeOrderValidateBeforeCall(Order order, final ApiCallback _callback) throws ApiException { + private okhttp3.Call placeOrderValidateBeforeCall(@javax.annotation.Nonnull Order order, final ApiCallback _callback) throws ApiException { // verify the required parameter 'order' is set if (order == null) { throw new ApiException("Missing the required parameter 'order' when calling placeOrder(Async)"); @@ -536,7 +536,7 @@ public class StoreApi { 400 Invalid Order - */ - public Order placeOrder(Order order) throws ApiException { + public Order placeOrder(@javax.annotation.Nonnull Order order) throws ApiException { ApiResponse localVarResp = placeOrderWithHttpInfo(order); return localVarResp.getData(); } @@ -555,7 +555,7 @@ public class StoreApi { 400 Invalid Order - */ - public ApiResponse placeOrderWithHttpInfo(Order order) throws ApiException { + public ApiResponse placeOrderWithHttpInfo(@javax.annotation.Nonnull Order order) throws ApiException { okhttp3.Call localVarCall = placeOrderValidateBeforeCall(order, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -576,7 +576,7 @@ public class StoreApi { 400 Invalid Order - */ - public okhttp3.Call placeOrderAsync(Order order, final ApiCallback _callback) throws ApiException { + public okhttp3.Call placeOrderAsync(@javax.annotation.Nonnull Order order, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = placeOrderValidateBeforeCall(order, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/api/UserApi.java index 722387d0ee2..1c5bd34f9eb 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/api/UserApi.java @@ -86,7 +86,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUserCall(User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUserCall(@javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -131,7 +131,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createUserValidateBeforeCall(User user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUserValidateBeforeCall(@javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling createUser(Async)"); @@ -153,7 +153,7 @@ public class UserApi { 0 successful operation - */ - public void createUser(User user) throws ApiException { + public void createUser(@javax.annotation.Nonnull User user) throws ApiException { createUserWithHttpInfo(user); } @@ -170,7 +170,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUserWithHttpInfo(User user) throws ApiException { + public ApiResponse createUserWithHttpInfo(@javax.annotation.Nonnull User user) throws ApiException { okhttp3.Call localVarCall = createUserValidateBeforeCall(user, null); return localVarApiClient.execute(localVarCall); } @@ -189,7 +189,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUserAsync(User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUserAsync(@javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUserValidateBeforeCall(user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -208,7 +208,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithArrayInputCall(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithArrayInputCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -253,7 +253,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createUsersWithArrayInputValidateBeforeCall(List user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUsersWithArrayInputValidateBeforeCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling createUsersWithArrayInput(Async)"); @@ -275,7 +275,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithArrayInput(List user) throws ApiException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List user) throws ApiException { createUsersWithArrayInputWithHttpInfo(user); } @@ -292,7 +292,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithArrayInputWithHttpInfo(List user) throws ApiException { + public ApiResponse createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List user) throws ApiException { okhttp3.Call localVarCall = createUsersWithArrayInputValidateBeforeCall(user, null); return localVarApiClient.execute(localVarCall); } @@ -311,7 +311,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithArrayInputAsync(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithArrayInputAsync(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUsersWithArrayInputValidateBeforeCall(user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -330,7 +330,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithListInputCall(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithListInputCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -375,7 +375,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createUsersWithListInputValidateBeforeCall(List user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUsersWithListInputValidateBeforeCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling createUsersWithListInput(Async)"); @@ -397,7 +397,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithListInput(List user) throws ApiException { + public void createUsersWithListInput(@javax.annotation.Nonnull List user) throws ApiException { createUsersWithListInputWithHttpInfo(user); } @@ -414,7 +414,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithListInputWithHttpInfo(List user) throws ApiException { + public ApiResponse createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List user) throws ApiException { okhttp3.Call localVarCall = createUsersWithListInputValidateBeforeCall(user, null); return localVarApiClient.execute(localVarCall); } @@ -433,7 +433,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithListInputAsync(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithListInputAsync(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUsersWithListInputValidateBeforeCall(user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -453,7 +453,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call deleteUserCall(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUserCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -498,7 +498,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteUserValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteUserValidateBeforeCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling deleteUser(Async)"); @@ -521,7 +521,7 @@ public class UserApi { 404 User not found - */ - public void deleteUser(String username) throws ApiException { + public void deleteUser(@javax.annotation.Nonnull String username) throws ApiException { deleteUserWithHttpInfo(username); } @@ -539,7 +539,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse deleteUserWithHttpInfo(String username) throws ApiException { + public ApiResponse deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { okhttp3.Call localVarCall = deleteUserValidateBeforeCall(username, null); return localVarApiClient.execute(localVarCall); } @@ -559,7 +559,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call deleteUserAsync(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUserAsync(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteUserValidateBeforeCall(username, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -580,7 +580,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call getUserByNameCall(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUserByNameCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -627,7 +627,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getUserByNameValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserByNameValidateBeforeCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling getUserByName(Async)"); @@ -652,7 +652,7 @@ public class UserApi { 404 User not found - */ - public User getUserByName(String username) throws ApiException { + public User getUserByName(@javax.annotation.Nonnull String username) throws ApiException { ApiResponse localVarResp = getUserByNameWithHttpInfo(username); return localVarResp.getData(); } @@ -672,7 +672,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse getUserByNameWithHttpInfo(String username) throws ApiException { + public ApiResponse getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { okhttp3.Call localVarCall = getUserByNameValidateBeforeCall(username, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -694,7 +694,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call getUserByNameAsync(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUserByNameAsync(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserByNameValidateBeforeCall(username, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -716,7 +716,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public okhttp3.Call loginUserCall(String username, String password, final ApiCallback _callback) throws ApiException { + public okhttp3.Call loginUserCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -770,7 +770,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call loginUserValidateBeforeCall(String username, String password, final ApiCallback _callback) throws ApiException { + private okhttp3.Call loginUserValidateBeforeCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling loginUser(Async)"); @@ -800,7 +800,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public String loginUser(String username, String password) throws ApiException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { ApiResponse localVarResp = loginUserWithHttpInfo(username, password); return localVarResp.getData(); } @@ -820,7 +820,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public ApiResponse loginUserWithHttpInfo(String username, String password) throws ApiException { + public ApiResponse loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { okhttp3.Call localVarCall = loginUserValidateBeforeCall(username, password, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -842,7 +842,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public okhttp3.Call loginUserAsync(String username, String password, final ApiCallback _callback) throws ApiException { + public okhttp3.Call loginUserAsync(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = loginUserValidateBeforeCall(username, password, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -976,7 +976,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call updateUserCall(String username, User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateUserCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1022,7 +1022,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updateUserValidateBeforeCall(String username, User user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateUserValidateBeforeCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling updateUser(Async)"); @@ -1051,7 +1051,7 @@ public class UserApi { 404 User not found - */ - public void updateUser(String username, User user) throws ApiException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { updateUserWithHttpInfo(username, user); } @@ -1070,7 +1070,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse updateUserWithHttpInfo(String username, User user) throws ApiException { + public ApiResponse updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { okhttp3.Call localVarCall = updateUserValidateBeforeCall(username, user, null); return localVarApiClient.execute(localVarCall); } @@ -1091,7 +1091,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call updateUserAsync(String username, User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateUserAsync(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateUserValidateBeforeCall(username, user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index e0aa0ed5fc9..d884e8b86da 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -87,7 +87,7 @@ public class AnotherFakeApi { 200 successful operation - */ - public okhttp3.Call call123testSpecialTagsCall(UUID uuidTest, Client body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call call123testSpecialTagsCall(@javax.annotation.Nonnull UUID uuidTest, @javax.annotation.Nonnull Client body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -138,7 +138,7 @@ public class AnotherFakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call call123testSpecialTagsValidateBeforeCall(UUID uuidTest, Client body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call call123testSpecialTagsValidateBeforeCall(@javax.annotation.Nonnull UUID uuidTest, @javax.annotation.Nonnull Client body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'uuidTest' is set if (uuidTest == null) { throw new ApiException("Missing the required parameter 'uuidTest' when calling call123testSpecialTags(Async)"); @@ -167,7 +167,7 @@ public class AnotherFakeApi { 200 successful operation - */ - public Client call123testSpecialTags(UUID uuidTest, Client body) throws ApiException { + public Client call123testSpecialTags(@javax.annotation.Nonnull UUID uuidTest, @javax.annotation.Nonnull Client body) throws ApiException { ApiResponse localVarResp = call123testSpecialTagsWithHttpInfo(uuidTest, body); return localVarResp.getData(); } @@ -186,7 +186,7 @@ public class AnotherFakeApi { 200 successful operation - */ - public ApiResponse call123testSpecialTagsWithHttpInfo(UUID uuidTest, Client body) throws ApiException { + public ApiResponse call123testSpecialTagsWithHttpInfo(@javax.annotation.Nonnull UUID uuidTest, @javax.annotation.Nonnull Client body) throws ApiException { okhttp3.Call localVarCall = call123testSpecialTagsValidateBeforeCall(uuidTest, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -207,7 +207,7 @@ public class AnotherFakeApi { 200 successful operation - */ - public okhttp3.Call call123testSpecialTagsAsync(UUID uuidTest, Client body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call call123testSpecialTagsAsync(@javax.annotation.Nonnull UUID uuidTest, @javax.annotation.Nonnull Client body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = call123testSpecialTagsValidateBeforeCall(uuidTest, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeApi.java index ab85e6a1fce..cb2d2e706a2 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeApi.java @@ -93,7 +93,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call createXmlItemCall(XmlItem xmlItem, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createXmlItemCall(@javax.annotation.Nonnull XmlItem xmlItem, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -143,7 +143,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createXmlItemValidateBeforeCall(XmlItem xmlItem, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createXmlItemValidateBeforeCall(@javax.annotation.Nonnull XmlItem xmlItem, final ApiCallback _callback) throws ApiException { // verify the required parameter 'xmlItem' is set if (xmlItem == null) { throw new ApiException("Missing the required parameter 'xmlItem' when calling createXmlItem(Async)"); @@ -165,7 +165,7 @@ public class FakeApi { 200 successful operation - */ - public void createXmlItem(XmlItem xmlItem) throws ApiException { + public void createXmlItem(@javax.annotation.Nonnull XmlItem xmlItem) throws ApiException { createXmlItemWithHttpInfo(xmlItem); } @@ -182,7 +182,7 @@ public class FakeApi { 200 successful operation - */ - public ApiResponse createXmlItemWithHttpInfo(XmlItem xmlItem) throws ApiException { + public ApiResponse createXmlItemWithHttpInfo(@javax.annotation.Nonnull XmlItem xmlItem) throws ApiException { okhttp3.Call localVarCall = createXmlItemValidateBeforeCall(xmlItem, null); return localVarApiClient.execute(localVarCall); } @@ -201,7 +201,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call createXmlItemAsync(XmlItem xmlItem, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createXmlItemAsync(@javax.annotation.Nonnull XmlItem xmlItem, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createXmlItemValidateBeforeCall(xmlItem, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -220,7 +220,7 @@ public class FakeApi { 200 Output boolean - */ - public okhttp3.Call fakeOuterBooleanSerializeCall(Boolean body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterBooleanSerializeCall(@javax.annotation.Nullable Boolean body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -265,7 +265,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call fakeOuterBooleanSerializeValidateBeforeCall(Boolean body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call fakeOuterBooleanSerializeValidateBeforeCall(@javax.annotation.Nullable Boolean body, final ApiCallback _callback) throws ApiException { return fakeOuterBooleanSerializeCall(body, _callback); } @@ -283,7 +283,7 @@ public class FakeApi { 200 Output boolean - */ - public Boolean fakeOuterBooleanSerialize(Boolean body) throws ApiException { + public Boolean fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body) throws ApiException { ApiResponse localVarResp = fakeOuterBooleanSerializeWithHttpInfo(body); return localVarResp.getData(); } @@ -301,7 +301,7 @@ public class FakeApi { 200 Output boolean - */ - public ApiResponse fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws ApiException { + public ApiResponse fakeOuterBooleanSerializeWithHttpInfo(@javax.annotation.Nullable Boolean body) throws ApiException { okhttp3.Call localVarCall = fakeOuterBooleanSerializeValidateBeforeCall(body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -321,7 +321,7 @@ public class FakeApi { 200 Output boolean - */ - public okhttp3.Call fakeOuterBooleanSerializeAsync(Boolean body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterBooleanSerializeAsync(@javax.annotation.Nullable Boolean body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = fakeOuterBooleanSerializeValidateBeforeCall(body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -341,7 +341,7 @@ public class FakeApi { 200 Output composite - */ - public okhttp3.Call fakeOuterCompositeSerializeCall(OuterComposite body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterCompositeSerializeCall(@javax.annotation.Nullable OuterComposite body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -386,7 +386,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call fakeOuterCompositeSerializeValidateBeforeCall(OuterComposite body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call fakeOuterCompositeSerializeValidateBeforeCall(@javax.annotation.Nullable OuterComposite body, final ApiCallback _callback) throws ApiException { return fakeOuterCompositeSerializeCall(body, _callback); } @@ -404,7 +404,7 @@ public class FakeApi { 200 Output composite - */ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException { + public OuterComposite fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite body) throws ApiException { ApiResponse localVarResp = fakeOuterCompositeSerializeWithHttpInfo(body); return localVarResp.getData(); } @@ -422,7 +422,7 @@ public class FakeApi { 200 Output composite - */ - public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(OuterComposite body) throws ApiException { + public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(@javax.annotation.Nullable OuterComposite body) throws ApiException { okhttp3.Call localVarCall = fakeOuterCompositeSerializeValidateBeforeCall(body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -442,7 +442,7 @@ public class FakeApi { 200 Output composite - */ - public okhttp3.Call fakeOuterCompositeSerializeAsync(OuterComposite body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterCompositeSerializeAsync(@javax.annotation.Nullable OuterComposite body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = fakeOuterCompositeSerializeValidateBeforeCall(body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -462,7 +462,7 @@ public class FakeApi { 200 Output number - */ - public okhttp3.Call fakeOuterNumberSerializeCall(BigDecimal body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterNumberSerializeCall(@javax.annotation.Nullable BigDecimal body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -507,7 +507,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call fakeOuterNumberSerializeValidateBeforeCall(BigDecimal body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call fakeOuterNumberSerializeValidateBeforeCall(@javax.annotation.Nullable BigDecimal body, final ApiCallback _callback) throws ApiException { return fakeOuterNumberSerializeCall(body, _callback); } @@ -525,7 +525,7 @@ public class FakeApi { 200 Output number - */ - public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws ApiException { + public BigDecimal fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body) throws ApiException { ApiResponse localVarResp = fakeOuterNumberSerializeWithHttpInfo(body); return localVarResp.getData(); } @@ -543,7 +543,7 @@ public class FakeApi { 200 Output number - */ - public ApiResponse fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws ApiException { + public ApiResponse fakeOuterNumberSerializeWithHttpInfo(@javax.annotation.Nullable BigDecimal body) throws ApiException { okhttp3.Call localVarCall = fakeOuterNumberSerializeValidateBeforeCall(body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -563,7 +563,7 @@ public class FakeApi { 200 Output number - */ - public okhttp3.Call fakeOuterNumberSerializeAsync(BigDecimal body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterNumberSerializeAsync(@javax.annotation.Nullable BigDecimal body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = fakeOuterNumberSerializeValidateBeforeCall(body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -583,7 +583,7 @@ public class FakeApi { 200 Output string - */ - public okhttp3.Call fakeOuterStringSerializeCall(String body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterStringSerializeCall(@javax.annotation.Nullable String body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -628,7 +628,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call fakeOuterStringSerializeValidateBeforeCall(String body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call fakeOuterStringSerializeValidateBeforeCall(@javax.annotation.Nullable String body, final ApiCallback _callback) throws ApiException { return fakeOuterStringSerializeCall(body, _callback); } @@ -646,7 +646,7 @@ public class FakeApi { 200 Output string - */ - public String fakeOuterStringSerialize(String body) throws ApiException { + public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws ApiException { ApiResponse localVarResp = fakeOuterStringSerializeWithHttpInfo(body); return localVarResp.getData(); } @@ -664,7 +664,7 @@ public class FakeApi { 200 Output string - */ - public ApiResponse fakeOuterStringSerializeWithHttpInfo(String body) throws ApiException { + public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws ApiException { okhttp3.Call localVarCall = fakeOuterStringSerializeValidateBeforeCall(body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -684,7 +684,7 @@ public class FakeApi { 200 Output string - */ - public okhttp3.Call fakeOuterStringSerializeAsync(String body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterStringSerializeAsync(@javax.annotation.Nullable String body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = fakeOuterStringSerializeValidateBeforeCall(body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -704,7 +704,7 @@ public class FakeApi { 200 Success - */ - public okhttp3.Call testBodyWithFileSchemaCall(FileSchemaTestClass body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testBodyWithFileSchemaCall(@javax.annotation.Nonnull FileSchemaTestClass body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -749,7 +749,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testBodyWithFileSchemaValidateBeforeCall(FileSchemaTestClass body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testBodyWithFileSchemaValidateBeforeCall(@javax.annotation.Nonnull FileSchemaTestClass body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling testBodyWithFileSchema(Async)"); @@ -771,7 +771,7 @@ public class FakeApi { 200 Success - */ - public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException { + public void testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass body) throws ApiException { testBodyWithFileSchemaWithHttpInfo(body); } @@ -788,7 +788,7 @@ public class FakeApi { 200 Success - */ - public ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws ApiException { + public ApiResponse testBodyWithFileSchemaWithHttpInfo(@javax.annotation.Nonnull FileSchemaTestClass body) throws ApiException { okhttp3.Call localVarCall = testBodyWithFileSchemaValidateBeforeCall(body, null); return localVarApiClient.execute(localVarCall); } @@ -807,7 +807,7 @@ public class FakeApi { 200 Success - */ - public okhttp3.Call testBodyWithFileSchemaAsync(FileSchemaTestClass body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testBodyWithFileSchemaAsync(@javax.annotation.Nonnull FileSchemaTestClass body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testBodyWithFileSchemaValidateBeforeCall(body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -827,7 +827,7 @@ public class FakeApi { 200 Success - */ - public okhttp3.Call testBodyWithQueryParamsCall(String query, User body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testBodyWithQueryParamsCall(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -876,7 +876,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testBodyWithQueryParamsValidateBeforeCall(String query, User body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testBodyWithQueryParamsValidateBeforeCall(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'query' is set if (query == null) { throw new ApiException("Missing the required parameter 'query' when calling testBodyWithQueryParams(Async)"); @@ -904,7 +904,7 @@ public class FakeApi { 200 Success - */ - public void testBodyWithQueryParams(String query, User body) throws ApiException { + public void testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User body) throws ApiException { testBodyWithQueryParamsWithHttpInfo(query, body); } @@ -922,7 +922,7 @@ public class FakeApi { 200 Success - */ - public ApiResponse testBodyWithQueryParamsWithHttpInfo(String query, User body) throws ApiException { + public ApiResponse testBodyWithQueryParamsWithHttpInfo(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User body) throws ApiException { okhttp3.Call localVarCall = testBodyWithQueryParamsValidateBeforeCall(query, body, null); return localVarApiClient.execute(localVarCall); } @@ -942,7 +942,7 @@ public class FakeApi { 200 Success - */ - public okhttp3.Call testBodyWithQueryParamsAsync(String query, User body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testBodyWithQueryParamsAsync(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testBodyWithQueryParamsValidateBeforeCall(query, body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -961,7 +961,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call testClientModelCall(Client body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testClientModelCall(@javax.annotation.Nonnull Client body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1007,7 +1007,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testClientModelValidateBeforeCall(Client body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testClientModelValidateBeforeCall(@javax.annotation.Nonnull Client body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling testClientModel(Async)"); @@ -1030,7 +1030,7 @@ public class FakeApi { 200 successful operation - */ - public Client testClientModel(Client body) throws ApiException { + public Client testClientModel(@javax.annotation.Nonnull Client body) throws ApiException { ApiResponse localVarResp = testClientModelWithHttpInfo(body); return localVarResp.getData(); } @@ -1048,7 +1048,7 @@ public class FakeApi { 200 successful operation - */ - public ApiResponse testClientModelWithHttpInfo(Client body) throws ApiException { + public ApiResponse testClientModelWithHttpInfo(@javax.annotation.Nonnull Client body) throws ApiException { okhttp3.Call localVarCall = testClientModelValidateBeforeCall(body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1068,7 +1068,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call testClientModelAsync(Client body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testClientModelAsync(@javax.annotation.Nonnull Client body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testClientModelValidateBeforeCall(body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1102,7 +1102,7 @@ public class FakeApi { 404 User not found - */ - public okhttp3.Call testEndpointParametersCall(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, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEndpointParametersCall(@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, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1203,7 +1203,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testEndpointParametersValidateBeforeCall(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, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testEndpointParametersValidateBeforeCall(@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, final ApiCallback _callback) throws ApiException { // verify the required parameter 'number' is set if (number == null) { throw new ApiException("Missing the required parameter 'number' when calling testEndpointParameters(Async)"); @@ -1254,7 +1254,7 @@ public class FakeApi { 404 User not found - */ - 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 ApiException { + 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 ApiException { testEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -1285,7 +1285,7 @@ public class FakeApi { 404 User not found - */ - public ApiResponse 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 ApiException { + public ApiResponse 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 ApiException { okhttp3.Call localVarCall = testEndpointParametersValidateBeforeCall(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback, null); return localVarApiClient.execute(localVarCall); } @@ -1318,7 +1318,7 @@ public class FakeApi { 404 User not found - */ - public okhttp3.Call testEndpointParametersAsync(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, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEndpointParametersAsync(@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, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testEndpointParametersValidateBeforeCall(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -1345,7 +1345,7 @@ public class FakeApi { 404 Not found - */ - public okhttp3.Call testEnumParametersCall(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEnumParametersCall(@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 enumFormStringArray, @javax.annotation.Nullable String enumFormString, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1424,7 +1424,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testEnumParametersValidateBeforeCall(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testEnumParametersValidateBeforeCall(@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 enumFormStringArray, @javax.annotation.Nullable String enumFormString, final ApiCallback _callback) throws ApiException { return testEnumParametersCall(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, _callback); } @@ -1449,7 +1449,7 @@ public class FakeApi { 404 Not found - */ - public void testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { + 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 enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws ApiException { testEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -1474,7 +1474,7 @@ public class FakeApi { 404 Not found - */ - public ApiResponse testEnumParametersWithHttpInfo(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { + public ApiResponse 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 enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws ApiException { okhttp3.Call localVarCall = testEnumParametersValidateBeforeCall(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, null); return localVarApiClient.execute(localVarCall); } @@ -1501,13 +1501,13 @@ public class FakeApi { 404 Not found - */ - public okhttp3.Call testEnumParametersAsync(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEnumParametersAsync(@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 enumFormStringArray, @javax.annotation.Nullable String enumFormString, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testEnumParametersValidateBeforeCall(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } - private okhttp3.Call testGroupParametersCall(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testGroupParametersCall(@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, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1577,7 +1577,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testGroupParametersValidateBeforeCall(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testGroupParametersValidateBeforeCall(@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, final ApiCallback _callback) throws ApiException { // verify the required parameter 'requiredStringGroup' is set if (requiredStringGroup == null) { throw new ApiException("Missing the required parameter 'requiredStringGroup' when calling testGroupParameters(Async)"); @@ -1598,12 +1598,12 @@ public class FakeApi { } - private ApiResponse testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { + private ApiResponse 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 ApiException { okhttp3.Call localVarCall = testGroupParametersValidateBeforeCall(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, null); return localVarApiClient.execute(localVarCall); } - private okhttp3.Call testGroupParametersAsync(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testGroupParametersAsync(@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, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testGroupParametersValidateBeforeCall(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -1611,14 +1611,20 @@ public class FakeApi { } public class APItestGroupParametersRequest { + @javax.annotation.Nonnull private final Integer requiredStringGroup; + @javax.annotation.Nonnull private final Boolean requiredBooleanGroup; + @javax.annotation.Nonnull private final Long requiredInt64Group; + @javax.annotation.Nullable private Integer stringGroup; + @javax.annotation.Nullable private Boolean booleanGroup; + @javax.annotation.Nullable private Long int64Group; - private APItestGroupParametersRequest(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group) { + private APItestGroupParametersRequest(@javax.annotation.Nonnull Integer requiredStringGroup, @javax.annotation.Nonnull Boolean requiredBooleanGroup, @javax.annotation.Nonnull Long requiredInt64Group) { this.requiredStringGroup = requiredStringGroup; this.requiredBooleanGroup = requiredBooleanGroup; this.requiredInt64Group = requiredInt64Group; @@ -1629,7 +1635,7 @@ public class FakeApi { * @param stringGroup String in group parameters (optional) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest stringGroup(Integer stringGroup) { + public APItestGroupParametersRequest stringGroup(@javax.annotation.Nullable Integer stringGroup) { this.stringGroup = stringGroup; return this; } @@ -1639,7 +1645,7 @@ public class FakeApi { * @param booleanGroup Boolean in group parameters (optional) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest booleanGroup(Boolean booleanGroup) { + public APItestGroupParametersRequest booleanGroup(@javax.annotation.Nullable Boolean booleanGroup) { this.booleanGroup = booleanGroup; return this; } @@ -1649,7 +1655,7 @@ public class FakeApi { * @param int64Group Integer in group parameters (optional) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest int64Group(Long int64Group) { + public APItestGroupParametersRequest int64Group(@javax.annotation.Nullable Long int64Group) { this.int64Group = int64Group; return this; } @@ -1730,7 +1736,7 @@ public class FakeApi { 400 Something wrong - */ - public APItestGroupParametersRequest testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group) { + public APItestGroupParametersRequest testGroupParameters(@javax.annotation.Nonnull Integer requiredStringGroup, @javax.annotation.Nonnull Boolean requiredBooleanGroup, @javax.annotation.Nonnull Long requiredInt64Group) { return new APItestGroupParametersRequest(requiredStringGroup, requiredBooleanGroup, requiredInt64Group); } /** @@ -1746,7 +1752,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call testInlineAdditionalPropertiesCall(Map param, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testInlineAdditionalPropertiesCall(@javax.annotation.Nonnull Map param, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1791,7 +1797,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testInlineAdditionalPropertiesValidateBeforeCall(Map param, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testInlineAdditionalPropertiesValidateBeforeCall(@javax.annotation.Nonnull Map param, final ApiCallback _callback) throws ApiException { // verify the required parameter 'param' is set if (param == null) { throw new ApiException("Missing the required parameter 'param' when calling testInlineAdditionalProperties(Async)"); @@ -1813,7 +1819,7 @@ public class FakeApi { 200 successful operation - */ - public void testInlineAdditionalProperties(Map param) throws ApiException { + public void testInlineAdditionalProperties(@javax.annotation.Nonnull Map param) throws ApiException { testInlineAdditionalPropertiesWithHttpInfo(param); } @@ -1830,7 +1836,7 @@ public class FakeApi { 200 successful operation - */ - public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map param) throws ApiException { + public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull Map param) throws ApiException { okhttp3.Call localVarCall = testInlineAdditionalPropertiesValidateBeforeCall(param, null); return localVarApiClient.execute(localVarCall); } @@ -1849,7 +1855,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call testInlineAdditionalPropertiesAsync(Map param, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testInlineAdditionalPropertiesAsync(@javax.annotation.Nonnull Map param, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testInlineAdditionalPropertiesValidateBeforeCall(param, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -1869,7 +1875,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call testJsonFormDataCall(String param, String param2, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testJsonFormDataCall(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1922,7 +1928,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testJsonFormDataValidateBeforeCall(String param, String param2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testJsonFormDataValidateBeforeCall(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'param' is set if (param == null) { throw new ApiException("Missing the required parameter 'param' when calling testJsonFormData(Async)"); @@ -1950,7 +1956,7 @@ public class FakeApi { 200 successful operation - */ - public void testJsonFormData(String param, String param2) throws ApiException { + public void testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws ApiException { testJsonFormDataWithHttpInfo(param, param2); } @@ -1968,7 +1974,7 @@ public class FakeApi { 200 successful operation - */ - public ApiResponse testJsonFormDataWithHttpInfo(String param, String param2) throws ApiException { + public ApiResponse testJsonFormDataWithHttpInfo(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws ApiException { okhttp3.Call localVarCall = testJsonFormDataValidateBeforeCall(param, param2, null); return localVarApiClient.execute(localVarCall); } @@ -1988,7 +1994,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call testJsonFormDataAsync(String param, String param2, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testJsonFormDataAsync(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testJsonFormDataValidateBeforeCall(param, param2, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -2011,7 +2017,7 @@ public class FakeApi { 200 Success - */ - public okhttp3.Call testQueryParameterCollectionFormatCall(List pipe, List ioutil, List http, List url, List context, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testQueryParameterCollectionFormatCall(@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, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2075,7 +2081,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testQueryParameterCollectionFormatValidateBeforeCall(List pipe, List ioutil, List http, List url, List context, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testQueryParameterCollectionFormatValidateBeforeCall(@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, final ApiCallback _callback) throws ApiException { // verify the required parameter 'pipe' is set if (pipe == null) { throw new ApiException("Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat(Async)"); @@ -2121,7 +2127,7 @@ public class FakeApi { 200 Success - */ - public void testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context) throws ApiException { + 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) throws ApiException { testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context); } @@ -2142,7 +2148,7 @@ public class FakeApi { 200 Success - */ - public ApiResponse testQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context) throws ApiException { + public ApiResponse 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) throws ApiException { okhttp3.Call localVarCall = testQueryParameterCollectionFormatValidateBeforeCall(pipe, ioutil, http, url, context, null); return localVarApiClient.execute(localVarCall); } @@ -2165,7 +2171,7 @@ public class FakeApi { 200 Success - */ - public okhttp3.Call testQueryParameterCollectionFormatAsync(List pipe, List ioutil, List http, List url, List context, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testQueryParameterCollectionFormatAsync(@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, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testQueryParameterCollectionFormatValidateBeforeCall(pipe, ioutil, http, url, context, _callback); localVarApiClient.executeAsync(localVarCall, _callback); diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index b1353832acb..14c5a41837e 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -85,7 +85,7 @@ public class FakeClassnameTags123Api { 200 successful operation - */ - public okhttp3.Call testClassnameCall(Client body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testClassnameCall(@javax.annotation.Nonnull Client body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -131,7 +131,7 @@ public class FakeClassnameTags123Api { } @SuppressWarnings("rawtypes") - private okhttp3.Call testClassnameValidateBeforeCall(Client body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testClassnameValidateBeforeCall(@javax.annotation.Nonnull Client body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling testClassname(Async)"); @@ -154,7 +154,7 @@ public class FakeClassnameTags123Api { 200 successful operation - */ - public Client testClassname(Client body) throws ApiException { + public Client testClassname(@javax.annotation.Nonnull Client body) throws ApiException { ApiResponse localVarResp = testClassnameWithHttpInfo(body); return localVarResp.getData(); } @@ -172,7 +172,7 @@ public class FakeClassnameTags123Api { 200 successful operation - */ - public ApiResponse testClassnameWithHttpInfo(Client body) throws ApiException { + public ApiResponse testClassnameWithHttpInfo(@javax.annotation.Nonnull Client body) throws ApiException { okhttp3.Call localVarCall = testClassnameValidateBeforeCall(body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -192,7 +192,7 @@ public class FakeClassnameTags123Api { 200 successful operation - */ - public okhttp3.Call testClassnameAsync(Client body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testClassnameAsync(@javax.annotation.Nonnull Client body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testClassnameValidateBeforeCall(body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/PetApi.java index cea8d029f70..54a224489b9 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/PetApi.java @@ -89,7 +89,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call addPetCall(Pet body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addPetCall(@javax.annotation.Nonnull Pet body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -135,7 +135,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call addPetValidateBeforeCall(Pet body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addPetValidateBeforeCall(@javax.annotation.Nonnull Pet body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling addPet(Async)"); @@ -158,7 +158,7 @@ public class PetApi { 405 Invalid input - */ - public void addPet(Pet body) throws ApiException { + public void addPet(@javax.annotation.Nonnull Pet body) throws ApiException { addPetWithHttpInfo(body); } @@ -176,7 +176,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse addPetWithHttpInfo(Pet body) throws ApiException { + public ApiResponse addPetWithHttpInfo(@javax.annotation.Nonnull Pet body) throws ApiException { okhttp3.Call localVarCall = addPetValidateBeforeCall(body, null); return localVarApiClient.execute(localVarCall); } @@ -196,7 +196,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call addPetAsync(Pet body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addPetAsync(@javax.annotation.Nonnull Pet body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = addPetValidateBeforeCall(body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -217,7 +217,7 @@ public class PetApi { 400 Invalid pet value - */ - public okhttp3.Call deletePetCall(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deletePetCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -267,7 +267,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deletePetValidateBeforeCall(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deletePetValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling deletePet(Async)"); @@ -291,7 +291,7 @@ public class PetApi { 400 Invalid pet value - */ - public void deletePet(Long petId, String apiKey) throws ApiException { + public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { deletePetWithHttpInfo(petId, apiKey); } @@ -310,7 +310,7 @@ public class PetApi { 400 Invalid pet value - */ - public ApiResponse deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException { + public ApiResponse deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { okhttp3.Call localVarCall = deletePetValidateBeforeCall(petId, apiKey, null); return localVarApiClient.execute(localVarCall); } @@ -331,7 +331,7 @@ public class PetApi { 400 Invalid pet value - */ - public okhttp3.Call deletePetAsync(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deletePetAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deletePetValidateBeforeCall(petId, apiKey, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -351,7 +351,7 @@ public class PetApi { 400 Invalid status value - */ - public okhttp3.Call findPetsByStatusCall(List status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findPetsByStatusCall(@javax.annotation.Nonnull List status, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -401,7 +401,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call findPetsByStatusValidateBeforeCall(List status, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findPetsByStatusValidateBeforeCall(@javax.annotation.Nonnull List status, final ApiCallback _callback) throws ApiException { // verify the required parameter 'status' is set if (status == null) { throw new ApiException("Missing the required parameter 'status' when calling findPetsByStatus(Async)"); @@ -425,7 +425,7 @@ public class PetApi { 400 Invalid status value - */ - public List findPetsByStatus(List status) throws ApiException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws ApiException { ApiResponse> localVarResp = findPetsByStatusWithHttpInfo(status); return localVarResp.getData(); } @@ -444,7 +444,7 @@ public class PetApi { 400 Invalid status value - */ - public ApiResponse> findPetsByStatusWithHttpInfo(List status) throws ApiException { + public ApiResponse> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws ApiException { okhttp3.Call localVarCall = findPetsByStatusValidateBeforeCall(status, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -465,7 +465,7 @@ public class PetApi { 400 Invalid status value - */ - public okhttp3.Call findPetsByStatusAsync(List status, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call findPetsByStatusAsync(@javax.annotation.Nonnull List status, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = findPetsByStatusValidateBeforeCall(status, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); @@ -488,7 +488,7 @@ public class PetApi { * @deprecated */ @Deprecated - public okhttp3.Call findPetsByTagsCall(Set tags, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findPetsByTagsCall(@javax.annotation.Nonnull Set tags, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -539,7 +539,7 @@ public class PetApi { @Deprecated @SuppressWarnings("rawtypes") - private okhttp3.Call findPetsByTagsValidateBeforeCall(Set tags, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findPetsByTagsValidateBeforeCall(@javax.annotation.Nonnull Set tags, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tags' is set if (tags == null) { throw new ApiException("Missing the required parameter 'tags' when calling findPetsByTags(Async)"); @@ -565,7 +565,7 @@ public class PetApi { * @deprecated */ @Deprecated - public Set findPetsByTags(Set tags) throws ApiException { + public Set findPetsByTags(@javax.annotation.Nonnull Set tags) throws ApiException { ApiResponse> localVarResp = findPetsByTagsWithHttpInfo(tags); return localVarResp.getData(); } @@ -586,7 +586,7 @@ public class PetApi { * @deprecated */ @Deprecated - public ApiResponse> findPetsByTagsWithHttpInfo(Set tags) throws ApiException { + public ApiResponse> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull Set tags) throws ApiException { okhttp3.Call localVarCall = findPetsByTagsValidateBeforeCall(tags, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -609,7 +609,7 @@ public class PetApi { * @deprecated */ @Deprecated - public okhttp3.Call findPetsByTagsAsync(Set tags, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call findPetsByTagsAsync(@javax.annotation.Nonnull Set tags, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = findPetsByTagsValidateBeforeCall(tags, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); @@ -631,7 +631,7 @@ public class PetApi { 404 Pet not found - */ - public okhttp3.Call getPetByIdCall(Long petId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPetByIdCall(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -678,7 +678,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getPetByIdValidateBeforeCall(Long petId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPetByIdValidateBeforeCall(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling getPetById(Async)"); @@ -703,7 +703,7 @@ public class PetApi { 404 Pet not found - */ - public Pet getPetById(Long petId) throws ApiException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws ApiException { ApiResponse localVarResp = getPetByIdWithHttpInfo(petId); return localVarResp.getData(); } @@ -723,7 +723,7 @@ public class PetApi { 404 Pet not found - */ - public ApiResponse getPetByIdWithHttpInfo(Long petId) throws ApiException { + public ApiResponse getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws ApiException { okhttp3.Call localVarCall = getPetByIdValidateBeforeCall(petId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -745,7 +745,7 @@ public class PetApi { 404 Pet not found - */ - public okhttp3.Call getPetByIdAsync(Long petId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPetByIdAsync(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPetByIdValidateBeforeCall(petId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -768,7 +768,7 @@ public class PetApi { 405 Validation exception - */ - public okhttp3.Call updatePetCall(Pet body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetCall(@javax.annotation.Nonnull Pet body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -814,7 +814,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updatePetValidateBeforeCall(Pet body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updatePetValidateBeforeCall(@javax.annotation.Nonnull Pet body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling updatePet(Async)"); @@ -839,7 +839,7 @@ public class PetApi { 405 Validation exception - */ - public void updatePet(Pet body) throws ApiException { + public void updatePet(@javax.annotation.Nonnull Pet body) throws ApiException { updatePetWithHttpInfo(body); } @@ -859,7 +859,7 @@ public class PetApi { 405 Validation exception - */ - public ApiResponse updatePetWithHttpInfo(Pet body) throws ApiException { + public ApiResponse updatePetWithHttpInfo(@javax.annotation.Nonnull Pet body) throws ApiException { okhttp3.Call localVarCall = updatePetValidateBeforeCall(body, null); return localVarApiClient.execute(localVarCall); } @@ -881,7 +881,7 @@ public class PetApi { 405 Validation exception - */ - public okhttp3.Call updatePetAsync(Pet body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetAsync(@javax.annotation.Nonnull Pet body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updatePetValidateBeforeCall(body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -902,7 +902,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call updatePetWithFormCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetWithFormCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -956,7 +956,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updatePetWithFormValidateBeforeCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updatePetWithFormValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling updatePetWithForm(Async)"); @@ -980,7 +980,7 @@ public class PetApi { 405 Invalid input - */ - public void updatePetWithForm(Long petId, String name, String status) throws ApiException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -999,7 +999,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException { + public ApiResponse updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { okhttp3.Call localVarCall = updatePetWithFormValidateBeforeCall(petId, name, status, null); return localVarApiClient.execute(localVarCall); } @@ -1020,7 +1020,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call updatePetWithFormAsync(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetWithFormAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updatePetWithFormValidateBeforeCall(petId, name, status, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -1041,7 +1041,7 @@ public class PetApi { 200 successful operation - */ - public okhttp3.Call uploadFileCall(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1096,7 +1096,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call uploadFileValidateBeforeCall(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + private okhttp3.Call uploadFileValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling uploadFile(Async)"); @@ -1121,7 +1121,7 @@ public class PetApi { 200 successful operation - */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws ApiException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { ApiResponse localVarResp = uploadFileWithHttpInfo(petId, additionalMetadata, _file); return localVarResp.getData(); } @@ -1141,7 +1141,7 @@ public class PetApi { 200 successful operation - */ - public ApiResponse uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws ApiException { + public ApiResponse uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { okhttp3.Call localVarCall = uploadFileValidateBeforeCall(petId, additionalMetadata, _file, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1163,7 +1163,7 @@ public class PetApi { 200 successful operation - */ - public okhttp3.Call uploadFileAsync(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = uploadFileValidateBeforeCall(petId, additionalMetadata, _file, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1185,7 +1185,7 @@ public class PetApi { 200 successful operation - */ - public okhttp3.Call uploadFileWithRequiredFileCall(Long petId, File requiredFile, String additionalMetadata, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileWithRequiredFileCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1240,7 +1240,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call uploadFileWithRequiredFileValidateBeforeCall(Long petId, File requiredFile, String additionalMetadata, final ApiCallback _callback) throws ApiException { + private okhttp3.Call uploadFileWithRequiredFileValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling uploadFileWithRequiredFile(Async)"); @@ -1270,7 +1270,7 @@ public class PetApi { 200 successful operation - */ - public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws ApiException { + public ModelApiResponse uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws ApiException { ApiResponse localVarResp = uploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata); return localVarResp.getData(); } @@ -1290,7 +1290,7 @@ public class PetApi { 200 successful operation - */ - public ApiResponse uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws ApiException { + public ApiResponse uploadFileWithRequiredFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws ApiException { okhttp3.Call localVarCall = uploadFileWithRequiredFileValidateBeforeCall(petId, requiredFile, additionalMetadata, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1312,7 +1312,7 @@ public class PetApi { 200 successful operation - */ - public okhttp3.Call uploadFileWithRequiredFileAsync(Long petId, File requiredFile, String additionalMetadata, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileWithRequiredFileAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = uploadFileWithRequiredFileValidateBeforeCall(petId, requiredFile, additionalMetadata, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/StoreApi.java index caef52c7773..cbaa6121ae2 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/StoreApi.java @@ -86,7 +86,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call deleteOrderCall(String orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteOrderCall(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -131,7 +131,7 @@ public class StoreApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteOrderValidateBeforeCall(String orderId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteOrderValidateBeforeCall(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new ApiException("Missing the required parameter 'orderId' when calling deleteOrder(Async)"); @@ -154,7 +154,7 @@ public class StoreApi { 404 Order not found - */ - public void deleteOrder(String orderId) throws ApiException { + public void deleteOrder(@javax.annotation.Nonnull String orderId) throws ApiException { deleteOrderWithHttpInfo(orderId); } @@ -172,7 +172,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse deleteOrderWithHttpInfo(String orderId) throws ApiException { + public ApiResponse deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws ApiException { okhttp3.Call localVarCall = deleteOrderValidateBeforeCall(orderId, null); return localVarApiClient.execute(localVarCall); } @@ -192,7 +192,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call deleteOrderAsync(String orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteOrderAsync(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteOrderValidateBeforeCall(orderId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -330,7 +330,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call getOrderByIdCall(Long orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getOrderByIdCall(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -377,7 +377,7 @@ public class StoreApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getOrderByIdValidateBeforeCall(Long orderId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getOrderByIdValidateBeforeCall(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new ApiException("Missing the required parameter 'orderId' when calling getOrderById(Async)"); @@ -402,7 +402,7 @@ public class StoreApi { 404 Order not found - */ - public Order getOrderById(Long orderId) throws ApiException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws ApiException { ApiResponse localVarResp = getOrderByIdWithHttpInfo(orderId); return localVarResp.getData(); } @@ -422,7 +422,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse getOrderByIdWithHttpInfo(Long orderId) throws ApiException { + public ApiResponse getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws ApiException { okhttp3.Call localVarCall = getOrderByIdValidateBeforeCall(orderId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -444,7 +444,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call getOrderByIdAsync(Long orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getOrderByIdAsync(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getOrderByIdValidateBeforeCall(orderId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -465,7 +465,7 @@ public class StoreApi { 400 Invalid Order - */ - public okhttp3.Call placeOrderCall(Order body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call placeOrderCall(@javax.annotation.Nonnull Order body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -511,7 +511,7 @@ public class StoreApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call placeOrderValidateBeforeCall(Order body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call placeOrderValidateBeforeCall(@javax.annotation.Nonnull Order body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling placeOrder(Async)"); @@ -535,7 +535,7 @@ public class StoreApi { 400 Invalid Order - */ - public Order placeOrder(Order body) throws ApiException { + public Order placeOrder(@javax.annotation.Nonnull Order body) throws ApiException { ApiResponse localVarResp = placeOrderWithHttpInfo(body); return localVarResp.getData(); } @@ -554,7 +554,7 @@ public class StoreApi { 400 Invalid Order - */ - public ApiResponse placeOrderWithHttpInfo(Order body) throws ApiException { + public ApiResponse placeOrderWithHttpInfo(@javax.annotation.Nonnull Order body) throws ApiException { okhttp3.Call localVarCall = placeOrderValidateBeforeCall(body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -575,7 +575,7 @@ public class StoreApi { 400 Invalid Order - */ - public okhttp3.Call placeOrderAsync(Order body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call placeOrderAsync(@javax.annotation.Nonnull Order body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = placeOrderValidateBeforeCall(body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/UserApi.java index 10b658a3e43..80d62232558 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/UserApi.java @@ -86,7 +86,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUserCall(User body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUserCall(@javax.annotation.Nonnull User body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -130,7 +130,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createUserValidateBeforeCall(User body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUserValidateBeforeCall(@javax.annotation.Nonnull User body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createUser(Async)"); @@ -152,7 +152,7 @@ public class UserApi { 0 successful operation - */ - public void createUser(User body) throws ApiException { + public void createUser(@javax.annotation.Nonnull User body) throws ApiException { createUserWithHttpInfo(body); } @@ -169,7 +169,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUserWithHttpInfo(User body) throws ApiException { + public ApiResponse createUserWithHttpInfo(@javax.annotation.Nonnull User body) throws ApiException { okhttp3.Call localVarCall = createUserValidateBeforeCall(body, null); return localVarApiClient.execute(localVarCall); } @@ -188,7 +188,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUserAsync(User body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUserAsync(@javax.annotation.Nonnull User body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUserValidateBeforeCall(body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -207,7 +207,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithArrayInputCall(List body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithArrayInputCall(@javax.annotation.Nonnull List body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -251,7 +251,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createUsersWithArrayInputValidateBeforeCall(List body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUsersWithArrayInputValidateBeforeCall(@javax.annotation.Nonnull List body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createUsersWithArrayInput(Async)"); @@ -273,7 +273,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithArrayInput(List body) throws ApiException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List body) throws ApiException { createUsersWithArrayInputWithHttpInfo(body); } @@ -290,7 +290,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithArrayInputWithHttpInfo(List body) throws ApiException { + public ApiResponse createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List body) throws ApiException { okhttp3.Call localVarCall = createUsersWithArrayInputValidateBeforeCall(body, null); return localVarApiClient.execute(localVarCall); } @@ -309,7 +309,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithArrayInputAsync(List body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithArrayInputAsync(@javax.annotation.Nonnull List body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUsersWithArrayInputValidateBeforeCall(body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -328,7 +328,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithListInputCall(List body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithListInputCall(@javax.annotation.Nonnull List body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -372,7 +372,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createUsersWithListInputValidateBeforeCall(List body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUsersWithListInputValidateBeforeCall(@javax.annotation.Nonnull List body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createUsersWithListInput(Async)"); @@ -394,7 +394,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithListInput(List body) throws ApiException { + public void createUsersWithListInput(@javax.annotation.Nonnull List body) throws ApiException { createUsersWithListInputWithHttpInfo(body); } @@ -411,7 +411,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithListInputWithHttpInfo(List body) throws ApiException { + public ApiResponse createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List body) throws ApiException { okhttp3.Call localVarCall = createUsersWithListInputValidateBeforeCall(body, null); return localVarApiClient.execute(localVarCall); } @@ -430,7 +430,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithListInputAsync(List body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithListInputAsync(@javax.annotation.Nonnull List body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUsersWithListInputValidateBeforeCall(body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -450,7 +450,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call deleteUserCall(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUserCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -495,7 +495,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteUserValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteUserValidateBeforeCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling deleteUser(Async)"); @@ -518,7 +518,7 @@ public class UserApi { 404 User not found - */ - public void deleteUser(String username) throws ApiException { + public void deleteUser(@javax.annotation.Nonnull String username) throws ApiException { deleteUserWithHttpInfo(username); } @@ -536,7 +536,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse deleteUserWithHttpInfo(String username) throws ApiException { + public ApiResponse deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { okhttp3.Call localVarCall = deleteUserValidateBeforeCall(username, null); return localVarApiClient.execute(localVarCall); } @@ -556,7 +556,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call deleteUserAsync(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUserAsync(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteUserValidateBeforeCall(username, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -577,7 +577,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call getUserByNameCall(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUserByNameCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -624,7 +624,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getUserByNameValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserByNameValidateBeforeCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling getUserByName(Async)"); @@ -649,7 +649,7 @@ public class UserApi { 404 User not found - */ - public User getUserByName(String username) throws ApiException { + public User getUserByName(@javax.annotation.Nonnull String username) throws ApiException { ApiResponse localVarResp = getUserByNameWithHttpInfo(username); return localVarResp.getData(); } @@ -669,7 +669,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse getUserByNameWithHttpInfo(String username) throws ApiException { + public ApiResponse getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { okhttp3.Call localVarCall = getUserByNameValidateBeforeCall(username, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -691,7 +691,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call getUserByNameAsync(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUserByNameAsync(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserByNameValidateBeforeCall(username, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -713,7 +713,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public okhttp3.Call loginUserCall(String username, String password, final ApiCallback _callback) throws ApiException { + public okhttp3.Call loginUserCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -767,7 +767,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call loginUserValidateBeforeCall(String username, String password, final ApiCallback _callback) throws ApiException { + private okhttp3.Call loginUserValidateBeforeCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling loginUser(Async)"); @@ -797,7 +797,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public String loginUser(String username, String password) throws ApiException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { ApiResponse localVarResp = loginUserWithHttpInfo(username, password); return localVarResp.getData(); } @@ -817,7 +817,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public ApiResponse loginUserWithHttpInfo(String username, String password) throws ApiException { + public ApiResponse loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { okhttp3.Call localVarCall = loginUserValidateBeforeCall(username, password, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -839,7 +839,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public okhttp3.Call loginUserAsync(String username, String password, final ApiCallback _callback) throws ApiException { + public okhttp3.Call loginUserAsync(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = loginUserValidateBeforeCall(username, password, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -973,7 +973,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call updateUserCall(String username, User body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateUserCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1018,7 +1018,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updateUserValidateBeforeCall(String username, User body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateUserValidateBeforeCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling updateUser(Async)"); @@ -1047,7 +1047,7 @@ public class UserApi { 404 User not found - */ - public void updateUser(String username, User body) throws ApiException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User body) throws ApiException { updateUserWithHttpInfo(username, body); } @@ -1066,7 +1066,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse updateUserWithHttpInfo(String username, User body) throws ApiException { + public ApiResponse updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User body) throws ApiException { okhttp3.Call localVarCall = updateUserValidateBeforeCall(username, body, null); return localVarApiClient.execute(localVarCall); } @@ -1087,7 +1087,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call updateUserAsync(String username, User body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateUserAsync(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateUserValidateBeforeCall(username, body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/api/CommonApi.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/api/CommonApi.java index d6a90075eb4..c54cee6dd2f 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/api/CommonApi.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/api/CommonApi.java @@ -91,7 +91,7 @@ public class CommonApi { 405 Invalid input - */ - public okhttp3.Call addPetCall(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addPetCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -139,7 +139,7 @@ public class CommonApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call addPetValidateBeforeCall(Pet pet, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addPetValidateBeforeCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { // verify the required parameter 'pet' is set if (pet == null) { throw new ApiException("Missing the required parameter 'pet' when calling addPet(Async)"); @@ -163,7 +163,7 @@ public class CommonApi { 405 Invalid input - */ - public Pet addPet(Pet pet) throws ApiException { + public Pet addPet(@javax.annotation.Nonnull Pet pet) throws ApiException { ApiResponse localVarResp = addPetWithHttpInfo(pet); return localVarResp.getData(); } @@ -182,7 +182,7 @@ public class CommonApi { 405 Invalid input - */ - public ApiResponse addPetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse addPetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException { okhttp3.Call localVarCall = addPetValidateBeforeCall(pet, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -203,7 +203,7 @@ public class CommonApi { 405 Invalid input - */ - public okhttp3.Call addPetAsync(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addPetAsync(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = addPetValidateBeforeCall(pet, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -223,7 +223,7 @@ public class CommonApi { 0 successful operation - */ - public okhttp3.Call createUserCall(User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUserCall(@javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -268,7 +268,7 @@ public class CommonApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createUserValidateBeforeCall(User user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUserValidateBeforeCall(@javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling createUser(Async)"); @@ -290,7 +290,7 @@ public class CommonApi { 0 successful operation - */ - public void createUser(User user) throws ApiException { + public void createUser(@javax.annotation.Nonnull User user) throws ApiException { createUserWithHttpInfo(user); } @@ -307,7 +307,7 @@ public class CommonApi { 0 successful operation - */ - public ApiResponse createUserWithHttpInfo(User user) throws ApiException { + public ApiResponse createUserWithHttpInfo(@javax.annotation.Nonnull User user) throws ApiException { okhttp3.Call localVarCall = createUserValidateBeforeCall(user, null); return localVarApiClient.execute(localVarCall); } @@ -326,7 +326,7 @@ public class CommonApi { 0 successful operation - */ - public okhttp3.Call createUserAsync(User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUserAsync(@javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUserValidateBeforeCall(user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -345,7 +345,7 @@ public class CommonApi { 0 successful operation - */ - public okhttp3.Call createUsersWithArrayInputCall(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithArrayInputCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -390,7 +390,7 @@ public class CommonApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createUsersWithArrayInputValidateBeforeCall(List user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUsersWithArrayInputValidateBeforeCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling createUsersWithArrayInput(Async)"); @@ -412,7 +412,7 @@ public class CommonApi { 0 successful operation - */ - public void createUsersWithArrayInput(List user) throws ApiException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List user) throws ApiException { createUsersWithArrayInputWithHttpInfo(user); } @@ -429,7 +429,7 @@ public class CommonApi { 0 successful operation - */ - public ApiResponse createUsersWithArrayInputWithHttpInfo(List user) throws ApiException { + public ApiResponse createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List user) throws ApiException { okhttp3.Call localVarCall = createUsersWithArrayInputValidateBeforeCall(user, null); return localVarApiClient.execute(localVarCall); } @@ -448,7 +448,7 @@ public class CommonApi { 0 successful operation - */ - public okhttp3.Call createUsersWithArrayInputAsync(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithArrayInputAsync(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUsersWithArrayInputValidateBeforeCall(user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -467,7 +467,7 @@ public class CommonApi { 0 successful operation - */ - public okhttp3.Call createUsersWithListInputCall(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithListInputCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -512,7 +512,7 @@ public class CommonApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createUsersWithListInputValidateBeforeCall(List user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUsersWithListInputValidateBeforeCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling createUsersWithListInput(Async)"); @@ -534,7 +534,7 @@ public class CommonApi { 0 successful operation - */ - public void createUsersWithListInput(List user) throws ApiException { + public void createUsersWithListInput(@javax.annotation.Nonnull List user) throws ApiException { createUsersWithListInputWithHttpInfo(user); } @@ -551,7 +551,7 @@ public class CommonApi { 0 successful operation - */ - public ApiResponse createUsersWithListInputWithHttpInfo(List user) throws ApiException { + public ApiResponse createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List user) throws ApiException { okhttp3.Call localVarCall = createUsersWithListInputValidateBeforeCall(user, null); return localVarApiClient.execute(localVarCall); } @@ -570,7 +570,7 @@ public class CommonApi { 0 successful operation - */ - public okhttp3.Call createUsersWithListInputAsync(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithListInputAsync(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUsersWithListInputValidateBeforeCall(user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -590,7 +590,7 @@ public class CommonApi { 404 Order not found - */ - public okhttp3.Call deleteOrderCall(String orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteOrderCall(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -635,7 +635,7 @@ public class CommonApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteOrderValidateBeforeCall(String orderId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteOrderValidateBeforeCall(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new ApiException("Missing the required parameter 'orderId' when calling deleteOrder(Async)"); @@ -658,7 +658,7 @@ public class CommonApi { 404 Order not found - */ - public void deleteOrder(String orderId) throws ApiException { + public void deleteOrder(@javax.annotation.Nonnull String orderId) throws ApiException { deleteOrderWithHttpInfo(orderId); } @@ -676,7 +676,7 @@ public class CommonApi { 404 Order not found - */ - public ApiResponse deleteOrderWithHttpInfo(String orderId) throws ApiException { + public ApiResponse deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws ApiException { okhttp3.Call localVarCall = deleteOrderValidateBeforeCall(orderId, null); return localVarApiClient.execute(localVarCall); } @@ -696,7 +696,7 @@ public class CommonApi { 404 Order not found - */ - public okhttp3.Call deleteOrderAsync(String orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteOrderAsync(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteOrderValidateBeforeCall(orderId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -716,7 +716,7 @@ public class CommonApi { 400 Invalid pet value - */ - public okhttp3.Call deletePetCall(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deletePetCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -766,7 +766,7 @@ public class CommonApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deletePetValidateBeforeCall(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deletePetValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling deletePet(Async)"); @@ -789,7 +789,7 @@ public class CommonApi { 400 Invalid pet value - */ - public void deletePet(Long petId, String apiKey) throws ApiException { + public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { deletePetWithHttpInfo(petId, apiKey); } @@ -807,7 +807,7 @@ public class CommonApi { 400 Invalid pet value - */ - public ApiResponse deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException { + public ApiResponse deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { okhttp3.Call localVarCall = deletePetValidateBeforeCall(petId, apiKey, null); return localVarApiClient.execute(localVarCall); } @@ -827,7 +827,7 @@ public class CommonApi { 400 Invalid pet value - */ - public okhttp3.Call deletePetAsync(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deletePetAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deletePetValidateBeforeCall(petId, apiKey, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -847,7 +847,7 @@ public class CommonApi { 404 User not found - */ - public okhttp3.Call deleteUserCall(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUserCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -892,7 +892,7 @@ public class CommonApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteUserValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteUserValidateBeforeCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling deleteUser(Async)"); @@ -915,7 +915,7 @@ public class CommonApi { 404 User not found - */ - public void deleteUser(String username) throws ApiException { + public void deleteUser(@javax.annotation.Nonnull String username) throws ApiException { deleteUserWithHttpInfo(username); } @@ -933,7 +933,7 @@ public class CommonApi { 404 User not found - */ - public ApiResponse deleteUserWithHttpInfo(String username) throws ApiException { + public ApiResponse deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { okhttp3.Call localVarCall = deleteUserValidateBeforeCall(username, null); return localVarApiClient.execute(localVarCall); } @@ -953,7 +953,7 @@ public class CommonApi { 404 User not found - */ - public okhttp3.Call deleteUserAsync(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUserAsync(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteUserValidateBeforeCall(username, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -973,7 +973,7 @@ public class CommonApi { 400 Invalid status value - */ - public okhttp3.Call findPetsByStatusCall(List status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findPetsByStatusCall(@javax.annotation.Nonnull List status, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1023,7 +1023,7 @@ public class CommonApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call findPetsByStatusValidateBeforeCall(List status, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findPetsByStatusValidateBeforeCall(@javax.annotation.Nonnull List status, final ApiCallback _callback) throws ApiException { // verify the required parameter 'status' is set if (status == null) { throw new ApiException("Missing the required parameter 'status' when calling findPetsByStatus(Async)"); @@ -1047,7 +1047,7 @@ public class CommonApi { 400 Invalid status value - */ - public List findPetsByStatus(List status) throws ApiException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws ApiException { ApiResponse> localVarResp = findPetsByStatusWithHttpInfo(status); return localVarResp.getData(); } @@ -1066,7 +1066,7 @@ public class CommonApi { 400 Invalid status value - */ - public ApiResponse> findPetsByStatusWithHttpInfo(List status) throws ApiException { + public ApiResponse> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws ApiException { okhttp3.Call localVarCall = findPetsByStatusValidateBeforeCall(status, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1087,7 +1087,7 @@ public class CommonApi { 400 Invalid status value - */ - public okhttp3.Call findPetsByStatusAsync(List status, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call findPetsByStatusAsync(@javax.annotation.Nonnull List status, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = findPetsByStatusValidateBeforeCall(status, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); @@ -1110,7 +1110,7 @@ public class CommonApi { * @deprecated */ @Deprecated - public okhttp3.Call findPetsByTagsCall(List tags, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findPetsByTagsCall(@javax.annotation.Nonnull List tags, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1161,7 +1161,7 @@ public class CommonApi { @Deprecated @SuppressWarnings("rawtypes") - private okhttp3.Call findPetsByTagsValidateBeforeCall(List tags, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findPetsByTagsValidateBeforeCall(@javax.annotation.Nonnull List tags, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tags' is set if (tags == null) { throw new ApiException("Missing the required parameter 'tags' when calling findPetsByTags(Async)"); @@ -1187,7 +1187,7 @@ public class CommonApi { * @deprecated */ @Deprecated - public List findPetsByTags(List tags) throws ApiException { + public List findPetsByTags(@javax.annotation.Nonnull List tags) throws ApiException { ApiResponse> localVarResp = findPetsByTagsWithHttpInfo(tags); return localVarResp.getData(); } @@ -1208,7 +1208,7 @@ public class CommonApi { * @deprecated */ @Deprecated - public ApiResponse> findPetsByTagsWithHttpInfo(List tags) throws ApiException { + public ApiResponse> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull List tags) throws ApiException { okhttp3.Call localVarCall = findPetsByTagsValidateBeforeCall(tags, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1231,7 +1231,7 @@ public class CommonApi { * @deprecated */ @Deprecated - public okhttp3.Call findPetsByTagsAsync(List tags, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call findPetsByTagsAsync(@javax.annotation.Nonnull List tags, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = findPetsByTagsValidateBeforeCall(tags, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); @@ -1370,7 +1370,7 @@ public class CommonApi { 404 Order not found - */ - public okhttp3.Call getOrderByIdCall(Long orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getOrderByIdCall(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1417,7 +1417,7 @@ public class CommonApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getOrderByIdValidateBeforeCall(Long orderId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getOrderByIdValidateBeforeCall(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new ApiException("Missing the required parameter 'orderId' when calling getOrderById(Async)"); @@ -1442,7 +1442,7 @@ public class CommonApi { 404 Order not found - */ - public Order getOrderById(Long orderId) throws ApiException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws ApiException { ApiResponse localVarResp = getOrderByIdWithHttpInfo(orderId); return localVarResp.getData(); } @@ -1462,7 +1462,7 @@ public class CommonApi { 404 Order not found - */ - public ApiResponse getOrderByIdWithHttpInfo(Long orderId) throws ApiException { + public ApiResponse getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws ApiException { okhttp3.Call localVarCall = getOrderByIdValidateBeforeCall(orderId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1484,7 +1484,7 @@ public class CommonApi { 404 Order not found - */ - public okhttp3.Call getOrderByIdAsync(Long orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getOrderByIdAsync(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getOrderByIdValidateBeforeCall(orderId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1506,7 +1506,7 @@ public class CommonApi { 404 Pet not found - */ - public okhttp3.Call getPetByIdCall(Long petId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPetByIdCall(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1553,7 +1553,7 @@ public class CommonApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getPetByIdValidateBeforeCall(Long petId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPetByIdValidateBeforeCall(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling getPetById(Async)"); @@ -1578,7 +1578,7 @@ public class CommonApi { 404 Pet not found - */ - public Pet getPetById(Long petId) throws ApiException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws ApiException { ApiResponse localVarResp = getPetByIdWithHttpInfo(petId); return localVarResp.getData(); } @@ -1598,7 +1598,7 @@ public class CommonApi { 404 Pet not found - */ - public ApiResponse getPetByIdWithHttpInfo(Long petId) throws ApiException { + public ApiResponse getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws ApiException { okhttp3.Call localVarCall = getPetByIdValidateBeforeCall(petId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1620,7 +1620,7 @@ public class CommonApi { 404 Pet not found - */ - public okhttp3.Call getPetByIdAsync(Long petId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPetByIdAsync(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPetByIdValidateBeforeCall(petId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1642,7 +1642,7 @@ public class CommonApi { 404 User not found - */ - public okhttp3.Call getUserByNameCall(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUserByNameCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1689,7 +1689,7 @@ public class CommonApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getUserByNameValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserByNameValidateBeforeCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling getUserByName(Async)"); @@ -1714,7 +1714,7 @@ public class CommonApi { 404 User not found - */ - public User getUserByName(String username) throws ApiException { + public User getUserByName(@javax.annotation.Nonnull String username) throws ApiException { ApiResponse localVarResp = getUserByNameWithHttpInfo(username); return localVarResp.getData(); } @@ -1734,7 +1734,7 @@ public class CommonApi { 404 User not found - */ - public ApiResponse getUserByNameWithHttpInfo(String username) throws ApiException { + public ApiResponse getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { okhttp3.Call localVarCall = getUserByNameValidateBeforeCall(username, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1756,7 +1756,7 @@ public class CommonApi { 404 User not found - */ - public okhttp3.Call getUserByNameAsync(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUserByNameAsync(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserByNameValidateBeforeCall(username, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1778,7 +1778,7 @@ public class CommonApi { 400 Invalid username/password supplied - */ - public okhttp3.Call loginUserCall(String username, String password, final ApiCallback _callback) throws ApiException { + public okhttp3.Call loginUserCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1832,7 +1832,7 @@ public class CommonApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call loginUserValidateBeforeCall(String username, String password, final ApiCallback _callback) throws ApiException { + private okhttp3.Call loginUserValidateBeforeCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling loginUser(Async)"); @@ -1862,7 +1862,7 @@ public class CommonApi { 400 Invalid username/password supplied - */ - public String loginUser(String username, String password) throws ApiException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { ApiResponse localVarResp = loginUserWithHttpInfo(username, password); return localVarResp.getData(); } @@ -1882,7 +1882,7 @@ public class CommonApi { 400 Invalid username/password supplied - */ - public ApiResponse loginUserWithHttpInfo(String username, String password) throws ApiException { + public ApiResponse loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { okhttp3.Call localVarCall = loginUserValidateBeforeCall(username, password, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1904,7 +1904,7 @@ public class CommonApi { 400 Invalid username/password supplied - */ - public okhttp3.Call loginUserAsync(String username, String password, final ApiCallback _callback) throws ApiException { + public okhttp3.Call loginUserAsync(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = loginUserValidateBeforeCall(username, password, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2037,7 +2037,7 @@ public class CommonApi { 400 Invalid Order - */ - public okhttp3.Call placeOrderCall(Order order, final ApiCallback _callback) throws ApiException { + public okhttp3.Call placeOrderCall(@javax.annotation.Nonnull Order order, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2084,7 +2084,7 @@ public class CommonApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call placeOrderValidateBeforeCall(Order order, final ApiCallback _callback) throws ApiException { + private okhttp3.Call placeOrderValidateBeforeCall(@javax.annotation.Nonnull Order order, final ApiCallback _callback) throws ApiException { // verify the required parameter 'order' is set if (order == null) { throw new ApiException("Missing the required parameter 'order' when calling placeOrder(Async)"); @@ -2108,7 +2108,7 @@ public class CommonApi { 400 Invalid Order - */ - public Order placeOrder(Order order) throws ApiException { + public Order placeOrder(@javax.annotation.Nonnull Order order) throws ApiException { ApiResponse localVarResp = placeOrderWithHttpInfo(order); return localVarResp.getData(); } @@ -2127,7 +2127,7 @@ public class CommonApi { 400 Invalid Order - */ - public ApiResponse placeOrderWithHttpInfo(Order order) throws ApiException { + public ApiResponse placeOrderWithHttpInfo(@javax.annotation.Nonnull Order order) throws ApiException { okhttp3.Call localVarCall = placeOrderValidateBeforeCall(order, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -2148,7 +2148,7 @@ public class CommonApi { 400 Invalid Order - */ - public okhttp3.Call placeOrderAsync(Order order, final ApiCallback _callback) throws ApiException { + public okhttp3.Call placeOrderAsync(@javax.annotation.Nonnull Order order, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = placeOrderValidateBeforeCall(order, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2173,7 +2173,7 @@ public class CommonApi { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public okhttp3.Call updatePetCall(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2221,7 +2221,7 @@ public class CommonApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updatePetValidateBeforeCall(Pet pet, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updatePetValidateBeforeCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { // verify the required parameter 'pet' is set if (pet == null) { throw new ApiException("Missing the required parameter 'pet' when calling updatePet(Async)"); @@ -2249,7 +2249,7 @@ public class CommonApi { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public Pet updatePet(Pet pet) throws ApiException { + public Pet updatePet(@javax.annotation.Nonnull Pet pet) throws ApiException { ApiResponse localVarResp = updatePetWithHttpInfo(pet); return localVarResp.getData(); } @@ -2272,7 +2272,7 @@ public class CommonApi { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public ApiResponse updatePetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse updatePetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException { okhttp3.Call localVarCall = updatePetValidateBeforeCall(pet, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -2297,7 +2297,7 @@ public class CommonApi { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public okhttp3.Call updatePetAsync(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetAsync(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updatePetValidateBeforeCall(pet, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2319,7 +2319,7 @@ public class CommonApi { 405 Invalid input - */ - public okhttp3.Call updatePetWithFormCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetWithFormCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2373,7 +2373,7 @@ public class CommonApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updatePetWithFormValidateBeforeCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updatePetWithFormValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling updatePetWithForm(Async)"); @@ -2397,7 +2397,7 @@ public class CommonApi { 405 Invalid input - */ - public void updatePetWithForm(Long petId, String name, String status) throws ApiException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -2416,7 +2416,7 @@ public class CommonApi { 405 Invalid input - */ - public ApiResponse updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException { + public ApiResponse updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { okhttp3.Call localVarCall = updatePetWithFormValidateBeforeCall(petId, name, status, null); return localVarApiClient.execute(localVarCall); } @@ -2437,7 +2437,7 @@ public class CommonApi { 405 Invalid input - */ - public okhttp3.Call updatePetWithFormAsync(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetWithFormAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updatePetWithFormValidateBeforeCall(petId, name, status, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -2458,7 +2458,7 @@ public class CommonApi { 404 User not found - */ - public okhttp3.Call updateUserCall(String username, User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateUserCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2504,7 +2504,7 @@ public class CommonApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updateUserValidateBeforeCall(String username, User user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateUserValidateBeforeCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling updateUser(Async)"); @@ -2533,7 +2533,7 @@ public class CommonApi { 404 User not found - */ - public void updateUser(String username, User user) throws ApiException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { updateUserWithHttpInfo(username, user); } @@ -2552,7 +2552,7 @@ public class CommonApi { 404 User not found - */ - public ApiResponse updateUserWithHttpInfo(String username, User user) throws ApiException { + public ApiResponse updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { okhttp3.Call localVarCall = updateUserValidateBeforeCall(username, user, null); return localVarApiClient.execute(localVarCall); } @@ -2573,7 +2573,7 @@ public class CommonApi { 404 User not found - */ - public okhttp3.Call updateUserAsync(String username, User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateUserAsync(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateUserValidateBeforeCall(username, user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -2594,7 +2594,7 @@ public class CommonApi { 200 successful operation - */ - public okhttp3.Call uploadFileCall(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2649,7 +2649,7 @@ public class CommonApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call uploadFileValidateBeforeCall(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + private okhttp3.Call uploadFileValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling uploadFile(Async)"); @@ -2674,7 +2674,7 @@ public class CommonApi { 200 successful operation - */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws ApiException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { ApiResponse localVarResp = uploadFileWithHttpInfo(petId, additionalMetadata, _file); return localVarResp.getData(); } @@ -2694,7 +2694,7 @@ public class CommonApi { 200 successful operation - */ - public ApiResponse uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws ApiException { + public ApiResponse uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { okhttp3.Call localVarCall = uploadFileValidateBeforeCall(petId, additionalMetadata, _file, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -2716,7 +2716,7 @@ public class CommonApi { 200 successful operation - */ - public okhttp3.Call uploadFileAsync(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = uploadFileValidateBeforeCall(petId, additionalMetadata, _file, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/api/PetApi.java index 5766da3819b..7c146cd617b 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/api/PetApi.java @@ -88,7 +88,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call addPetCall(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addPetCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -136,7 +136,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call addPetValidateBeforeCall(Pet pet, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addPetValidateBeforeCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { // verify the required parameter 'pet' is set if (pet == null) { throw new ApiException("Missing the required parameter 'pet' when calling addPet(Async)"); @@ -160,7 +160,7 @@ public class PetApi { 405 Invalid input - */ - public Pet addPet(Pet pet) throws ApiException { + public Pet addPet(@javax.annotation.Nonnull Pet pet) throws ApiException { ApiResponse localVarResp = addPetWithHttpInfo(pet); return localVarResp.getData(); } @@ -179,7 +179,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse addPetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse addPetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException { okhttp3.Call localVarCall = addPetValidateBeforeCall(pet, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -200,7 +200,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call addPetAsync(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addPetAsync(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = addPetValidateBeforeCall(pet, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -221,7 +221,7 @@ public class PetApi { 400 Invalid pet value - */ - public okhttp3.Call deletePetCall(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deletePetCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -271,7 +271,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deletePetValidateBeforeCall(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deletePetValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling deletePet(Async)"); @@ -294,7 +294,7 @@ public class PetApi { 400 Invalid pet value - */ - public void deletePet(Long petId, String apiKey) throws ApiException { + public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { deletePetWithHttpInfo(petId, apiKey); } @@ -312,7 +312,7 @@ public class PetApi { 400 Invalid pet value - */ - public ApiResponse deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException { + public ApiResponse deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { okhttp3.Call localVarCall = deletePetValidateBeforeCall(petId, apiKey, null); return localVarApiClient.execute(localVarCall); } @@ -332,7 +332,7 @@ public class PetApi { 400 Invalid pet value - */ - public okhttp3.Call deletePetAsync(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deletePetAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deletePetValidateBeforeCall(petId, apiKey, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -352,7 +352,7 @@ public class PetApi { 400 Invalid status value - */ - public okhttp3.Call findPetsByStatusCall(List status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findPetsByStatusCall(@javax.annotation.Nonnull List status, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -402,7 +402,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call findPetsByStatusValidateBeforeCall(List status, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findPetsByStatusValidateBeforeCall(@javax.annotation.Nonnull List status, final ApiCallback _callback) throws ApiException { // verify the required parameter 'status' is set if (status == null) { throw new ApiException("Missing the required parameter 'status' when calling findPetsByStatus(Async)"); @@ -426,7 +426,7 @@ public class PetApi { 400 Invalid status value - */ - public List findPetsByStatus(List status) throws ApiException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws ApiException { ApiResponse> localVarResp = findPetsByStatusWithHttpInfo(status); return localVarResp.getData(); } @@ -445,7 +445,7 @@ public class PetApi { 400 Invalid status value - */ - public ApiResponse> findPetsByStatusWithHttpInfo(List status) throws ApiException { + public ApiResponse> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws ApiException { okhttp3.Call localVarCall = findPetsByStatusValidateBeforeCall(status, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -466,7 +466,7 @@ public class PetApi { 400 Invalid status value - */ - public okhttp3.Call findPetsByStatusAsync(List status, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call findPetsByStatusAsync(@javax.annotation.Nonnull List status, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = findPetsByStatusValidateBeforeCall(status, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); @@ -489,7 +489,7 @@ public class PetApi { * @deprecated */ @Deprecated - public okhttp3.Call findPetsByTagsCall(List tags, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findPetsByTagsCall(@javax.annotation.Nonnull List tags, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -540,7 +540,7 @@ public class PetApi { @Deprecated @SuppressWarnings("rawtypes") - private okhttp3.Call findPetsByTagsValidateBeforeCall(List tags, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findPetsByTagsValidateBeforeCall(@javax.annotation.Nonnull List tags, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tags' is set if (tags == null) { throw new ApiException("Missing the required parameter 'tags' when calling findPetsByTags(Async)"); @@ -566,7 +566,7 @@ public class PetApi { * @deprecated */ @Deprecated - public List findPetsByTags(List tags) throws ApiException { + public List findPetsByTags(@javax.annotation.Nonnull List tags) throws ApiException { ApiResponse> localVarResp = findPetsByTagsWithHttpInfo(tags); return localVarResp.getData(); } @@ -587,7 +587,7 @@ public class PetApi { * @deprecated */ @Deprecated - public ApiResponse> findPetsByTagsWithHttpInfo(List tags) throws ApiException { + public ApiResponse> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull List tags) throws ApiException { okhttp3.Call localVarCall = findPetsByTagsValidateBeforeCall(tags, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -610,7 +610,7 @@ public class PetApi { * @deprecated */ @Deprecated - public okhttp3.Call findPetsByTagsAsync(List tags, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call findPetsByTagsAsync(@javax.annotation.Nonnull List tags, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = findPetsByTagsValidateBeforeCall(tags, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); @@ -632,7 +632,7 @@ public class PetApi { 404 Pet not found - */ - public okhttp3.Call getPetByIdCall(Long petId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPetByIdCall(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -679,7 +679,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getPetByIdValidateBeforeCall(Long petId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPetByIdValidateBeforeCall(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling getPetById(Async)"); @@ -704,7 +704,7 @@ public class PetApi { 404 Pet not found - */ - public Pet getPetById(Long petId) throws ApiException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws ApiException { ApiResponse localVarResp = getPetByIdWithHttpInfo(petId); return localVarResp.getData(); } @@ -724,7 +724,7 @@ public class PetApi { 404 Pet not found - */ - public ApiResponse getPetByIdWithHttpInfo(Long petId) throws ApiException { + public ApiResponse getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws ApiException { okhttp3.Call localVarCall = getPetByIdValidateBeforeCall(petId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -746,7 +746,7 @@ public class PetApi { 404 Pet not found - */ - public okhttp3.Call getPetByIdAsync(Long petId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPetByIdAsync(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPetByIdValidateBeforeCall(petId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -771,7 +771,7 @@ public class PetApi { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public okhttp3.Call updatePetCall(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -819,7 +819,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updatePetValidateBeforeCall(Pet pet, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updatePetValidateBeforeCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { // verify the required parameter 'pet' is set if (pet == null) { throw new ApiException("Missing the required parameter 'pet' when calling updatePet(Async)"); @@ -847,7 +847,7 @@ public class PetApi { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public Pet updatePet(Pet pet) throws ApiException { + public Pet updatePet(@javax.annotation.Nonnull Pet pet) throws ApiException { ApiResponse localVarResp = updatePetWithHttpInfo(pet); return localVarResp.getData(); } @@ -870,7 +870,7 @@ public class PetApi { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public ApiResponse updatePetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse updatePetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException { okhttp3.Call localVarCall = updatePetValidateBeforeCall(pet, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -895,7 +895,7 @@ public class PetApi { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public okhttp3.Call updatePetAsync(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetAsync(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updatePetValidateBeforeCall(pet, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -917,7 +917,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call updatePetWithFormCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetWithFormCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -971,7 +971,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updatePetWithFormValidateBeforeCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updatePetWithFormValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling updatePetWithForm(Async)"); @@ -995,7 +995,7 @@ public class PetApi { 405 Invalid input - */ - public void updatePetWithForm(Long petId, String name, String status) throws ApiException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -1014,7 +1014,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException { + public ApiResponse updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { okhttp3.Call localVarCall = updatePetWithFormValidateBeforeCall(petId, name, status, null); return localVarApiClient.execute(localVarCall); } @@ -1035,7 +1035,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call updatePetWithFormAsync(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetWithFormAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updatePetWithFormValidateBeforeCall(petId, name, status, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -1056,7 +1056,7 @@ public class PetApi { 200 successful operation - */ - public okhttp3.Call uploadFileCall(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1111,7 +1111,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call uploadFileValidateBeforeCall(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + private okhttp3.Call uploadFileValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling uploadFile(Async)"); @@ -1136,7 +1136,7 @@ public class PetApi { 200 successful operation - */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws ApiException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { ApiResponse localVarResp = uploadFileWithHttpInfo(petId, additionalMetadata, _file); return localVarResp.getData(); } @@ -1156,7 +1156,7 @@ public class PetApi { 200 successful operation - */ - public ApiResponse uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws ApiException { + public ApiResponse uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { okhttp3.Call localVarCall = uploadFileValidateBeforeCall(petId, additionalMetadata, _file, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1178,7 +1178,7 @@ public class PetApi { 200 successful operation - */ - public okhttp3.Call uploadFileAsync(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = uploadFileValidateBeforeCall(petId, additionalMetadata, _file, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java index 1572d13a748..e1140a10a68 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java @@ -86,7 +86,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call deleteOrderCall(String orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteOrderCall(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -131,7 +131,7 @@ public class StoreApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteOrderValidateBeforeCall(String orderId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteOrderValidateBeforeCall(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new ApiException("Missing the required parameter 'orderId' when calling deleteOrder(Async)"); @@ -154,7 +154,7 @@ public class StoreApi { 404 Order not found - */ - public void deleteOrder(String orderId) throws ApiException { + public void deleteOrder(@javax.annotation.Nonnull String orderId) throws ApiException { deleteOrderWithHttpInfo(orderId); } @@ -172,7 +172,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse deleteOrderWithHttpInfo(String orderId) throws ApiException { + public ApiResponse deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws ApiException { okhttp3.Call localVarCall = deleteOrderValidateBeforeCall(orderId, null); return localVarApiClient.execute(localVarCall); } @@ -192,7 +192,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call deleteOrderAsync(String orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteOrderAsync(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteOrderValidateBeforeCall(orderId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -330,7 +330,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call getOrderByIdCall(Long orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getOrderByIdCall(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -377,7 +377,7 @@ public class StoreApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getOrderByIdValidateBeforeCall(Long orderId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getOrderByIdValidateBeforeCall(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new ApiException("Missing the required parameter 'orderId' when calling getOrderById(Async)"); @@ -402,7 +402,7 @@ public class StoreApi { 404 Order not found - */ - public Order getOrderById(Long orderId) throws ApiException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws ApiException { ApiResponse localVarResp = getOrderByIdWithHttpInfo(orderId); return localVarResp.getData(); } @@ -422,7 +422,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse getOrderByIdWithHttpInfo(Long orderId) throws ApiException { + public ApiResponse getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws ApiException { okhttp3.Call localVarCall = getOrderByIdValidateBeforeCall(orderId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -444,7 +444,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call getOrderByIdAsync(Long orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getOrderByIdAsync(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getOrderByIdValidateBeforeCall(orderId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -465,7 +465,7 @@ public class StoreApi { 400 Invalid Order - */ - public okhttp3.Call placeOrderCall(Order order, final ApiCallback _callback) throws ApiException { + public okhttp3.Call placeOrderCall(@javax.annotation.Nonnull Order order, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -512,7 +512,7 @@ public class StoreApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call placeOrderValidateBeforeCall(Order order, final ApiCallback _callback) throws ApiException { + private okhttp3.Call placeOrderValidateBeforeCall(@javax.annotation.Nonnull Order order, final ApiCallback _callback) throws ApiException { // verify the required parameter 'order' is set if (order == null) { throw new ApiException("Missing the required parameter 'order' when calling placeOrder(Async)"); @@ -536,7 +536,7 @@ public class StoreApi { 400 Invalid Order - */ - public Order placeOrder(Order order) throws ApiException { + public Order placeOrder(@javax.annotation.Nonnull Order order) throws ApiException { ApiResponse localVarResp = placeOrderWithHttpInfo(order); return localVarResp.getData(); } @@ -555,7 +555,7 @@ public class StoreApi { 400 Invalid Order - */ - public ApiResponse placeOrderWithHttpInfo(Order order) throws ApiException { + public ApiResponse placeOrderWithHttpInfo(@javax.annotation.Nonnull Order order) throws ApiException { okhttp3.Call localVarCall = placeOrderValidateBeforeCall(order, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -576,7 +576,7 @@ public class StoreApi { 400 Invalid Order - */ - public okhttp3.Call placeOrderAsync(Order order, final ApiCallback _callback) throws ApiException { + public okhttp3.Call placeOrderAsync(@javax.annotation.Nonnull Order order, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = placeOrderValidateBeforeCall(order, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/api/UserApi.java index 684295ba1bb..34d1386c02e 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/api/UserApi.java @@ -86,7 +86,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUserCall(User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUserCall(@javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -131,7 +131,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createUserValidateBeforeCall(User user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUserValidateBeforeCall(@javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling createUser(Async)"); @@ -153,7 +153,7 @@ public class UserApi { 0 successful operation - */ - public void createUser(User user) throws ApiException { + public void createUser(@javax.annotation.Nonnull User user) throws ApiException { createUserWithHttpInfo(user); } @@ -170,7 +170,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUserWithHttpInfo(User user) throws ApiException { + public ApiResponse createUserWithHttpInfo(@javax.annotation.Nonnull User user) throws ApiException { okhttp3.Call localVarCall = createUserValidateBeforeCall(user, null); return localVarApiClient.execute(localVarCall); } @@ -189,7 +189,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUserAsync(User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUserAsync(@javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUserValidateBeforeCall(user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -208,7 +208,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithArrayInputCall(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithArrayInputCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -253,7 +253,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createUsersWithArrayInputValidateBeforeCall(List user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUsersWithArrayInputValidateBeforeCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling createUsersWithArrayInput(Async)"); @@ -275,7 +275,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithArrayInput(List user) throws ApiException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List user) throws ApiException { createUsersWithArrayInputWithHttpInfo(user); } @@ -292,7 +292,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithArrayInputWithHttpInfo(List user) throws ApiException { + public ApiResponse createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List user) throws ApiException { okhttp3.Call localVarCall = createUsersWithArrayInputValidateBeforeCall(user, null); return localVarApiClient.execute(localVarCall); } @@ -311,7 +311,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithArrayInputAsync(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithArrayInputAsync(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUsersWithArrayInputValidateBeforeCall(user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -330,7 +330,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithListInputCall(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithListInputCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -375,7 +375,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createUsersWithListInputValidateBeforeCall(List user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUsersWithListInputValidateBeforeCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling createUsersWithListInput(Async)"); @@ -397,7 +397,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithListInput(List user) throws ApiException { + public void createUsersWithListInput(@javax.annotation.Nonnull List user) throws ApiException { createUsersWithListInputWithHttpInfo(user); } @@ -414,7 +414,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithListInputWithHttpInfo(List user) throws ApiException { + public ApiResponse createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List user) throws ApiException { okhttp3.Call localVarCall = createUsersWithListInputValidateBeforeCall(user, null); return localVarApiClient.execute(localVarCall); } @@ -433,7 +433,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithListInputAsync(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithListInputAsync(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUsersWithListInputValidateBeforeCall(user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -453,7 +453,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call deleteUserCall(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUserCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -498,7 +498,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteUserValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteUserValidateBeforeCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling deleteUser(Async)"); @@ -521,7 +521,7 @@ public class UserApi { 404 User not found - */ - public void deleteUser(String username) throws ApiException { + public void deleteUser(@javax.annotation.Nonnull String username) throws ApiException { deleteUserWithHttpInfo(username); } @@ -539,7 +539,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse deleteUserWithHttpInfo(String username) throws ApiException { + public ApiResponse deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { okhttp3.Call localVarCall = deleteUserValidateBeforeCall(username, null); return localVarApiClient.execute(localVarCall); } @@ -559,7 +559,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call deleteUserAsync(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUserAsync(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteUserValidateBeforeCall(username, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -580,7 +580,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call getUserByNameCall(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUserByNameCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -627,7 +627,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getUserByNameValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserByNameValidateBeforeCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling getUserByName(Async)"); @@ -652,7 +652,7 @@ public class UserApi { 404 User not found - */ - public User getUserByName(String username) throws ApiException { + public User getUserByName(@javax.annotation.Nonnull String username) throws ApiException { ApiResponse localVarResp = getUserByNameWithHttpInfo(username); return localVarResp.getData(); } @@ -672,7 +672,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse getUserByNameWithHttpInfo(String username) throws ApiException { + public ApiResponse getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { okhttp3.Call localVarCall = getUserByNameValidateBeforeCall(username, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -694,7 +694,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call getUserByNameAsync(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUserByNameAsync(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserByNameValidateBeforeCall(username, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -716,7 +716,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public okhttp3.Call loginUserCall(String username, String password, final ApiCallback _callback) throws ApiException { + public okhttp3.Call loginUserCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -770,7 +770,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call loginUserValidateBeforeCall(String username, String password, final ApiCallback _callback) throws ApiException { + private okhttp3.Call loginUserValidateBeforeCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling loginUser(Async)"); @@ -800,7 +800,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public String loginUser(String username, String password) throws ApiException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { ApiResponse localVarResp = loginUserWithHttpInfo(username, password); return localVarResp.getData(); } @@ -820,7 +820,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public ApiResponse loginUserWithHttpInfo(String username, String password) throws ApiException { + public ApiResponse loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { okhttp3.Call localVarCall = loginUserValidateBeforeCall(username, password, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -842,7 +842,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public okhttp3.Call loginUserAsync(String username, String password, final ApiCallback _callback) throws ApiException { + public okhttp3.Call loginUserAsync(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = loginUserValidateBeforeCall(username, password, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -976,7 +976,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call updateUserCall(String username, User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateUserCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1022,7 +1022,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updateUserValidateBeforeCall(String username, User user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateUserValidateBeforeCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling updateUser(Async)"); @@ -1051,7 +1051,7 @@ public class UserApi { 404 User not found - */ - public void updateUser(String username, User user) throws ApiException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { updateUserWithHttpInfo(username, user); } @@ -1070,7 +1070,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse updateUserWithHttpInfo(String username, User user) throws ApiException { + public ApiResponse updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { okhttp3.Call localVarCall = updateUserValidateBeforeCall(username, user, null); return localVarApiClient.execute(localVarCall); } @@ -1091,7 +1091,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call updateUserAsync(String username, User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateUserAsync(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateUserValidateBeforeCall(username, user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 7a3af3b79cc..c56456266c0 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -86,7 +86,7 @@ public class AnotherFakeApi { 200 successful operation - */ - public okhttp3.Call call123testSpecialTagsCall(Client client, final ApiCallback _callback) throws ApiException { + public okhttp3.Call call123testSpecialTagsCall(@javax.annotation.Nonnull Client client, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -132,7 +132,7 @@ public class AnotherFakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call call123testSpecialTagsValidateBeforeCall(Client client, final ApiCallback _callback) throws ApiException { + private okhttp3.Call call123testSpecialTagsValidateBeforeCall(@javax.annotation.Nonnull Client client, final ApiCallback _callback) throws ApiException { // verify the required parameter 'client' is set if (client == null) { throw new ApiException("Missing the required parameter 'client' when calling call123testSpecialTags(Async)"); @@ -155,7 +155,7 @@ public class AnotherFakeApi { 200 successful operation - */ - public Client call123testSpecialTags(Client client) throws ApiException { + public Client call123testSpecialTags(@javax.annotation.Nonnull Client client) throws ApiException { ApiResponse localVarResp = call123testSpecialTagsWithHttpInfo(client); return localVarResp.getData(); } @@ -173,7 +173,7 @@ public class AnotherFakeApi { 200 successful operation - */ - public ApiResponse call123testSpecialTagsWithHttpInfo(Client client) throws ApiException { + public ApiResponse call123testSpecialTagsWithHttpInfo(@javax.annotation.Nonnull Client client) throws ApiException { okhttp3.Call localVarCall = call123testSpecialTagsValidateBeforeCall(client, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -193,7 +193,7 @@ public class AnotherFakeApi { 200 successful operation - */ - public okhttp3.Call call123testSpecialTagsAsync(Client client, final ApiCallback _callback) throws ApiException { + public okhttp3.Call call123testSpecialTagsAsync(@javax.annotation.Nonnull Client client, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = call123testSpecialTagsValidateBeforeCall(client, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -213,7 +213,7 @@ public class AnotherFakeApi { 200 OK - */ - public okhttp3.Call getParameterArrayNumberCall(List array, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getParameterArrayNumberCall(@javax.annotation.Nonnull List array, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -262,7 +262,7 @@ public class AnotherFakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getParameterArrayNumberValidateBeforeCall(List array, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getParameterArrayNumberValidateBeforeCall(@javax.annotation.Nonnull List array, final ApiCallback _callback) throws ApiException { // verify the required parameter 'array' is set if (array == null) { throw new ApiException("Missing the required parameter 'array' when calling getParameterArrayNumber(Async)"); @@ -284,7 +284,7 @@ public class AnotherFakeApi { 200 OK - */ - public void getParameterArrayNumber(List array) throws ApiException { + public void getParameterArrayNumber(@javax.annotation.Nonnull List array) throws ApiException { getParameterArrayNumberWithHttpInfo(array); } @@ -301,7 +301,7 @@ public class AnotherFakeApi { 200 OK - */ - public ApiResponse getParameterArrayNumberWithHttpInfo(List array) throws ApiException { + public ApiResponse getParameterArrayNumberWithHttpInfo(@javax.annotation.Nonnull List array) throws ApiException { okhttp3.Call localVarCall = getParameterArrayNumberValidateBeforeCall(array, null); return localVarApiClient.execute(localVarCall); } @@ -320,7 +320,7 @@ public class AnotherFakeApi { 200 OK - */ - public okhttp3.Call getParameterArrayNumberAsync(List array, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getParameterArrayNumberAsync(@javax.annotation.Nonnull List array, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getParameterArrayNumberValidateBeforeCall(array, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -339,7 +339,7 @@ public class AnotherFakeApi { 200 OK - */ - public okhttp3.Call getParameterStringNumberCall(BigDecimal stringNumber, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getParameterStringNumberCall(@javax.annotation.Nonnull BigDecimal stringNumber, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -388,7 +388,7 @@ public class AnotherFakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getParameterStringNumberValidateBeforeCall(BigDecimal stringNumber, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getParameterStringNumberValidateBeforeCall(@javax.annotation.Nonnull BigDecimal stringNumber, final ApiCallback _callback) throws ApiException { // verify the required parameter 'stringNumber' is set if (stringNumber == null) { throw new ApiException("Missing the required parameter 'stringNumber' when calling getParameterStringNumber(Async)"); @@ -410,7 +410,7 @@ public class AnotherFakeApi { 200 OK - */ - public void getParameterStringNumber(BigDecimal stringNumber) throws ApiException { + public void getParameterStringNumber(@javax.annotation.Nonnull BigDecimal stringNumber) throws ApiException { getParameterStringNumberWithHttpInfo(stringNumber); } @@ -427,7 +427,7 @@ public class AnotherFakeApi { 200 OK - */ - public ApiResponse getParameterStringNumberWithHttpInfo(BigDecimal stringNumber) throws ApiException { + public ApiResponse getParameterStringNumberWithHttpInfo(@javax.annotation.Nonnull BigDecimal stringNumber) throws ApiException { okhttp3.Call localVarCall = getParameterStringNumberValidateBeforeCall(stringNumber, null); return localVarApiClient.execute(localVarCall); } @@ -446,7 +446,7 @@ public class AnotherFakeApi { 200 OK - */ - public okhttp3.Call getParameterStringNumberAsync(BigDecimal stringNumber, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getParameterStringNumberAsync(@javax.annotation.Nonnull BigDecimal stringNumber, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getParameterStringNumberValidateBeforeCall(stringNumber, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -465,7 +465,7 @@ public class AnotherFakeApi { 200 - */ - public okhttp3.Call nullRequestBodyCall(String acceptLanguage, final ApiCallback _callback) throws ApiException { + public okhttp3.Call nullRequestBodyCall(@javax.annotation.Nullable String acceptLanguage, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -515,7 +515,7 @@ public class AnotherFakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call nullRequestBodyValidateBeforeCall(String acceptLanguage, final ApiCallback _callback) throws ApiException { + private okhttp3.Call nullRequestBodyValidateBeforeCall(@javax.annotation.Nullable String acceptLanguage, final ApiCallback _callback) throws ApiException { return nullRequestBodyCall(acceptLanguage, _callback); } @@ -532,7 +532,7 @@ public class AnotherFakeApi { 200 - */ - public void nullRequestBody(String acceptLanguage) throws ApiException { + public void nullRequestBody(@javax.annotation.Nullable String acceptLanguage) throws ApiException { nullRequestBodyWithHttpInfo(acceptLanguage); } @@ -549,7 +549,7 @@ public class AnotherFakeApi { 200 - */ - public ApiResponse nullRequestBodyWithHttpInfo(String acceptLanguage) throws ApiException { + public ApiResponse nullRequestBodyWithHttpInfo(@javax.annotation.Nullable String acceptLanguage) throws ApiException { okhttp3.Call localVarCall = nullRequestBodyValidateBeforeCall(acceptLanguage, null); return localVarApiClient.execute(localVarCall); } @@ -568,7 +568,7 @@ public class AnotherFakeApi { 200 - */ - public okhttp3.Call nullRequestBodyAsync(String acceptLanguage, final ApiCallback _callback) throws ApiException { + public okhttp3.Call nullRequestBodyAsync(@javax.annotation.Nullable String acceptLanguage, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = nullRequestBodyValidateBeforeCall(acceptLanguage, _callback); localVarApiClient.executeAsync(localVarCall, _callback); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/DefaultApi.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/DefaultApi.java index 33e49acc65d..883cfba0e3a 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/DefaultApi.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/DefaultApi.java @@ -205,7 +205,7 @@ public class DefaultApi { 200 OK - */ - public okhttp3.Call fakeFreeFormQueryParametersGetCall(String fixed, Object freeForm, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeFreeFormQueryParametersGetCall(@javax.annotation.Nullable String fixed, @javax.annotation.Nullable Object freeForm, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -257,7 +257,7 @@ public class DefaultApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call fakeFreeFormQueryParametersGetValidateBeforeCall(String fixed, Object freeForm, final ApiCallback _callback) throws ApiException { + private okhttp3.Call fakeFreeFormQueryParametersGetValidateBeforeCall(@javax.annotation.Nullable String fixed, @javax.annotation.Nullable Object freeForm, final ApiCallback _callback) throws ApiException { return fakeFreeFormQueryParametersGetCall(fixed, freeForm, _callback); } @@ -275,7 +275,7 @@ public class DefaultApi { 200 OK - */ - public void fakeFreeFormQueryParametersGet(String fixed, Object freeForm) throws ApiException { + public void fakeFreeFormQueryParametersGet(@javax.annotation.Nullable String fixed, @javax.annotation.Nullable Object freeForm) throws ApiException { fakeFreeFormQueryParametersGetWithHttpInfo(fixed, freeForm); } @@ -293,7 +293,7 @@ public class DefaultApi { 200 OK - */ - public ApiResponse fakeFreeFormQueryParametersGetWithHttpInfo(String fixed, Object freeForm) throws ApiException { + public ApiResponse fakeFreeFormQueryParametersGetWithHttpInfo(@javax.annotation.Nullable String fixed, @javax.annotation.Nullable Object freeForm) throws ApiException { okhttp3.Call localVarCall = fakeFreeFormQueryParametersGetValidateBeforeCall(fixed, freeForm, null); return localVarApiClient.execute(localVarCall); } @@ -313,7 +313,7 @@ public class DefaultApi { 200 OK - */ - public okhttp3.Call fakeFreeFormQueryParametersGetAsync(String fixed, Object freeForm, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeFreeFormQueryParametersGetAsync(@javax.annotation.Nullable String fixed, @javax.annotation.Nullable Object freeForm, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = fakeFreeFormQueryParametersGetValidateBeforeCall(fixed, freeForm, _callback); localVarApiClient.executeAsync(localVarCall, _callback); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/FakeApi.java index 26fa4abab65..7055253c1a0 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/FakeApi.java @@ -215,7 +215,7 @@ public class FakeApi { 200 Output boolean - */ - public okhttp3.Call fakeOuterBooleanSerializeCall(Boolean body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterBooleanSerializeCall(@javax.annotation.Nullable Boolean body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -261,7 +261,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call fakeOuterBooleanSerializeValidateBeforeCall(Boolean body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call fakeOuterBooleanSerializeValidateBeforeCall(@javax.annotation.Nullable Boolean body, final ApiCallback _callback) throws ApiException { return fakeOuterBooleanSerializeCall(body, _callback); } @@ -279,7 +279,7 @@ public class FakeApi { 200 Output boolean - */ - public Boolean fakeOuterBooleanSerialize(Boolean body) throws ApiException { + public Boolean fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body) throws ApiException { ApiResponse localVarResp = fakeOuterBooleanSerializeWithHttpInfo(body); return localVarResp.getData(); } @@ -297,7 +297,7 @@ public class FakeApi { 200 Output boolean - */ - public ApiResponse fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws ApiException { + public ApiResponse fakeOuterBooleanSerializeWithHttpInfo(@javax.annotation.Nullable Boolean body) throws ApiException { okhttp3.Call localVarCall = fakeOuterBooleanSerializeValidateBeforeCall(body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -317,7 +317,7 @@ public class FakeApi { 200 Output boolean - */ - public okhttp3.Call fakeOuterBooleanSerializeAsync(Boolean body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterBooleanSerializeAsync(@javax.annotation.Nullable Boolean body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = fakeOuterBooleanSerializeValidateBeforeCall(body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -337,7 +337,7 @@ public class FakeApi { 200 Output composite - */ - public okhttp3.Call fakeOuterCompositeSerializeCall(OuterComposite outerComposite, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterCompositeSerializeCall(@javax.annotation.Nullable OuterComposite outerComposite, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -383,7 +383,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call fakeOuterCompositeSerializeValidateBeforeCall(OuterComposite outerComposite, final ApiCallback _callback) throws ApiException { + private okhttp3.Call fakeOuterCompositeSerializeValidateBeforeCall(@javax.annotation.Nullable OuterComposite outerComposite, final ApiCallback _callback) throws ApiException { return fakeOuterCompositeSerializeCall(outerComposite, _callback); } @@ -401,7 +401,7 @@ public class FakeApi { 200 Output composite - */ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException { + public OuterComposite fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite outerComposite) throws ApiException { ApiResponse localVarResp = fakeOuterCompositeSerializeWithHttpInfo(outerComposite); return localVarResp.getData(); } @@ -419,7 +419,7 @@ public class FakeApi { 200 Output composite - */ - public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws ApiException { + public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(@javax.annotation.Nullable OuterComposite outerComposite) throws ApiException { okhttp3.Call localVarCall = fakeOuterCompositeSerializeValidateBeforeCall(outerComposite, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -439,7 +439,7 @@ public class FakeApi { 200 Output composite - */ - public okhttp3.Call fakeOuterCompositeSerializeAsync(OuterComposite outerComposite, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterCompositeSerializeAsync(@javax.annotation.Nullable OuterComposite outerComposite, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = fakeOuterCompositeSerializeValidateBeforeCall(outerComposite, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -459,7 +459,7 @@ public class FakeApi { 200 Output number - */ - public okhttp3.Call fakeOuterNumberSerializeCall(BigDecimal body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterNumberSerializeCall(@javax.annotation.Nullable BigDecimal body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -505,7 +505,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call fakeOuterNumberSerializeValidateBeforeCall(BigDecimal body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call fakeOuterNumberSerializeValidateBeforeCall(@javax.annotation.Nullable BigDecimal body, final ApiCallback _callback) throws ApiException { return fakeOuterNumberSerializeCall(body, _callback); } @@ -523,7 +523,7 @@ public class FakeApi { 200 Output number - */ - public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws ApiException { + public BigDecimal fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body) throws ApiException { ApiResponse localVarResp = fakeOuterNumberSerializeWithHttpInfo(body); return localVarResp.getData(); } @@ -541,7 +541,7 @@ public class FakeApi { 200 Output number - */ - public ApiResponse fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws ApiException { + public ApiResponse fakeOuterNumberSerializeWithHttpInfo(@javax.annotation.Nullable BigDecimal body) throws ApiException { okhttp3.Call localVarCall = fakeOuterNumberSerializeValidateBeforeCall(body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -561,7 +561,7 @@ public class FakeApi { 200 Output number - */ - public okhttp3.Call fakeOuterNumberSerializeAsync(BigDecimal body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterNumberSerializeAsync(@javax.annotation.Nullable BigDecimal body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = fakeOuterNumberSerializeValidateBeforeCall(body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -581,7 +581,7 @@ public class FakeApi { 200 Output string - */ - public okhttp3.Call fakeOuterStringSerializeCall(String body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterStringSerializeCall(@javax.annotation.Nullable String body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -627,7 +627,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call fakeOuterStringSerializeValidateBeforeCall(String body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call fakeOuterStringSerializeValidateBeforeCall(@javax.annotation.Nullable String body, final ApiCallback _callback) throws ApiException { return fakeOuterStringSerializeCall(body, _callback); } @@ -645,7 +645,7 @@ public class FakeApi { 200 Output string - */ - public String fakeOuterStringSerialize(String body) throws ApiException { + public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws ApiException { ApiResponse localVarResp = fakeOuterStringSerializeWithHttpInfo(body); return localVarResp.getData(); } @@ -663,7 +663,7 @@ public class FakeApi { 200 Output string - */ - public ApiResponse fakeOuterStringSerializeWithHttpInfo(String body) throws ApiException { + public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws ApiException { okhttp3.Call localVarCall = fakeOuterStringSerializeValidateBeforeCall(body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -683,7 +683,7 @@ public class FakeApi { 200 Output string - */ - public okhttp3.Call fakeOuterStringSerializeAsync(String body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterStringSerializeAsync(@javax.annotation.Nullable String body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = fakeOuterStringSerializeValidateBeforeCall(body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -703,7 +703,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call fakeRefParameterCall(FakeRefParameterPetIdParameter petId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeRefParameterCall(@javax.annotation.Nonnull FakeRefParameterPetIdParameter petId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -748,7 +748,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call fakeRefParameterValidateBeforeCall(FakeRefParameterPetIdParameter petId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call fakeRefParameterValidateBeforeCall(@javax.annotation.Nonnull FakeRefParameterPetIdParameter petId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling fakeRefParameter(Async)"); @@ -770,7 +770,7 @@ public class FakeApi { 200 successful operation - */ - public void fakeRefParameter(FakeRefParameterPetIdParameter petId) throws ApiException { + public void fakeRefParameter(@javax.annotation.Nonnull FakeRefParameterPetIdParameter petId) throws ApiException { fakeRefParameterWithHttpInfo(petId); } @@ -787,7 +787,7 @@ public class FakeApi { 200 successful operation - */ - public ApiResponse fakeRefParameterWithHttpInfo(FakeRefParameterPetIdParameter petId) throws ApiException { + public ApiResponse fakeRefParameterWithHttpInfo(@javax.annotation.Nonnull FakeRefParameterPetIdParameter petId) throws ApiException { okhttp3.Call localVarCall = fakeRefParameterValidateBeforeCall(petId, null); return localVarApiClient.execute(localVarCall); } @@ -806,7 +806,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call fakeRefParameterAsync(FakeRefParameterPetIdParameter petId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeRefParameterAsync(@javax.annotation.Nonnull FakeRefParameterPetIdParameter petId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = fakeRefParameterValidateBeforeCall(petId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -827,7 +827,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call fakeUploadRefRequestBodiesCall(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeUploadRefRequestBodiesCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -882,7 +882,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call fakeUploadRefRequestBodiesValidateBeforeCall(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + private okhttp3.Call fakeUploadRefRequestBodiesValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling fakeUploadRefRequestBodies(Async)"); @@ -907,7 +907,7 @@ public class FakeApi { 200 successful operation - */ - public ModelApiResponse fakeUploadRefRequestBodies(Long petId, String additionalMetadata, File _file) throws ApiException { + public ModelApiResponse fakeUploadRefRequestBodies(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { ApiResponse localVarResp = fakeUploadRefRequestBodiesWithHttpInfo(petId, additionalMetadata, _file); return localVarResp.getData(); } @@ -927,7 +927,7 @@ public class FakeApi { 200 successful operation - */ - public ApiResponse fakeUploadRefRequestBodiesWithHttpInfo(Long petId, String additionalMetadata, File _file) throws ApiException { + public ApiResponse fakeUploadRefRequestBodiesWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { okhttp3.Call localVarCall = fakeUploadRefRequestBodiesValidateBeforeCall(petId, additionalMetadata, _file, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -949,7 +949,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call fakeUploadRefRequestBodiesAsync(Long petId, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeUploadRefRequestBodiesAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = fakeUploadRefRequestBodiesValidateBeforeCall(petId, additionalMetadata, _file, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1205,7 +1205,7 @@ public class FakeApi { 200 OK - */ - public okhttp3.Call getParameterNameMappingCall(Long underscoreType, String type, String typeWithUnderscore, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getParameterNameMappingCall(@javax.annotation.Nonnull Long underscoreType, @javax.annotation.Nonnull String type, @javax.annotation.Nonnull String typeWithUnderscore, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1263,7 +1263,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getParameterNameMappingValidateBeforeCall(Long underscoreType, String type, String typeWithUnderscore, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getParameterNameMappingValidateBeforeCall(@javax.annotation.Nonnull Long underscoreType, @javax.annotation.Nonnull String type, @javax.annotation.Nonnull String typeWithUnderscore, final ApiCallback _callback) throws ApiException { // verify the required parameter 'underscoreType' is set if (underscoreType == null) { throw new ApiException("Missing the required parameter 'underscoreType' when calling getParameterNameMapping(Async)"); @@ -1297,7 +1297,7 @@ public class FakeApi { 200 OK - */ - public void getParameterNameMapping(Long underscoreType, String type, String typeWithUnderscore) throws ApiException { + public void getParameterNameMapping(@javax.annotation.Nonnull Long underscoreType, @javax.annotation.Nonnull String type, @javax.annotation.Nonnull String typeWithUnderscore) throws ApiException { getParameterNameMappingWithHttpInfo(underscoreType, type, typeWithUnderscore); } @@ -1316,7 +1316,7 @@ public class FakeApi { 200 OK - */ - public ApiResponse getParameterNameMappingWithHttpInfo(Long underscoreType, String type, String typeWithUnderscore) throws ApiException { + public ApiResponse getParameterNameMappingWithHttpInfo(@javax.annotation.Nonnull Long underscoreType, @javax.annotation.Nonnull String type, @javax.annotation.Nonnull String typeWithUnderscore) throws ApiException { okhttp3.Call localVarCall = getParameterNameMappingValidateBeforeCall(underscoreType, type, typeWithUnderscore, null); return localVarApiClient.execute(localVarCall); } @@ -1337,7 +1337,7 @@ public class FakeApi { 200 OK - */ - public okhttp3.Call getParameterNameMappingAsync(Long underscoreType, String type, String typeWithUnderscore, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getParameterNameMappingAsync(@javax.annotation.Nonnull Long underscoreType, @javax.annotation.Nonnull String type, @javax.annotation.Nonnull String typeWithUnderscore, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getParameterNameMappingValidateBeforeCall(underscoreType, type, typeWithUnderscore, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -1356,7 +1356,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call testAdditionalPropertiesReferenceCall(Map requestBody, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testAdditionalPropertiesReferenceCall(@javax.annotation.Nonnull Map requestBody, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1401,7 +1401,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testAdditionalPropertiesReferenceValidateBeforeCall(Map requestBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testAdditionalPropertiesReferenceValidateBeforeCall(@javax.annotation.Nonnull Map requestBody, final ApiCallback _callback) throws ApiException { // verify the required parameter 'requestBody' is set if (requestBody == null) { throw new ApiException("Missing the required parameter 'requestBody' when calling testAdditionalPropertiesReference(Async)"); @@ -1423,7 +1423,7 @@ public class FakeApi { 200 successful operation - */ - public void testAdditionalPropertiesReference(Map requestBody) throws ApiException { + public void testAdditionalPropertiesReference(@javax.annotation.Nonnull Map requestBody) throws ApiException { testAdditionalPropertiesReferenceWithHttpInfo(requestBody); } @@ -1440,7 +1440,7 @@ public class FakeApi { 200 successful operation - */ - public ApiResponse testAdditionalPropertiesReferenceWithHttpInfo(Map requestBody) throws ApiException { + public ApiResponse testAdditionalPropertiesReferenceWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws ApiException { okhttp3.Call localVarCall = testAdditionalPropertiesReferenceValidateBeforeCall(requestBody, null); return localVarApiClient.execute(localVarCall); } @@ -1459,7 +1459,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call testAdditionalPropertiesReferenceAsync(Map requestBody, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testAdditionalPropertiesReferenceAsync(@javax.annotation.Nonnull Map requestBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testAdditionalPropertiesReferenceValidateBeforeCall(requestBody, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -1478,7 +1478,7 @@ public class FakeApi { 200 Success - */ - public okhttp3.Call testBodyWithFileSchemaCall(FileSchemaTestClass fileSchemaTestClass, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testBodyWithFileSchemaCall(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1523,7 +1523,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testBodyWithFileSchemaValidateBeforeCall(FileSchemaTestClass fileSchemaTestClass, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testBodyWithFileSchemaValidateBeforeCall(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass, final ApiCallback _callback) throws ApiException { // verify the required parameter 'fileSchemaTestClass' is set if (fileSchemaTestClass == null) { throw new ApiException("Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema(Async)"); @@ -1545,7 +1545,7 @@ public class FakeApi { 200 Success - */ - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException { + public void testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws ApiException { testBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass); } @@ -1562,7 +1562,7 @@ public class FakeApi { 200 Success - */ - public ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws ApiException { + public ApiResponse testBodyWithFileSchemaWithHttpInfo(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws ApiException { okhttp3.Call localVarCall = testBodyWithFileSchemaValidateBeforeCall(fileSchemaTestClass, null); return localVarApiClient.execute(localVarCall); } @@ -1581,7 +1581,7 @@ public class FakeApi { 200 Success - */ - public okhttp3.Call testBodyWithFileSchemaAsync(FileSchemaTestClass fileSchemaTestClass, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testBodyWithFileSchemaAsync(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testBodyWithFileSchemaValidateBeforeCall(fileSchemaTestClass, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -1601,7 +1601,7 @@ public class FakeApi { 200 Success - */ - public okhttp3.Call testBodyWithQueryParamsCall(String query, User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testBodyWithQueryParamsCall(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1650,7 +1650,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testBodyWithQueryParamsValidateBeforeCall(String query, User user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testBodyWithQueryParamsValidateBeforeCall(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'query' is set if (query == null) { throw new ApiException("Missing the required parameter 'query' when calling testBodyWithQueryParams(Async)"); @@ -1678,7 +1678,7 @@ public class FakeApi { 200 Success - */ - public void testBodyWithQueryParams(String query, User user) throws ApiException { + public void testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws ApiException { testBodyWithQueryParamsWithHttpInfo(query, user); } @@ -1696,7 +1696,7 @@ public class FakeApi { 200 Success - */ - public ApiResponse testBodyWithQueryParamsWithHttpInfo(String query, User user) throws ApiException { + public ApiResponse testBodyWithQueryParamsWithHttpInfo(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws ApiException { okhttp3.Call localVarCall = testBodyWithQueryParamsValidateBeforeCall(query, user, null); return localVarApiClient.execute(localVarCall); } @@ -1716,7 +1716,7 @@ public class FakeApi { 200 Success - */ - public okhttp3.Call testBodyWithQueryParamsAsync(String query, User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testBodyWithQueryParamsAsync(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testBodyWithQueryParamsValidateBeforeCall(query, user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -1735,7 +1735,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call testClientModelCall(Client client, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testClientModelCall(@javax.annotation.Nonnull Client client, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1781,7 +1781,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testClientModelValidateBeforeCall(Client client, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testClientModelValidateBeforeCall(@javax.annotation.Nonnull Client client, final ApiCallback _callback) throws ApiException { // verify the required parameter 'client' is set if (client == null) { throw new ApiException("Missing the required parameter 'client' when calling testClientModel(Async)"); @@ -1804,7 +1804,7 @@ public class FakeApi { 200 successful operation - */ - public Client testClientModel(Client client) throws ApiException { + public Client testClientModel(@javax.annotation.Nonnull Client client) throws ApiException { ApiResponse localVarResp = testClientModelWithHttpInfo(client); return localVarResp.getData(); } @@ -1822,7 +1822,7 @@ public class FakeApi { 200 successful operation - */ - public ApiResponse testClientModelWithHttpInfo(Client client) throws ApiException { + public ApiResponse testClientModelWithHttpInfo(@javax.annotation.Nonnull Client client) throws ApiException { okhttp3.Call localVarCall = testClientModelValidateBeforeCall(client, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1842,7 +1842,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call testClientModelAsync(Client client, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testClientModelAsync(@javax.annotation.Nonnull Client client, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testClientModelValidateBeforeCall(client, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1876,7 +1876,7 @@ public class FakeApi { 404 User not found - */ - public okhttp3.Call testEndpointParametersCall(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, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEndpointParametersCall(@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, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1977,7 +1977,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testEndpointParametersValidateBeforeCall(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, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testEndpointParametersValidateBeforeCall(@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, final ApiCallback _callback) throws ApiException { // verify the required parameter 'number' is set if (number == null) { throw new ApiException("Missing the required parameter 'number' when calling testEndpointParameters(Async)"); @@ -2028,7 +2028,7 @@ public class FakeApi { 404 User not found - */ - 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 ApiException { + 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 ApiException { testEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -2059,7 +2059,7 @@ public class FakeApi { 404 User not found - */ - public ApiResponse 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 ApiException { + public ApiResponse 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 ApiException { okhttp3.Call localVarCall = testEndpointParametersValidateBeforeCall(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback, null); return localVarApiClient.execute(localVarCall); } @@ -2092,7 +2092,7 @@ public class FakeApi { 404 User not found - */ - public okhttp3.Call testEndpointParametersAsync(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, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEndpointParametersAsync(@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, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testEndpointParametersValidateBeforeCall(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -2119,7 +2119,7 @@ public class FakeApi { 404 Not found - */ - public okhttp3.Call testEnumParametersCall(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEnumParametersCall(@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 enumFormStringArray, @javax.annotation.Nullable String enumFormString, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2198,7 +2198,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testEnumParametersValidateBeforeCall(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testEnumParametersValidateBeforeCall(@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 enumFormStringArray, @javax.annotation.Nullable String enumFormString, final ApiCallback _callback) throws ApiException { return testEnumParametersCall(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, _callback); } @@ -2223,7 +2223,7 @@ public class FakeApi { 404 Not found - */ - public void testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { + 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 enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws ApiException { testEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -2248,7 +2248,7 @@ public class FakeApi { 404 Not found - */ - public ApiResponse testEnumParametersWithHttpInfo(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { + public ApiResponse 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 enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws ApiException { okhttp3.Call localVarCall = testEnumParametersValidateBeforeCall(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, null); return localVarApiClient.execute(localVarCall); } @@ -2275,13 +2275,13 @@ public class FakeApi { 404 Not found - */ - public okhttp3.Call testEnumParametersAsync(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEnumParametersAsync(@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 enumFormStringArray, @javax.annotation.Nullable String enumFormString, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testEnumParametersValidateBeforeCall(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } - private okhttp3.Call testGroupParametersCall(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testGroupParametersCall(@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, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2351,7 +2351,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testGroupParametersValidateBeforeCall(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testGroupParametersValidateBeforeCall(@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, final ApiCallback _callback) throws ApiException { // verify the required parameter 'requiredStringGroup' is set if (requiredStringGroup == null) { throw new ApiException("Missing the required parameter 'requiredStringGroup' when calling testGroupParameters(Async)"); @@ -2372,12 +2372,12 @@ public class FakeApi { } - private ApiResponse testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { + private ApiResponse 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 ApiException { okhttp3.Call localVarCall = testGroupParametersValidateBeforeCall(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, null); return localVarApiClient.execute(localVarCall); } - private okhttp3.Call testGroupParametersAsync(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testGroupParametersAsync(@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, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testGroupParametersValidateBeforeCall(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -2385,14 +2385,20 @@ public class FakeApi { } public class APItestGroupParametersRequest { + @javax.annotation.Nonnull private final Integer requiredStringGroup; + @javax.annotation.Nonnull private final Boolean requiredBooleanGroup; + @javax.annotation.Nonnull private final Long requiredInt64Group; + @javax.annotation.Nullable private Integer stringGroup; + @javax.annotation.Nullable private Boolean booleanGroup; + @javax.annotation.Nullable private Long int64Group; - private APItestGroupParametersRequest(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group) { + private APItestGroupParametersRequest(@javax.annotation.Nonnull Integer requiredStringGroup, @javax.annotation.Nonnull Boolean requiredBooleanGroup, @javax.annotation.Nonnull Long requiredInt64Group) { this.requiredStringGroup = requiredStringGroup; this.requiredBooleanGroup = requiredBooleanGroup; this.requiredInt64Group = requiredInt64Group; @@ -2403,7 +2409,7 @@ public class FakeApi { * @param stringGroup String in group parameters (optional) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest stringGroup(Integer stringGroup) { + public APItestGroupParametersRequest stringGroup(@javax.annotation.Nullable Integer stringGroup) { this.stringGroup = stringGroup; return this; } @@ -2413,7 +2419,7 @@ public class FakeApi { * @param booleanGroup Boolean in group parameters (optional) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest booleanGroup(Boolean booleanGroup) { + public APItestGroupParametersRequest booleanGroup(@javax.annotation.Nullable Boolean booleanGroup) { this.booleanGroup = booleanGroup; return this; } @@ -2423,7 +2429,7 @@ public class FakeApi { * @param int64Group Integer in group parameters (optional) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest int64Group(Long int64Group) { + public APItestGroupParametersRequest int64Group(@javax.annotation.Nullable Long int64Group) { this.int64Group = int64Group; return this; } @@ -2504,7 +2510,7 @@ public class FakeApi { 400 Something wrong - */ - public APItestGroupParametersRequest testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group) { + public APItestGroupParametersRequest testGroupParameters(@javax.annotation.Nonnull Integer requiredStringGroup, @javax.annotation.Nonnull Boolean requiredBooleanGroup, @javax.annotation.Nonnull Long requiredInt64Group) { return new APItestGroupParametersRequest(requiredStringGroup, requiredBooleanGroup, requiredInt64Group); } /** @@ -2520,7 +2526,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call testInlineAdditionalPropertiesCall(Map requestBody, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testInlineAdditionalPropertiesCall(@javax.annotation.Nonnull Map requestBody, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2565,7 +2571,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testInlineAdditionalPropertiesValidateBeforeCall(Map requestBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testInlineAdditionalPropertiesValidateBeforeCall(@javax.annotation.Nonnull Map requestBody, final ApiCallback _callback) throws ApiException { // verify the required parameter 'requestBody' is set if (requestBody == null) { throw new ApiException("Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties(Async)"); @@ -2587,7 +2593,7 @@ public class FakeApi { 200 successful operation - */ - public void testInlineAdditionalProperties(Map requestBody) throws ApiException { + public void testInlineAdditionalProperties(@javax.annotation.Nonnull Map requestBody) throws ApiException { testInlineAdditionalPropertiesWithHttpInfo(requestBody); } @@ -2604,7 +2610,7 @@ public class FakeApi { 200 successful operation - */ - public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map requestBody) throws ApiException { + public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws ApiException { okhttp3.Call localVarCall = testInlineAdditionalPropertiesValidateBeforeCall(requestBody, null); return localVarApiClient.execute(localVarCall); } @@ -2623,7 +2629,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call testInlineAdditionalPropertiesAsync(Map requestBody, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testInlineAdditionalPropertiesAsync(@javax.annotation.Nonnull Map requestBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testInlineAdditionalPropertiesValidateBeforeCall(requestBody, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -2642,7 +2648,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call testInlineFreeformAdditionalPropertiesCall(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testInlineFreeformAdditionalPropertiesCall(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2687,7 +2693,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testInlineFreeformAdditionalPropertiesValidateBeforeCall(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testInlineFreeformAdditionalPropertiesValidateBeforeCall(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'testInlineFreeformAdditionalPropertiesRequest' is set if (testInlineFreeformAdditionalPropertiesRequest == null) { throw new ApiException("Missing the required parameter 'testInlineFreeformAdditionalPropertiesRequest' when calling testInlineFreeformAdditionalProperties(Async)"); @@ -2709,7 +2715,7 @@ public class FakeApi { 200 successful operation - */ - public void testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { + public void testInlineFreeformAdditionalProperties(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { testInlineFreeformAdditionalPropertiesWithHttpInfo(testInlineFreeformAdditionalPropertiesRequest); } @@ -2726,7 +2732,7 @@ public class FakeApi { 200 successful operation - */ - public ApiResponse testInlineFreeformAdditionalPropertiesWithHttpInfo(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { + public ApiResponse testInlineFreeformAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { okhttp3.Call localVarCall = testInlineFreeformAdditionalPropertiesValidateBeforeCall(testInlineFreeformAdditionalPropertiesRequest, null); return localVarApiClient.execute(localVarCall); } @@ -2745,7 +2751,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call testInlineFreeformAdditionalPropertiesAsync(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testInlineFreeformAdditionalPropertiesAsync(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testInlineFreeformAdditionalPropertiesValidateBeforeCall(testInlineFreeformAdditionalPropertiesRequest, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -2765,7 +2771,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call testJsonFormDataCall(String param, String param2, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testJsonFormDataCall(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2818,7 +2824,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testJsonFormDataValidateBeforeCall(String param, String param2, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testJsonFormDataValidateBeforeCall(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'param' is set if (param == null) { throw new ApiException("Missing the required parameter 'param' when calling testJsonFormData(Async)"); @@ -2846,7 +2852,7 @@ public class FakeApi { 200 successful operation - */ - public void testJsonFormData(String param, String param2) throws ApiException { + public void testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws ApiException { testJsonFormDataWithHttpInfo(param, param2); } @@ -2864,7 +2870,7 @@ public class FakeApi { 200 successful operation - */ - public ApiResponse testJsonFormDataWithHttpInfo(String param, String param2) throws ApiException { + public ApiResponse testJsonFormDataWithHttpInfo(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws ApiException { okhttp3.Call localVarCall = testJsonFormDataValidateBeforeCall(param, param2, null); return localVarApiClient.execute(localVarCall); } @@ -2884,7 +2890,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call testJsonFormDataAsync(String param, String param2, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testJsonFormDataAsync(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testJsonFormDataValidateBeforeCall(param, param2, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -2907,7 +2913,7 @@ public class FakeApi { 200 Success - */ - public okhttp3.Call testQueryParameterCollectionFormatCall(List pipe, List ioutil, List http, List url, List context, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testQueryParameterCollectionFormatCall(@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, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2971,7 +2977,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testQueryParameterCollectionFormatValidateBeforeCall(List pipe, List ioutil, List http, List url, List context, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testQueryParameterCollectionFormatValidateBeforeCall(@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, final ApiCallback _callback) throws ApiException { // verify the required parameter 'pipe' is set if (pipe == null) { throw new ApiException("Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat(Async)"); @@ -3017,7 +3023,7 @@ public class FakeApi { 200 Success - */ - public void testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context) throws ApiException { + 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) throws ApiException { testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context); } @@ -3038,7 +3044,7 @@ public class FakeApi { 200 Success - */ - public ApiResponse testQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context) throws ApiException { + public ApiResponse 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) throws ApiException { okhttp3.Call localVarCall = testQueryParameterCollectionFormatValidateBeforeCall(pipe, ioutil, http, url, context, null); return localVarApiClient.execute(localVarCall); } @@ -3061,7 +3067,7 @@ public class FakeApi { 200 Success - */ - public okhttp3.Call testQueryParameterCollectionFormatAsync(List pipe, List ioutil, List http, List url, List context, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testQueryParameterCollectionFormatAsync(@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, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testQueryParameterCollectionFormatValidateBeforeCall(pipe, ioutil, http, url, context, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -3080,7 +3086,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call testStringMapReferenceCall(Map requestBody, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testStringMapReferenceCall(@javax.annotation.Nonnull Map requestBody, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3125,7 +3131,7 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call testStringMapReferenceValidateBeforeCall(Map requestBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testStringMapReferenceValidateBeforeCall(@javax.annotation.Nonnull Map requestBody, final ApiCallback _callback) throws ApiException { // verify the required parameter 'requestBody' is set if (requestBody == null) { throw new ApiException("Missing the required parameter 'requestBody' when calling testStringMapReference(Async)"); @@ -3147,7 +3153,7 @@ public class FakeApi { 200 successful operation - */ - public void testStringMapReference(Map requestBody) throws ApiException { + public void testStringMapReference(@javax.annotation.Nonnull Map requestBody) throws ApiException { testStringMapReferenceWithHttpInfo(requestBody); } @@ -3164,7 +3170,7 @@ public class FakeApi { 200 successful operation - */ - public ApiResponse testStringMapReferenceWithHttpInfo(Map requestBody) throws ApiException { + public ApiResponse testStringMapReferenceWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws ApiException { okhttp3.Call localVarCall = testStringMapReferenceValidateBeforeCall(requestBody, null); return localVarApiClient.execute(localVarCall); } @@ -3183,7 +3189,7 @@ public class FakeApi { 200 successful operation - */ - public okhttp3.Call testStringMapReferenceAsync(Map requestBody, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testStringMapReferenceAsync(@javax.annotation.Nonnull Map requestBody, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testStringMapReferenceValidateBeforeCall(requestBody, _callback); localVarApiClient.executeAsync(localVarCall, _callback); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 0c0a0b1c40b..84a873de7e8 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -85,7 +85,7 @@ public class FakeClassnameTags123Api { 200 successful operation - */ - public okhttp3.Call testClassnameCall(Client client, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testClassnameCall(@javax.annotation.Nonnull Client client, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -131,7 +131,7 @@ public class FakeClassnameTags123Api { } @SuppressWarnings("rawtypes") - private okhttp3.Call testClassnameValidateBeforeCall(Client client, final ApiCallback _callback) throws ApiException { + private okhttp3.Call testClassnameValidateBeforeCall(@javax.annotation.Nonnull Client client, final ApiCallback _callback) throws ApiException { // verify the required parameter 'client' is set if (client == null) { throw new ApiException("Missing the required parameter 'client' when calling testClassname(Async)"); @@ -154,7 +154,7 @@ public class FakeClassnameTags123Api { 200 successful operation - */ - public Client testClassname(Client client) throws ApiException { + public Client testClassname(@javax.annotation.Nonnull Client client) throws ApiException { ApiResponse localVarResp = testClassnameWithHttpInfo(client); return localVarResp.getData(); } @@ -172,7 +172,7 @@ public class FakeClassnameTags123Api { 200 successful operation - */ - public ApiResponse testClassnameWithHttpInfo(Client client) throws ApiException { + public ApiResponse testClassnameWithHttpInfo(@javax.annotation.Nonnull Client client) throws ApiException { okhttp3.Call localVarCall = testClassnameValidateBeforeCall(client, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -192,7 +192,7 @@ public class FakeClassnameTags123Api { 200 successful operation - */ - public okhttp3.Call testClassnameAsync(Client client, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testClassnameAsync(@javax.annotation.Nonnull Client client, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = testClassnameValidateBeforeCall(client, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/PetApi.java index 0d419e5cd7e..ac9dc83a16d 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/PetApi.java @@ -87,7 +87,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call addPetCall(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addPetCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { "http://petstore.swagger.io/v2", "http://path-server-test.petstore.local/v2" }; @@ -133,7 +133,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call addPetValidateBeforeCall(Pet pet, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addPetValidateBeforeCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { // verify the required parameter 'pet' is set if (pet == null) { throw new ApiException("Missing the required parameter 'pet' when calling addPet(Async)"); @@ -155,7 +155,7 @@ public class PetApi { 405 Invalid input - */ - public void addPet(Pet pet) throws ApiException { + public void addPet(@javax.annotation.Nonnull Pet pet) throws ApiException { addPetWithHttpInfo(pet); } @@ -172,7 +172,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse addPetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse addPetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException { okhttp3.Call localVarCall = addPetValidateBeforeCall(pet, null); return localVarApiClient.execute(localVarCall); } @@ -191,7 +191,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call addPetAsync(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addPetAsync(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = addPetValidateBeforeCall(pet, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -211,7 +211,7 @@ public class PetApi { 400 Invalid pet value - */ - public okhttp3.Call deletePetCall(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deletePetCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -261,7 +261,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deletePetValidateBeforeCall(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deletePetValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling deletePet(Async)"); @@ -284,7 +284,7 @@ public class PetApi { 400 Invalid pet value - */ - public void deletePet(Long petId, String apiKey) throws ApiException { + public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { deletePetWithHttpInfo(petId, apiKey); } @@ -302,7 +302,7 @@ public class PetApi { 400 Invalid pet value - */ - public ApiResponse deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException { + public ApiResponse deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { okhttp3.Call localVarCall = deletePetValidateBeforeCall(petId, apiKey, null); return localVarApiClient.execute(localVarCall); } @@ -322,7 +322,7 @@ public class PetApi { 400 Invalid pet value - */ - public okhttp3.Call deletePetAsync(Long petId, String apiKey, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deletePetAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deletePetValidateBeforeCall(petId, apiKey, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -342,7 +342,7 @@ public class PetApi { 400 Invalid status value - */ - public okhttp3.Call findPetsByStatusCall(List status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findPetsByStatusCall(@javax.annotation.Nonnull List status, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -392,7 +392,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call findPetsByStatusValidateBeforeCall(List status, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findPetsByStatusValidateBeforeCall(@javax.annotation.Nonnull List status, final ApiCallback _callback) throws ApiException { // verify the required parameter 'status' is set if (status == null) { throw new ApiException("Missing the required parameter 'status' when calling findPetsByStatus(Async)"); @@ -416,7 +416,7 @@ public class PetApi { 400 Invalid status value - */ - public List findPetsByStatus(List status) throws ApiException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws ApiException { ApiResponse> localVarResp = findPetsByStatusWithHttpInfo(status); return localVarResp.getData(); } @@ -435,7 +435,7 @@ public class PetApi { 400 Invalid status value - */ - public ApiResponse> findPetsByStatusWithHttpInfo(List status) throws ApiException { + public ApiResponse> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws ApiException { okhttp3.Call localVarCall = findPetsByStatusValidateBeforeCall(status, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -456,7 +456,7 @@ public class PetApi { 400 Invalid status value - */ - public okhttp3.Call findPetsByStatusAsync(List status, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call findPetsByStatusAsync(@javax.annotation.Nonnull List status, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = findPetsByStatusValidateBeforeCall(status, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); @@ -479,7 +479,7 @@ public class PetApi { * @deprecated */ @Deprecated - public okhttp3.Call findPetsByTagsCall(List tags, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findPetsByTagsCall(@javax.annotation.Nonnull List tags, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -530,7 +530,7 @@ public class PetApi { @Deprecated @SuppressWarnings("rawtypes") - private okhttp3.Call findPetsByTagsValidateBeforeCall(List tags, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findPetsByTagsValidateBeforeCall(@javax.annotation.Nonnull List tags, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tags' is set if (tags == null) { throw new ApiException("Missing the required parameter 'tags' when calling findPetsByTags(Async)"); @@ -556,7 +556,7 @@ public class PetApi { * @deprecated */ @Deprecated - public List findPetsByTags(List tags) throws ApiException { + public List findPetsByTags(@javax.annotation.Nonnull List tags) throws ApiException { ApiResponse> localVarResp = findPetsByTagsWithHttpInfo(tags); return localVarResp.getData(); } @@ -577,7 +577,7 @@ public class PetApi { * @deprecated */ @Deprecated - public ApiResponse> findPetsByTagsWithHttpInfo(List tags) throws ApiException { + public ApiResponse> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull List tags) throws ApiException { okhttp3.Call localVarCall = findPetsByTagsValidateBeforeCall(tags, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -600,7 +600,7 @@ public class PetApi { * @deprecated */ @Deprecated - public okhttp3.Call findPetsByTagsAsync(List tags, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call findPetsByTagsAsync(@javax.annotation.Nonnull List tags, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = findPetsByTagsValidateBeforeCall(tags, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); @@ -622,7 +622,7 @@ public class PetApi { 404 Pet not found - */ - public okhttp3.Call getPetByIdCall(Long petId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPetByIdCall(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -669,7 +669,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getPetByIdValidateBeforeCall(Long petId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPetByIdValidateBeforeCall(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling getPetById(Async)"); @@ -694,7 +694,7 @@ public class PetApi { 404 Pet not found - */ - public Pet getPetById(Long petId) throws ApiException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws ApiException { ApiResponse localVarResp = getPetByIdWithHttpInfo(petId); return localVarResp.getData(); } @@ -714,7 +714,7 @@ public class PetApi { 404 Pet not found - */ - public ApiResponse getPetByIdWithHttpInfo(Long petId) throws ApiException { + public ApiResponse getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws ApiException { okhttp3.Call localVarCall = getPetByIdValidateBeforeCall(petId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -736,7 +736,7 @@ public class PetApi { 404 Pet not found - */ - public okhttp3.Call getPetByIdAsync(Long petId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPetByIdAsync(@javax.annotation.Nonnull Long petId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPetByIdValidateBeforeCall(petId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -758,7 +758,7 @@ public class PetApi { 405 Validation exception - */ - public okhttp3.Call updatePetCall(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { "http://petstore.swagger.io/v2", "http://path-server-test.petstore.local/v2" }; @@ -804,7 +804,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updatePetValidateBeforeCall(Pet pet, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updatePetValidateBeforeCall(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { // verify the required parameter 'pet' is set if (pet == null) { throw new ApiException("Missing the required parameter 'pet' when calling updatePet(Async)"); @@ -828,7 +828,7 @@ public class PetApi { 405 Validation exception - */ - public void updatePet(Pet pet) throws ApiException { + public void updatePet(@javax.annotation.Nonnull Pet pet) throws ApiException { updatePetWithHttpInfo(pet); } @@ -847,7 +847,7 @@ public class PetApi { 405 Validation exception - */ - public ApiResponse updatePetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse updatePetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException { okhttp3.Call localVarCall = updatePetValidateBeforeCall(pet, null); return localVarApiClient.execute(localVarCall); } @@ -868,7 +868,7 @@ public class PetApi { 405 Validation exception - */ - public okhttp3.Call updatePetAsync(Pet pet, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetAsync(@javax.annotation.Nonnull Pet pet, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updatePetValidateBeforeCall(pet, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -889,7 +889,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call updatePetWithFormCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetWithFormCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -943,7 +943,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updatePetWithFormValidateBeforeCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updatePetWithFormValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling updatePetWithForm(Async)"); @@ -967,7 +967,7 @@ public class PetApi { 405 Invalid input - */ - public void updatePetWithForm(Long petId, String name, String status) throws ApiException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -986,7 +986,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException { + public ApiResponse updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { okhttp3.Call localVarCall = updatePetWithFormValidateBeforeCall(petId, name, status, null); return localVarApiClient.execute(localVarCall); } @@ -1007,7 +1007,7 @@ public class PetApi { 405 Invalid input - */ - public okhttp3.Call updatePetWithFormAsync(Long petId, String name, String status, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePetWithFormAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updatePetWithFormValidateBeforeCall(petId, name, status, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -1029,7 +1029,7 @@ public class PetApi { 200 successful operation - */ - public okhttp3.Call uploadFileCall(Long petId, String contentType, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String contentType, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1089,7 +1089,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call uploadFileValidateBeforeCall(Long petId, String contentType, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + private okhttp3.Call uploadFileValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String contentType, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling uploadFile(Async)"); @@ -1115,7 +1115,7 @@ public class PetApi { 200 successful operation - */ - public ModelApiResponse uploadFile(Long petId, String contentType, String additionalMetadata, File _file) throws ApiException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String contentType, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { ApiResponse localVarResp = uploadFileWithHttpInfo(petId, contentType, additionalMetadata, _file); return localVarResp.getData(); } @@ -1136,7 +1136,7 @@ public class PetApi { 200 successful operation - */ - public ApiResponse uploadFileWithHttpInfo(Long petId, String contentType, String additionalMetadata, File _file) throws ApiException { + public ApiResponse uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String contentType, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { okhttp3.Call localVarCall = uploadFileValidateBeforeCall(petId, contentType, additionalMetadata, _file, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1159,7 +1159,7 @@ public class PetApi { 200 successful operation - */ - public okhttp3.Call uploadFileAsync(Long petId, String contentType, String additionalMetadata, File _file, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String contentType, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = uploadFileValidateBeforeCall(petId, contentType, additionalMetadata, _file, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1181,7 +1181,7 @@ public class PetApi { 200 successful operation - */ - public okhttp3.Call uploadFileWithRequiredFileCall(Long petId, File requiredFile, String additionalMetadata, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileWithRequiredFileCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1236,7 +1236,7 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call uploadFileWithRequiredFileValidateBeforeCall(Long petId, File requiredFile, String additionalMetadata, final ApiCallback _callback) throws ApiException { + private okhttp3.Call uploadFileWithRequiredFileValidateBeforeCall(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata, final ApiCallback _callback) throws ApiException { // verify the required parameter 'petId' is set if (petId == null) { throw new ApiException("Missing the required parameter 'petId' when calling uploadFileWithRequiredFile(Async)"); @@ -1266,7 +1266,7 @@ public class PetApi { 200 successful operation - */ - public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws ApiException { + public ModelApiResponse uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws ApiException { ApiResponse localVarResp = uploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata); return localVarResp.getData(); } @@ -1286,7 +1286,7 @@ public class PetApi { 200 successful operation - */ - public ApiResponse uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws ApiException { + public ApiResponse uploadFileWithRequiredFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws ApiException { okhttp3.Call localVarCall = uploadFileWithRequiredFileValidateBeforeCall(petId, requiredFile, additionalMetadata, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1308,7 +1308,7 @@ public class PetApi { 200 successful operation - */ - public okhttp3.Call uploadFileWithRequiredFileAsync(Long petId, File requiredFile, String additionalMetadata, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileWithRequiredFileAsync(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = uploadFileWithRequiredFileValidateBeforeCall(petId, requiredFile, additionalMetadata, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/StoreApi.java index 682d4efdacb..903c0a5a94b 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/StoreApi.java @@ -86,7 +86,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call deleteOrderCall(String orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteOrderCall(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -131,7 +131,7 @@ public class StoreApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteOrderValidateBeforeCall(String orderId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteOrderValidateBeforeCall(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new ApiException("Missing the required parameter 'orderId' when calling deleteOrder(Async)"); @@ -154,7 +154,7 @@ public class StoreApi { 404 Order not found - */ - public void deleteOrder(String orderId) throws ApiException { + public void deleteOrder(@javax.annotation.Nonnull String orderId) throws ApiException { deleteOrderWithHttpInfo(orderId); } @@ -172,7 +172,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse deleteOrderWithHttpInfo(String orderId) throws ApiException { + public ApiResponse deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws ApiException { okhttp3.Call localVarCall = deleteOrderValidateBeforeCall(orderId, null); return localVarApiClient.execute(localVarCall); } @@ -192,7 +192,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call deleteOrderAsync(String orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteOrderAsync(@javax.annotation.Nonnull String orderId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteOrderValidateBeforeCall(orderId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -330,7 +330,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call getOrderByIdCall(Long orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getOrderByIdCall(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -377,7 +377,7 @@ public class StoreApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getOrderByIdValidateBeforeCall(Long orderId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getOrderByIdValidateBeforeCall(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'orderId' is set if (orderId == null) { throw new ApiException("Missing the required parameter 'orderId' when calling getOrderById(Async)"); @@ -402,7 +402,7 @@ public class StoreApi { 404 Order not found - */ - public Order getOrderById(Long orderId) throws ApiException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws ApiException { ApiResponse localVarResp = getOrderByIdWithHttpInfo(orderId); return localVarResp.getData(); } @@ -422,7 +422,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse getOrderByIdWithHttpInfo(Long orderId) throws ApiException { + public ApiResponse getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws ApiException { okhttp3.Call localVarCall = getOrderByIdValidateBeforeCall(orderId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -444,7 +444,7 @@ public class StoreApi { 404 Order not found - */ - public okhttp3.Call getOrderByIdAsync(Long orderId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getOrderByIdAsync(@javax.annotation.Nonnull Long orderId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getOrderByIdValidateBeforeCall(orderId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -465,7 +465,7 @@ public class StoreApi { 400 Invalid Order - */ - public okhttp3.Call placeOrderCall(Order order, final ApiCallback _callback) throws ApiException { + public okhttp3.Call placeOrderCall(@javax.annotation.Nonnull Order order, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -512,7 +512,7 @@ public class StoreApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call placeOrderValidateBeforeCall(Order order, final ApiCallback _callback) throws ApiException { + private okhttp3.Call placeOrderValidateBeforeCall(@javax.annotation.Nonnull Order order, final ApiCallback _callback) throws ApiException { // verify the required parameter 'order' is set if (order == null) { throw new ApiException("Missing the required parameter 'order' when calling placeOrder(Async)"); @@ -536,7 +536,7 @@ public class StoreApi { 400 Invalid Order - */ - public Order placeOrder(Order order) throws ApiException { + public Order placeOrder(@javax.annotation.Nonnull Order order) throws ApiException { ApiResponse localVarResp = placeOrderWithHttpInfo(order); return localVarResp.getData(); } @@ -555,7 +555,7 @@ public class StoreApi { 400 Invalid Order - */ - public ApiResponse placeOrderWithHttpInfo(Order order) throws ApiException { + public ApiResponse placeOrderWithHttpInfo(@javax.annotation.Nonnull Order order) throws ApiException { okhttp3.Call localVarCall = placeOrderValidateBeforeCall(order, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -576,7 +576,7 @@ public class StoreApi { 400 Invalid Order - */ - public okhttp3.Call placeOrderAsync(Order order, final ApiCallback _callback) throws ApiException { + public okhttp3.Call placeOrderAsync(@javax.annotation.Nonnull Order order, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = placeOrderValidateBeforeCall(order, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/UserApi.java index c4c52874acb..9a819e9c9dc 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/UserApi.java @@ -86,7 +86,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUserCall(User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUserCall(@javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -131,7 +131,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createUserValidateBeforeCall(User user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUserValidateBeforeCall(@javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling createUser(Async)"); @@ -153,7 +153,7 @@ public class UserApi { 0 successful operation - */ - public void createUser(User user) throws ApiException { + public void createUser(@javax.annotation.Nonnull User user) throws ApiException { createUserWithHttpInfo(user); } @@ -170,7 +170,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUserWithHttpInfo(User user) throws ApiException { + public ApiResponse createUserWithHttpInfo(@javax.annotation.Nonnull User user) throws ApiException { okhttp3.Call localVarCall = createUserValidateBeforeCall(user, null); return localVarApiClient.execute(localVarCall); } @@ -189,7 +189,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUserAsync(User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUserAsync(@javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUserValidateBeforeCall(user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -208,7 +208,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithArrayInputCall(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithArrayInputCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -253,7 +253,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createUsersWithArrayInputValidateBeforeCall(List user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUsersWithArrayInputValidateBeforeCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling createUsersWithArrayInput(Async)"); @@ -275,7 +275,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithArrayInput(List user) throws ApiException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List user) throws ApiException { createUsersWithArrayInputWithHttpInfo(user); } @@ -292,7 +292,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithArrayInputWithHttpInfo(List user) throws ApiException { + public ApiResponse createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List user) throws ApiException { okhttp3.Call localVarCall = createUsersWithArrayInputValidateBeforeCall(user, null); return localVarApiClient.execute(localVarCall); } @@ -311,7 +311,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithArrayInputAsync(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithArrayInputAsync(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUsersWithArrayInputValidateBeforeCall(user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -330,7 +330,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithListInputCall(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithListInputCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -375,7 +375,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call createUsersWithListInputValidateBeforeCall(List user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createUsersWithListInputValidateBeforeCall(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling createUsersWithListInput(Async)"); @@ -397,7 +397,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithListInput(List user) throws ApiException { + public void createUsersWithListInput(@javax.annotation.Nonnull List user) throws ApiException { createUsersWithListInputWithHttpInfo(user); } @@ -414,7 +414,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithListInputWithHttpInfo(List user) throws ApiException { + public ApiResponse createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List user) throws ApiException { okhttp3.Call localVarCall = createUsersWithListInputValidateBeforeCall(user, null); return localVarApiClient.execute(localVarCall); } @@ -433,7 +433,7 @@ public class UserApi { 0 successful operation - */ - public okhttp3.Call createUsersWithListInputAsync(List user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createUsersWithListInputAsync(@javax.annotation.Nonnull List user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUsersWithListInputValidateBeforeCall(user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -453,7 +453,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call deleteUserCall(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUserCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -498,7 +498,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteUserValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteUserValidateBeforeCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling deleteUser(Async)"); @@ -521,7 +521,7 @@ public class UserApi { 404 User not found - */ - public void deleteUser(String username) throws ApiException { + public void deleteUser(@javax.annotation.Nonnull String username) throws ApiException { deleteUserWithHttpInfo(username); } @@ -539,7 +539,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse deleteUserWithHttpInfo(String username) throws ApiException { + public ApiResponse deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { okhttp3.Call localVarCall = deleteUserValidateBeforeCall(username, null); return localVarApiClient.execute(localVarCall); } @@ -559,7 +559,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call deleteUserAsync(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUserAsync(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteUserValidateBeforeCall(username, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -580,7 +580,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call getUserByNameCall(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUserByNameCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -627,7 +627,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call getUserByNameValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserByNameValidateBeforeCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling getUserByName(Async)"); @@ -652,7 +652,7 @@ public class UserApi { 404 User not found - */ - public User getUserByName(String username) throws ApiException { + public User getUserByName(@javax.annotation.Nonnull String username) throws ApiException { ApiResponse localVarResp = getUserByNameWithHttpInfo(username); return localVarResp.getData(); } @@ -672,7 +672,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse getUserByNameWithHttpInfo(String username) throws ApiException { + public ApiResponse getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { okhttp3.Call localVarCall = getUserByNameValidateBeforeCall(username, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -694,7 +694,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call getUserByNameAsync(String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUserByNameAsync(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserByNameValidateBeforeCall(username, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -716,7 +716,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public okhttp3.Call loginUserCall(String username, String password, final ApiCallback _callback) throws ApiException { + public okhttp3.Call loginUserCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -770,7 +770,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call loginUserValidateBeforeCall(String username, String password, final ApiCallback _callback) throws ApiException { + private okhttp3.Call loginUserValidateBeforeCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling loginUser(Async)"); @@ -800,7 +800,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public String loginUser(String username, String password) throws ApiException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { ApiResponse localVarResp = loginUserWithHttpInfo(username, password); return localVarResp.getData(); } @@ -820,7 +820,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public ApiResponse loginUserWithHttpInfo(String username, String password) throws ApiException { + public ApiResponse loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { okhttp3.Call localVarCall = loginUserValidateBeforeCall(username, password, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -842,7 +842,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public okhttp3.Call loginUserAsync(String username, String password, final ApiCallback _callback) throws ApiException { + public okhttp3.Call loginUserAsync(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = loginUserValidateBeforeCall(username, password, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -976,7 +976,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call updateUserCall(String username, User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateUserCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1022,7 +1022,7 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private okhttp3.Call updateUserValidateBeforeCall(String username, User user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateUserValidateBeforeCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling updateUser(Async)"); @@ -1051,7 +1051,7 @@ public class UserApi { 404 User not found - */ - public void updateUser(String username, User user) throws ApiException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { updateUserWithHttpInfo(username, user); } @@ -1070,7 +1070,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse updateUserWithHttpInfo(String username, User user) throws ApiException { + public ApiResponse updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { okhttp3.Call localVarCall = updateUserValidateBeforeCall(username, user, null); return localVarApiClient.execute(localVarCall); } @@ -1091,7 +1091,7 @@ public class UserApi { 404 User not found - */ - public okhttp3.Call updateUserAsync(String username, User user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateUserAsync(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateUserValidateBeforeCall(username, user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 4dfb005c993..5b2baa1a9a4 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -126,7 +126,7 @@ public class AnotherFakeApi { * @param body (Client) client model (required) * @return operation */ - public Call123testSpecialTagsOper body(Client body) { + public Call123testSpecialTagsOper body(@javax.annotation.Nonnull Client body) { reqSpec.setBody(body); return this; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/FakeApi.java index 76fce0633b2..f7277688dfa 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/FakeApi.java @@ -186,7 +186,7 @@ public class FakeApi { * @param xmlItem (XmlItem) XmlItem Body (required) * @return operation */ - public CreateXmlItemOper body(XmlItem xmlItem) { + public CreateXmlItemOper body(@javax.annotation.Nonnull XmlItem xmlItem) { reqSpec.setBody(xmlItem); return this; } @@ -258,7 +258,7 @@ public class FakeApi { * @param body (Boolean) Input boolean as post body (optional) * @return operation */ - public FakeOuterBooleanSerializeOper body(Boolean body) { + public FakeOuterBooleanSerializeOper body(@javax.annotation.Nullable Boolean body) { reqSpec.setBody(body); return this; } @@ -330,7 +330,7 @@ public class FakeApi { * @param body (OuterComposite) Input composite as post body (optional) * @return operation */ - public FakeOuterCompositeSerializeOper body(OuterComposite body) { + public FakeOuterCompositeSerializeOper body(@javax.annotation.Nullable OuterComposite body) { reqSpec.setBody(body); return this; } @@ -402,7 +402,7 @@ public class FakeApi { * @param body (BigDecimal) Input number as post body (optional) * @return operation */ - public FakeOuterNumberSerializeOper body(BigDecimal body) { + public FakeOuterNumberSerializeOper body(@javax.annotation.Nullable BigDecimal body) { reqSpec.setBody(body); return this; } @@ -474,7 +474,7 @@ public class FakeApi { * @param body (String) Input string as post body (optional) * @return operation */ - public FakeOuterStringSerializeOper body(String body) { + public FakeOuterStringSerializeOper body(@javax.annotation.Nullable String body) { reqSpec.setBody(body); return this; } @@ -535,7 +535,7 @@ public class FakeApi { * @param body (FileSchemaTestClass) (required) * @return operation */ - public TestBodyWithFileSchemaOper body(FileSchemaTestClass body) { + public TestBodyWithFileSchemaOper body(@javax.annotation.Nonnull FileSchemaTestClass body) { reqSpec.setBody(body); return this; } @@ -597,7 +597,7 @@ public class FakeApi { * @param body (User) (required) * @return operation */ - public TestBodyWithQueryParamsOper body(User body) { + public TestBodyWithQueryParamsOper body(@javax.annotation.Nonnull User body) { reqSpec.setBody(body); return this; } @@ -680,7 +680,7 @@ public class FakeApi { * @param body (Client) client model (required) * @return operation */ - public TestClientModelOper body(Client body) { + public TestClientModelOper body(@javax.annotation.Nonnull Client body) { reqSpec.setBody(body); return this; } @@ -899,7 +899,7 @@ public class FakeApi { * @param binary (File) None (optional) * @return operation */ - public TestEndpointParametersOper binaryMultiPart(File binary) { + public TestEndpointParametersOper binaryMultiPart(@javax.annotation.Nullable File binary) { reqSpec.addMultiPart(binary); return this; } @@ -1229,7 +1229,7 @@ public class FakeApi { * @param param (Map<String, String>) request body (required) * @return operation */ - public TestInlineAdditionalPropertiesOper body(Map param) { + public TestInlineAdditionalPropertiesOper body(@javax.annotation.Nonnull Map param) { reqSpec.setBody(param); return this; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index d00177e6331..27c69c24b65 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -124,7 +124,7 @@ public class FakeClassnameTags123Api { * @param body (Client) client model (required) * @return operation */ - public TestClassnameOper body(Client body) { + public TestClassnameOper body(@javax.annotation.Nonnull Client body) { reqSpec.setBody(body); return this; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/PetApi.java index e703a9ec309..a009d95c18d 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/PetApi.java @@ -157,7 +157,7 @@ public class PetApi { * @param body (Pet) Pet object that needs to be added to the store (required) * @return operation */ - public AddPetOper body(Pet body) { + public AddPetOper body(@javax.annotation.Nonnull Pet body) { reqSpec.setBody(body); return this; } @@ -513,7 +513,7 @@ public class PetApi { * @param body (Pet) Pet object that needs to be added to the store (required) * @return operation */ - public UpdatePetOper body(Pet body) { + public UpdatePetOper body(@javax.annotation.Nonnull Pet body) { reqSpec.setBody(body); return this; } @@ -698,7 +698,7 @@ public class PetApi { * @param _file (File) file to upload (optional) * @return operation */ - public UploadFileOper _fileMultiPart(File _file) { + public UploadFileOper _fileMultiPart(@javax.annotation.Nullable File _file) { reqSpec.addMultiPart(_file); return this; } @@ -796,7 +796,7 @@ public class PetApi { * @param requiredFile (File) file to upload (required) * @return operation */ - public UploadFileWithRequiredFileOper requiredFileMultiPart(File requiredFile) { + public UploadFileWithRequiredFileOper requiredFileMultiPart(@javax.annotation.Nonnull File requiredFile) { reqSpec.addMultiPart(requiredFile); return this; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/StoreApi.java index d34a720ff6a..1483a350008 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/StoreApi.java @@ -335,7 +335,7 @@ public class StoreApi { * @param body (Order) order placed for purchasing the pet (required) * @return operation */ - public PlaceOrderOper body(Order body) { + public PlaceOrderOper body(@javax.annotation.Nonnull Order body) { reqSpec.setBody(body); return this; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/UserApi.java index 2ad8b6a1da7..3aad98dd899 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/UserApi.java @@ -149,7 +149,7 @@ public class UserApi { * @param body (User) Created user object (required) * @return operation */ - public CreateUserOper body(User body) { + public CreateUserOper body(@javax.annotation.Nonnull User body) { reqSpec.setBody(body); return this; } @@ -210,7 +210,7 @@ public class UserApi { * @param body (List<@Valid User>) List of user object (required) * @return operation */ - public CreateUsersWithArrayInputOper body(List<@Valid User> body) { + public CreateUsersWithArrayInputOper body(@javax.annotation.Nonnull List<@Valid User> body) { reqSpec.setBody(body); return this; } @@ -271,7 +271,7 @@ public class UserApi { * @param body (List<@Valid User>) List of user object (required) * @return operation */ - public CreateUsersWithListInputOper body(List<@Valid User> body) { + public CreateUsersWithListInputOper body(@javax.annotation.Nonnull List<@Valid User> body) { reqSpec.setBody(body); return this; } @@ -603,7 +603,7 @@ public class UserApi { * @param body (User) Updated user object (required) * @return operation */ - public UpdateUserOper body(User body) { + public UpdateUserOper body(@javax.annotation.Nonnull User body) { reqSpec.setBody(body); return this; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 52e88b2db2b..e6b6ce14dd8 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -127,7 +127,7 @@ public class AnotherFakeApi { * @param body (Client) client model (required) * @return operation */ - public Call123testSpecialTagsOper body(Client body) { + public Call123testSpecialTagsOper body(@javax.annotation.Nonnull Client body) { reqSpec.setBody(body); return this; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/FakeApi.java index 842d9fa2bc8..3f1783f8e1a 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/FakeApi.java @@ -187,7 +187,7 @@ public class FakeApi { * @param xmlItem (XmlItem) XmlItem Body (required) * @return operation */ - public CreateXmlItemOper body(XmlItem xmlItem) { + public CreateXmlItemOper body(@javax.annotation.Nonnull XmlItem xmlItem) { reqSpec.setBody(xmlItem); return this; } @@ -259,7 +259,7 @@ public class FakeApi { * @param body (Boolean) Input boolean as post body (optional) * @return operation */ - public FakeOuterBooleanSerializeOper body(Boolean body) { + public FakeOuterBooleanSerializeOper body(@javax.annotation.Nullable Boolean body) { reqSpec.setBody(body); return this; } @@ -331,7 +331,7 @@ public class FakeApi { * @param body (OuterComposite) Input composite as post body (optional) * @return operation */ - public FakeOuterCompositeSerializeOper body(OuterComposite body) { + public FakeOuterCompositeSerializeOper body(@javax.annotation.Nullable OuterComposite body) { reqSpec.setBody(body); return this; } @@ -403,7 +403,7 @@ public class FakeApi { * @param body (BigDecimal) Input number as post body (optional) * @return operation */ - public FakeOuterNumberSerializeOper body(BigDecimal body) { + public FakeOuterNumberSerializeOper body(@javax.annotation.Nullable BigDecimal body) { reqSpec.setBody(body); return this; } @@ -475,7 +475,7 @@ public class FakeApi { * @param body (String) Input string as post body (optional) * @return operation */ - public FakeOuterStringSerializeOper body(String body) { + public FakeOuterStringSerializeOper body(@javax.annotation.Nullable String body) { reqSpec.setBody(body); return this; } @@ -536,7 +536,7 @@ public class FakeApi { * @param body (FileSchemaTestClass) (required) * @return operation */ - public TestBodyWithFileSchemaOper body(FileSchemaTestClass body) { + public TestBodyWithFileSchemaOper body(@javax.annotation.Nonnull FileSchemaTestClass body) { reqSpec.setBody(body); return this; } @@ -598,7 +598,7 @@ public class FakeApi { * @param body (User) (required) * @return operation */ - public TestBodyWithQueryParamsOper body(User body) { + public TestBodyWithQueryParamsOper body(@javax.annotation.Nonnull User body) { reqSpec.setBody(body); return this; } @@ -681,7 +681,7 @@ public class FakeApi { * @param body (Client) client model (required) * @return operation */ - public TestClientModelOper body(Client body) { + public TestClientModelOper body(@javax.annotation.Nonnull Client body) { reqSpec.setBody(body); return this; } @@ -900,7 +900,7 @@ public class FakeApi { * @param binary (File) None (optional) * @return operation */ - public TestEndpointParametersOper binaryMultiPart(File binary) { + public TestEndpointParametersOper binaryMultiPart(@javax.annotation.Nullable File binary) { reqSpec.addMultiPart(binary); return this; } @@ -1230,7 +1230,7 @@ public class FakeApi { * @param param (Map<String, String>) request body (required) * @return operation */ - public TestInlineAdditionalPropertiesOper body(Map param) { + public TestInlineAdditionalPropertiesOper body(@javax.annotation.Nonnull Map param) { reqSpec.setBody(param); return this; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 0447c8a88c6..6757e4fe450 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -125,7 +125,7 @@ public class FakeClassnameTags123Api { * @param body (Client) client model (required) * @return operation */ - public TestClassnameOper body(Client body) { + public TestClassnameOper body(@javax.annotation.Nonnull Client body) { reqSpec.setBody(body); return this; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/PetApi.java index 3cc3d5e8f1d..426e930b219 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/PetApi.java @@ -158,7 +158,7 @@ public class PetApi { * @param body (Pet) Pet object that needs to be added to the store (required) * @return operation */ - public AddPetOper body(Pet body) { + public AddPetOper body(@javax.annotation.Nonnull Pet body) { reqSpec.setBody(body); return this; } @@ -514,7 +514,7 @@ public class PetApi { * @param body (Pet) Pet object that needs to be added to the store (required) * @return operation */ - public UpdatePetOper body(Pet body) { + public UpdatePetOper body(@javax.annotation.Nonnull Pet body) { reqSpec.setBody(body); return this; } @@ -699,7 +699,7 @@ public class PetApi { * @param _file (File) file to upload (optional) * @return operation */ - public UploadFileOper _fileMultiPart(File _file) { + public UploadFileOper _fileMultiPart(@javax.annotation.Nullable File _file) { reqSpec.addMultiPart(_file); return this; } @@ -797,7 +797,7 @@ public class PetApi { * @param requiredFile (File) file to upload (required) * @return operation */ - public UploadFileWithRequiredFileOper requiredFileMultiPart(File requiredFile) { + public UploadFileWithRequiredFileOper requiredFileMultiPart(@javax.annotation.Nonnull File requiredFile) { reqSpec.addMultiPart(requiredFile); return this; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/StoreApi.java index 0c4c75f7503..b1f1c3db625 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/StoreApi.java @@ -336,7 +336,7 @@ public class StoreApi { * @param body (Order) order placed for purchasing the pet (required) * @return operation */ - public PlaceOrderOper body(Order body) { + public PlaceOrderOper body(@javax.annotation.Nonnull Order body) { reqSpec.setBody(body); return this; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/UserApi.java index eab6d35bef0..528e7fc0e77 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/UserApi.java @@ -150,7 +150,7 @@ public class UserApi { * @param body (User) Created user object (required) * @return operation */ - public CreateUserOper body(User body) { + public CreateUserOper body(@javax.annotation.Nonnull User body) { reqSpec.setBody(body); return this; } @@ -211,7 +211,7 @@ public class UserApi { * @param body (List<@Valid User>) List of user object (required) * @return operation */ - public CreateUsersWithArrayInputOper body(List<@Valid User> body) { + public CreateUsersWithArrayInputOper body(@javax.annotation.Nonnull List<@Valid User> body) { reqSpec.setBody(body); return this; } @@ -272,7 +272,7 @@ public class UserApi { * @param body (List<@Valid User>) List of user object (required) * @return operation */ - public CreateUsersWithListInputOper body(List<@Valid User> body) { + public CreateUsersWithListInputOper body(@javax.annotation.Nonnull List<@Valid User> body) { reqSpec.setBody(body); return this; } @@ -604,7 +604,7 @@ public class UserApi { * @param body (User) Updated user object (required) * @return operation */ - public UpdateUserOper body(User body) { + public UpdateUserOper body(@javax.annotation.Nonnull User body) { reqSpec.setBody(body); return this; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 036a164bb62..334257b8482 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -52,7 +52,7 @@ public class AnotherFakeApi { * @return Client * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec call123testSpecialTagsRequestCreation(Client client) throws RestClientResponseException { + private ResponseSpec call123testSpecialTagsRequestCreation(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { Object postBody = client; // verify the required parameter 'client' is set if (client == null) { @@ -89,7 +89,7 @@ public class AnotherFakeApi { * @return Client * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public Client call123testSpecialTags(Client client) throws RestClientResponseException { + public Client call123testSpecialTags(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return call123testSpecialTagsRequestCreation(client).body(localVarReturnType); } @@ -102,7 +102,7 @@ public class AnotherFakeApi { * @return ResponseEntity<Client> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity call123testSpecialTagsWithHttpInfo(Client client) throws RestClientResponseException { + public ResponseEntity call123testSpecialTagsWithHttpInfo(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return call123testSpecialTagsRequestCreation(client).toEntity(localVarReturnType); } @@ -115,7 +115,7 @@ public class AnotherFakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec call123testSpecialTagsWithResponseSpec(Client client) throws RestClientResponseException { + public ResponseSpec call123testSpecialTagsWithResponseSpec(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { return call123testSpecialTagsRequestCreation(client); } } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/FakeApi.java index 810c24d8053..c765bd07495 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/FakeApi.java @@ -195,7 +195,7 @@ public class FakeApi { * @param header1 header parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeHttpSignatureTestRequestCreation(Pet pet, String query1, String header1) throws RestClientResponseException { + private ResponseSpec fakeHttpSignatureTestRequestCreation(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws RestClientResponseException { Object postBody = pet; // verify the required parameter 'pet' is set if (pet == null) { @@ -236,7 +236,7 @@ public class FakeApi { * @param header1 header parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void fakeHttpSignatureTest(Pet pet, String query1, String header1) throws RestClientResponseException { + public void fakeHttpSignatureTest(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; fakeHttpSignatureTestRequestCreation(pet, query1, header1).body(localVarReturnType); } @@ -250,7 +250,7 @@ public class FakeApi { * @param header1 header parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeHttpSignatureTestWithHttpInfo(Pet pet, String query1, String header1) throws RestClientResponseException { + public ResponseEntity fakeHttpSignatureTestWithHttpInfo(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakeHttpSignatureTestRequestCreation(pet, query1, header1).toEntity(localVarReturnType); } @@ -265,7 +265,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeHttpSignatureTestWithResponseSpec(Pet pet, String query1, String header1) throws RestClientResponseException { + public ResponseSpec fakeHttpSignatureTestWithResponseSpec(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws RestClientResponseException { return fakeHttpSignatureTestRequestCreation(pet, query1, header1); } /** @@ -276,7 +276,7 @@ public class FakeApi { * @return Boolean * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterBooleanSerializeRequestCreation(Boolean body) throws RestClientResponseException { + private ResponseSpec fakeOuterBooleanSerializeRequestCreation(@jakarta.annotation.Nullable Boolean body) throws RestClientResponseException { Object postBody = body; // create path and map variables final Map pathParams = new HashMap<>(); @@ -309,7 +309,7 @@ public class FakeApi { * @return Boolean * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public Boolean fakeOuterBooleanSerialize(Boolean body) throws RestClientResponseException { + public Boolean fakeOuterBooleanSerialize(@jakarta.annotation.Nullable Boolean body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakeOuterBooleanSerializeRequestCreation(body).body(localVarReturnType); } @@ -322,7 +322,7 @@ public class FakeApi { * @return ResponseEntity<Boolean> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws RestClientResponseException { + public ResponseEntity fakeOuterBooleanSerializeWithHttpInfo(@jakarta.annotation.Nullable Boolean body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakeOuterBooleanSerializeRequestCreation(body).toEntity(localVarReturnType); } @@ -335,7 +335,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(Boolean body) throws RestClientResponseException { + public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(@jakarta.annotation.Nullable Boolean body) throws RestClientResponseException { return fakeOuterBooleanSerializeRequestCreation(body); } /** @@ -346,7 +346,7 @@ public class FakeApi { * @return OuterComposite * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterCompositeSerializeRequestCreation(OuterComposite outerComposite) throws RestClientResponseException { + private ResponseSpec fakeOuterCompositeSerializeRequestCreation(@jakarta.annotation.Nullable OuterComposite outerComposite) throws RestClientResponseException { Object postBody = outerComposite; // create path and map variables final Map pathParams = new HashMap<>(); @@ -379,7 +379,7 @@ public class FakeApi { * @return OuterComposite * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws RestClientResponseException { + public OuterComposite fakeOuterCompositeSerialize(@jakarta.annotation.Nullable OuterComposite outerComposite) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakeOuterCompositeSerializeRequestCreation(outerComposite).body(localVarReturnType); } @@ -392,7 +392,7 @@ public class FakeApi { * @return ResponseEntity<OuterComposite> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws RestClientResponseException { + public ResponseEntity fakeOuterCompositeSerializeWithHttpInfo(@jakarta.annotation.Nullable OuterComposite outerComposite) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakeOuterCompositeSerializeRequestCreation(outerComposite).toEntity(localVarReturnType); } @@ -405,7 +405,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(OuterComposite outerComposite) throws RestClientResponseException { + public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(@jakarta.annotation.Nullable OuterComposite outerComposite) throws RestClientResponseException { return fakeOuterCompositeSerializeRequestCreation(outerComposite); } /** @@ -416,7 +416,7 @@ public class FakeApi { * @return BigDecimal * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterNumberSerializeRequestCreation(BigDecimal body) throws RestClientResponseException { + private ResponseSpec fakeOuterNumberSerializeRequestCreation(@jakarta.annotation.Nullable BigDecimal body) throws RestClientResponseException { Object postBody = body; // create path and map variables final Map pathParams = new HashMap<>(); @@ -449,7 +449,7 @@ public class FakeApi { * @return BigDecimal * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws RestClientResponseException { + public BigDecimal fakeOuterNumberSerialize(@jakarta.annotation.Nullable BigDecimal body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakeOuterNumberSerializeRequestCreation(body).body(localVarReturnType); } @@ -462,7 +462,7 @@ public class FakeApi { * @return ResponseEntity<BigDecimal> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws RestClientResponseException { + public ResponseEntity fakeOuterNumberSerializeWithHttpInfo(@jakarta.annotation.Nullable BigDecimal body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakeOuterNumberSerializeRequestCreation(body).toEntity(localVarReturnType); } @@ -475,7 +475,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(BigDecimal body) throws RestClientResponseException { + public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(@jakarta.annotation.Nullable BigDecimal body) throws RestClientResponseException { return fakeOuterNumberSerializeRequestCreation(body); } /** @@ -486,7 +486,7 @@ public class FakeApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterStringSerializeRequestCreation(String body) throws RestClientResponseException { + private ResponseSpec fakeOuterStringSerializeRequestCreation(@jakarta.annotation.Nullable String body) throws RestClientResponseException { Object postBody = body; // create path and map variables final Map pathParams = new HashMap<>(); @@ -519,7 +519,7 @@ public class FakeApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String fakeOuterStringSerialize(String body) throws RestClientResponseException { + public String fakeOuterStringSerialize(@jakarta.annotation.Nullable String body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakeOuterStringSerializeRequestCreation(body).body(localVarReturnType); } @@ -532,7 +532,7 @@ public class FakeApi { * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterStringSerializeWithHttpInfo(String body) throws RestClientResponseException { + public ResponseEntity fakeOuterStringSerializeWithHttpInfo(@jakarta.annotation.Nullable String body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakeOuterStringSerializeRequestCreation(body).toEntity(localVarReturnType); } @@ -545,7 +545,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterStringSerializeWithResponseSpec(String body) throws RestClientResponseException { + public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@jakarta.annotation.Nullable String body) throws RestClientResponseException { return fakeOuterStringSerializeRequestCreation(body); } /** @@ -556,7 +556,7 @@ public class FakeApi { * @return OuterObjectWithEnumProperty * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakePropertyEnumIntegerSerializeRequestCreation(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { + private ResponseSpec fakePropertyEnumIntegerSerializeRequestCreation(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { Object postBody = outerObjectWithEnumProperty; // verify the required parameter 'outerObjectWithEnumProperty' is set if (outerObjectWithEnumProperty == null) { @@ -593,7 +593,7 @@ public class FakeApi { * @return OuterObjectWithEnumProperty * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { + public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty).body(localVarReturnType); } @@ -606,7 +606,7 @@ public class FakeApi { * @return ResponseEntity<OuterObjectWithEnumProperty> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakePropertyEnumIntegerSerializeWithHttpInfo(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { + public ResponseEntity fakePropertyEnumIntegerSerializeWithHttpInfo(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty).toEntity(localVarReturnType); } @@ -619,7 +619,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { + public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty); } /** @@ -629,7 +629,7 @@ public class FakeApi { * @param requestBody request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testAdditionalPropertiesReferenceRequestCreation(Map requestBody) throws RestClientResponseException { + private ResponseSpec testAdditionalPropertiesReferenceRequestCreation(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { Object postBody = requestBody; // verify the required parameter 'requestBody' is set if (requestBody == null) { @@ -663,7 +663,7 @@ public class FakeApi { * @param requestBody request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void testAdditionalPropertiesReference(Map requestBody) throws RestClientResponseException { + public void testAdditionalPropertiesReference(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testAdditionalPropertiesReferenceRequestCreation(requestBody).body(localVarReturnType); } @@ -675,7 +675,7 @@ public class FakeApi { * @param requestBody request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testAdditionalPropertiesReferenceWithHttpInfo(Map requestBody) throws RestClientResponseException { + public ResponseEntity testAdditionalPropertiesReferenceWithHttpInfo(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testAdditionalPropertiesReferenceRequestCreation(requestBody).toEntity(localVarReturnType); } @@ -688,7 +688,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(Map requestBody) throws RestClientResponseException { + public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { return testAdditionalPropertiesReferenceRequestCreation(requestBody); } /** @@ -698,7 +698,7 @@ public class FakeApi { * @param body image to upload * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testBodyWithBinaryRequestCreation(File body) throws RestClientResponseException { + private ResponseSpec testBodyWithBinaryRequestCreation(@jakarta.annotation.Nullable File body) throws RestClientResponseException { Object postBody = body; // verify the required parameter 'body' is set if (body == null) { @@ -732,7 +732,7 @@ public class FakeApi { * @param body image to upload * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void testBodyWithBinary(File body) throws RestClientResponseException { + public void testBodyWithBinary(@jakarta.annotation.Nullable File body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testBodyWithBinaryRequestCreation(body).body(localVarReturnType); } @@ -744,7 +744,7 @@ public class FakeApi { * @param body image to upload * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testBodyWithBinaryWithHttpInfo(File body) throws RestClientResponseException { + public ResponseEntity testBodyWithBinaryWithHttpInfo(@jakarta.annotation.Nullable File body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testBodyWithBinaryRequestCreation(body).toEntity(localVarReturnType); } @@ -757,7 +757,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testBodyWithBinaryWithResponseSpec(File body) throws RestClientResponseException { + public ResponseSpec testBodyWithBinaryWithResponseSpec(@jakarta.annotation.Nullable File body) throws RestClientResponseException { return testBodyWithBinaryRequestCreation(body); } /** @@ -767,7 +767,7 @@ public class FakeApi { * @param fileSchemaTestClass The fileSchemaTestClass parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testBodyWithFileSchemaRequestCreation(FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException { + private ResponseSpec testBodyWithFileSchemaRequestCreation(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException { Object postBody = fileSchemaTestClass; // verify the required parameter 'fileSchemaTestClass' is set if (fileSchemaTestClass == null) { @@ -801,7 +801,7 @@ public class FakeApi { * @param fileSchemaTestClass The fileSchemaTestClass parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException { + public void testBodyWithFileSchema(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testBodyWithFileSchemaRequestCreation(fileSchemaTestClass).body(localVarReturnType); } @@ -813,7 +813,7 @@ public class FakeApi { * @param fileSchemaTestClass The fileSchemaTestClass parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException { + public ResponseEntity testBodyWithFileSchemaWithHttpInfo(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass).toEntity(localVarReturnType); } @@ -826,7 +826,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testBodyWithFileSchemaWithResponseSpec(FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException { + public ResponseSpec testBodyWithFileSchemaWithResponseSpec(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException { return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass); } /** @@ -837,7 +837,7 @@ public class FakeApi { * @param user The user parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testBodyWithQueryParamsRequestCreation(String query, User user) throws RestClientResponseException { + private ResponseSpec testBodyWithQueryParamsRequestCreation(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { Object postBody = user; // verify the required parameter 'query' is set if (query == null) { @@ -878,7 +878,7 @@ public class FakeApi { * @param user The user parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void testBodyWithQueryParams(String query, User user) throws RestClientResponseException { + public void testBodyWithQueryParams(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testBodyWithQueryParamsRequestCreation(query, user).body(localVarReturnType); } @@ -891,7 +891,7 @@ public class FakeApi { * @param user The user parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testBodyWithQueryParamsWithHttpInfo(String query, User user) throws RestClientResponseException { + public ResponseEntity testBodyWithQueryParamsWithHttpInfo(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testBodyWithQueryParamsRequestCreation(query, user).toEntity(localVarReturnType); } @@ -905,7 +905,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testBodyWithQueryParamsWithResponseSpec(String query, User user) throws RestClientResponseException { + public ResponseSpec testBodyWithQueryParamsWithResponseSpec(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { return testBodyWithQueryParamsRequestCreation(query, user); } /** @@ -916,7 +916,7 @@ public class FakeApi { * @return Client * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testClientModelRequestCreation(Client client) throws RestClientResponseException { + private ResponseSpec testClientModelRequestCreation(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { Object postBody = client; // verify the required parameter 'client' is set if (client == null) { @@ -953,7 +953,7 @@ public class FakeApi { * @return Client * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public Client testClientModel(Client client) throws RestClientResponseException { + public Client testClientModel(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testClientModelRequestCreation(client).body(localVarReturnType); } @@ -966,7 +966,7 @@ public class FakeApi { * @return ResponseEntity<Client> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testClientModelWithHttpInfo(Client client) throws RestClientResponseException { + public ResponseEntity testClientModelWithHttpInfo(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testClientModelRequestCreation(client).toEntity(localVarReturnType); } @@ -979,7 +979,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testClientModelWithResponseSpec(Client client) throws RestClientResponseException { + public ResponseSpec testClientModelWithResponseSpec(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { return testClientModelRequestCreation(client); } /** @@ -1003,7 +1003,7 @@ public class FakeApi { * @param paramCallback None * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testEndpointParametersRequestCreation(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 RestClientResponseException { + private ResponseSpec testEndpointParametersRequestCreation(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'number' is set if (number == null) { @@ -1092,7 +1092,7 @@ public class FakeApi { * @param paramCallback None * @throws RestClientResponseException 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 RestClientResponseException { + public void testEndpointParameters(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback).body(localVarReturnType); } @@ -1118,7 +1118,7 @@ public class FakeApi { * @param paramCallback None * @throws RestClientResponseException 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 RestClientResponseException { + public ResponseEntity testEndpointParametersWithHttpInfo(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback).toEntity(localVarReturnType); } @@ -1145,7 +1145,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testEndpointParametersWithResponseSpec(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 RestClientResponseException { + public ResponseSpec testEndpointParametersWithResponseSpec(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws RestClientResponseException { return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } /** @@ -1164,7 +1164,7 @@ public class FakeApi { * @param enumFormString Form parameter enum test (string) * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testEnumParametersRequestCreation(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws RestClientResponseException { + private ResponseSpec testEnumParametersRequestCreation(@jakarta.annotation.Nullable List enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List enumQueryModelArray, @jakarta.annotation.Nullable List enumFormStringArray, @jakarta.annotation.Nullable String enumFormString) throws RestClientResponseException { Object postBody = null; // create path and map variables final Map pathParams = new HashMap<>(); @@ -1219,7 +1219,7 @@ public class FakeApi { * @param enumFormString Form parameter enum test (string) * @throws RestClientResponseException 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 RestClientResponseException { + public void testEnumParameters(@jakarta.annotation.Nullable List enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List enumQueryModelArray, @jakarta.annotation.Nullable List enumFormStringArray, @jakarta.annotation.Nullable String enumFormString) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString).body(localVarReturnType); } @@ -1240,7 +1240,7 @@ public class FakeApi { * @param enumFormString Form parameter enum test (string) * @throws RestClientResponseException 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 RestClientResponseException { + public ResponseEntity testEnumParametersWithHttpInfo(@jakarta.annotation.Nullable List enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List enumQueryModelArray, @jakarta.annotation.Nullable List enumFormStringArray, @jakarta.annotation.Nullable String enumFormString) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString).toEntity(localVarReturnType); } @@ -1262,7 +1262,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testEnumParametersWithResponseSpec(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws RestClientResponseException { + public ResponseSpec testEnumParametersWithResponseSpec(@jakarta.annotation.Nullable List enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List enumQueryModelArray, @jakarta.annotation.Nullable List enumFormStringArray, @jakarta.annotation.Nullable String enumFormString) throws RestClientResponseException { return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString); } /** @@ -1277,7 +1277,7 @@ public class FakeApi { * @param int64Group Integer in group parameters * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testGroupParametersRequestCreation(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws RestClientResponseException { + private ResponseSpec testGroupParametersRequestCreation(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'requiredStringGroup' is set if (requiredStringGroup == null) { @@ -1332,7 +1332,7 @@ public class FakeApi { * @param int64Group Integer in group parameters * @throws RestClientResponseException 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 RestClientResponseException { + public void testGroupParameters(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group).body(localVarReturnType); } @@ -1349,7 +1349,7 @@ public class FakeApi { * @param int64Group Integer in group parameters * @throws RestClientResponseException 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 RestClientResponseException { + public ResponseEntity testGroupParametersWithHttpInfo(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group).toEntity(localVarReturnType); } @@ -1367,7 +1367,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testGroupParametersWithResponseSpec(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws RestClientResponseException { + public ResponseSpec testGroupParametersWithResponseSpec(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group) throws RestClientResponseException { return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } /** @@ -1377,7 +1377,7 @@ public class FakeApi { * @param requestBody request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testInlineAdditionalPropertiesRequestCreation(Map requestBody) throws RestClientResponseException { + private ResponseSpec testInlineAdditionalPropertiesRequestCreation(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { Object postBody = requestBody; // verify the required parameter 'requestBody' is set if (requestBody == null) { @@ -1411,7 +1411,7 @@ public class FakeApi { * @param requestBody request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void testInlineAdditionalProperties(Map requestBody) throws RestClientResponseException { + public void testInlineAdditionalProperties(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testInlineAdditionalPropertiesRequestCreation(requestBody).body(localVarReturnType); } @@ -1423,7 +1423,7 @@ public class FakeApi { * @param requestBody request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testInlineAdditionalPropertiesWithHttpInfo(Map requestBody) throws RestClientResponseException { + public ResponseEntity testInlineAdditionalPropertiesWithHttpInfo(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testInlineAdditionalPropertiesRequestCreation(requestBody).toEntity(localVarReturnType); } @@ -1436,7 +1436,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(Map requestBody) throws RestClientResponseException { + public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { return testInlineAdditionalPropertiesRequestCreation(requestBody); } /** @@ -1446,7 +1446,7 @@ public class FakeApi { * @param testInlineFreeformAdditionalPropertiesRequest request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testInlineFreeformAdditionalPropertiesRequestCreation(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException { + private ResponseSpec testInlineFreeformAdditionalPropertiesRequestCreation(@jakarta.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException { Object postBody = testInlineFreeformAdditionalPropertiesRequest; // verify the required parameter 'testInlineFreeformAdditionalPropertiesRequest' is set if (testInlineFreeformAdditionalPropertiesRequest == null) { @@ -1480,7 +1480,7 @@ public class FakeApi { * @param testInlineFreeformAdditionalPropertiesRequest request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException { + public void testInlineFreeformAdditionalProperties(@jakarta.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest).body(localVarReturnType); } @@ -1492,7 +1492,7 @@ public class FakeApi { * @param testInlineFreeformAdditionalPropertiesRequest request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testInlineFreeformAdditionalPropertiesWithHttpInfo(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException { + public ResponseEntity testInlineFreeformAdditionalPropertiesWithHttpInfo(@jakarta.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest).toEntity(localVarReturnType); } @@ -1505,7 +1505,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testInlineFreeformAdditionalPropertiesWithResponseSpec(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException { + public ResponseSpec testInlineFreeformAdditionalPropertiesWithResponseSpec(@jakarta.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException { return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest); } /** @@ -1516,7 +1516,7 @@ public class FakeApi { * @param param2 field2 * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testJsonFormDataRequestCreation(String param, String param2) throws RestClientResponseException { + private ResponseSpec testJsonFormDataRequestCreation(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'param' is set if (param == null) { @@ -1560,7 +1560,7 @@ public class FakeApi { * @param param2 field2 * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void testJsonFormData(String param, String param2) throws RestClientResponseException { + public void testJsonFormData(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testJsonFormDataRequestCreation(param, param2).body(localVarReturnType); } @@ -1573,7 +1573,7 @@ public class FakeApi { * @param param2 field2 * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testJsonFormDataWithHttpInfo(String param, String param2) throws RestClientResponseException { + public ResponseEntity testJsonFormDataWithHttpInfo(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testJsonFormDataRequestCreation(param, param2).toEntity(localVarReturnType); } @@ -1587,7 +1587,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testJsonFormDataWithResponseSpec(String param, String param2) throws RestClientResponseException { + public ResponseSpec testJsonFormDataWithResponseSpec(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2) throws RestClientResponseException { return testJsonFormDataRequestCreation(param, param2); } /** @@ -1597,7 +1597,7 @@ public class FakeApi { * @param childWithNullable request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testNullableRequestCreation(ChildWithNullable childWithNullable) throws RestClientResponseException { + private ResponseSpec testNullableRequestCreation(@jakarta.annotation.Nonnull ChildWithNullable childWithNullable) throws RestClientResponseException { Object postBody = childWithNullable; // verify the required parameter 'childWithNullable' is set if (childWithNullable == null) { @@ -1631,7 +1631,7 @@ public class FakeApi { * @param childWithNullable request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void testNullable(ChildWithNullable childWithNullable) throws RestClientResponseException { + public void testNullable(@jakarta.annotation.Nonnull ChildWithNullable childWithNullable) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testNullableRequestCreation(childWithNullable).body(localVarReturnType); } @@ -1643,7 +1643,7 @@ public class FakeApi { * @param childWithNullable request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testNullableWithHttpInfo(ChildWithNullable childWithNullable) throws RestClientResponseException { + public ResponseEntity testNullableWithHttpInfo(@jakarta.annotation.Nonnull ChildWithNullable childWithNullable) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testNullableRequestCreation(childWithNullable).toEntity(localVarReturnType); } @@ -1656,7 +1656,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testNullableWithResponseSpec(ChildWithNullable childWithNullable) throws RestClientResponseException { + public ResponseSpec testNullableWithResponseSpec(@jakarta.annotation.Nonnull ChildWithNullable childWithNullable) throws RestClientResponseException { return testNullableRequestCreation(childWithNullable); } /** @@ -1672,7 +1672,7 @@ public class FakeApi { * @param language The language parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testQueryParameterCollectionFormatRequestCreation(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws RestClientResponseException { + private ResponseSpec testQueryParameterCollectionFormatRequestCreation(@jakarta.annotation.Nonnull List pipe, @jakarta.annotation.Nonnull List ioutil, @jakarta.annotation.Nonnull List http, @jakarta.annotation.Nonnull List url, @jakarta.annotation.Nonnull List context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map language) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'pipe' is set if (pipe == null) { @@ -1738,7 +1738,7 @@ public class FakeApi { * @param language The language parameter * @throws RestClientResponseException 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 RestClientResponseException { + public void testQueryParameterCollectionFormat(@jakarta.annotation.Nonnull List pipe, @jakarta.annotation.Nonnull List ioutil, @jakarta.annotation.Nonnull List http, @jakarta.annotation.Nonnull List url, @jakarta.annotation.Nonnull List context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map language) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language).body(localVarReturnType); } @@ -1756,7 +1756,7 @@ public class FakeApi { * @param language The language parameter * @throws RestClientResponseException 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 RestClientResponseException { + public ResponseEntity testQueryParameterCollectionFormatWithHttpInfo(@jakarta.annotation.Nonnull List pipe, @jakarta.annotation.Nonnull List ioutil, @jakarta.annotation.Nonnull List http, @jakarta.annotation.Nonnull List url, @jakarta.annotation.Nonnull List context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map language) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language).toEntity(localVarReturnType); } @@ -1775,7 +1775,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws RestClientResponseException { + public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(@jakarta.annotation.Nonnull List pipe, @jakarta.annotation.Nonnull List ioutil, @jakarta.annotation.Nonnull List http, @jakarta.annotation.Nonnull List url, @jakarta.annotation.Nonnull List context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map language) throws RestClientResponseException { return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language); } /** @@ -1785,7 +1785,7 @@ public class FakeApi { * @param requestBody request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testStringMapReferenceRequestCreation(Map requestBody) throws RestClientResponseException { + private ResponseSpec testStringMapReferenceRequestCreation(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { Object postBody = requestBody; // verify the required parameter 'requestBody' is set if (requestBody == null) { @@ -1819,7 +1819,7 @@ public class FakeApi { * @param requestBody request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void testStringMapReference(Map requestBody) throws RestClientResponseException { + public void testStringMapReference(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testStringMapReferenceRequestCreation(requestBody).body(localVarReturnType); } @@ -1831,7 +1831,7 @@ public class FakeApi { * @param requestBody request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testStringMapReferenceWithHttpInfo(Map requestBody) throws RestClientResponseException { + public ResponseEntity testStringMapReferenceWithHttpInfo(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testStringMapReferenceRequestCreation(requestBody).toEntity(localVarReturnType); } @@ -1844,7 +1844,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testStringMapReferenceWithResponseSpec(Map requestBody) throws RestClientResponseException { + public ResponseSpec testStringMapReferenceWithResponseSpec(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { return testStringMapReferenceRequestCreation(requestBody); } } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 3a2f5a886d1..c70ea29b883 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -52,7 +52,7 @@ public class FakeClassnameTags123Api { * @return Client * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testClassnameRequestCreation(Client client) throws RestClientResponseException { + private ResponseSpec testClassnameRequestCreation(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { Object postBody = client; // verify the required parameter 'client' is set if (client == null) { @@ -89,7 +89,7 @@ public class FakeClassnameTags123Api { * @return Client * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public Client testClassname(Client client) throws RestClientResponseException { + public Client testClassname(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testClassnameRequestCreation(client).body(localVarReturnType); } @@ -102,7 +102,7 @@ public class FakeClassnameTags123Api { * @return ResponseEntity<Client> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testClassnameWithHttpInfo(Client client) throws RestClientResponseException { + public ResponseEntity testClassnameWithHttpInfo(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testClassnameRequestCreation(client).toEntity(localVarReturnType); } @@ -115,7 +115,7 @@ public class FakeClassnameTags123Api { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testClassnameWithResponseSpec(Client client) throws RestClientResponseException { + public ResponseSpec testClassnameWithResponseSpec(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { return testClassnameRequestCreation(client); } } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/PetApi.java index ab45a8d57a8..3f9082daced 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/PetApi.java @@ -55,7 +55,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec addPetRequestCreation(Pet pet) throws RestClientResponseException { + private ResponseSpec addPetRequestCreation(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { Object postBody = pet; // verify the required parameter 'pet' is set if (pet == null) { @@ -90,7 +90,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void addPet(Pet pet) throws RestClientResponseException { + public void addPet(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; addPetRequestCreation(pet).body(localVarReturnType); } @@ -103,7 +103,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity addPetWithHttpInfo(Pet pet) throws RestClientResponseException { + public ResponseEntity addPetWithHttpInfo(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return addPetRequestCreation(pet).toEntity(localVarReturnType); } @@ -117,7 +117,7 @@ public class PetApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec addPetWithResponseSpec(Pet pet) throws RestClientResponseException { + public ResponseSpec addPetWithResponseSpec(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { return addPetRequestCreation(pet); } /** @@ -129,7 +129,7 @@ public class PetApi { * @param apiKey The apiKey parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec deletePetRequestCreation(Long petId, String apiKey) throws RestClientResponseException { + private ResponseSpec deletePetRequestCreation(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -168,7 +168,7 @@ public class PetApi { * @param apiKey The apiKey parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void deletePet(Long petId, String apiKey) throws RestClientResponseException { + public void deletePet(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; deletePetRequestCreation(petId, apiKey).body(localVarReturnType); } @@ -182,7 +182,7 @@ public class PetApi { * @param apiKey The apiKey parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity deletePetWithHttpInfo(Long petId, String apiKey) throws RestClientResponseException { + public ResponseEntity deletePetWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return deletePetRequestCreation(petId, apiKey).toEntity(localVarReturnType); } @@ -197,7 +197,7 @@ public class PetApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec deletePetWithResponseSpec(Long petId, String apiKey) throws RestClientResponseException { + public ResponseSpec deletePetWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientResponseException { return deletePetRequestCreation(petId, apiKey); } /** @@ -209,7 +209,7 @@ public class PetApi { * @return List<Pet> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec findPetsByStatusRequestCreation(List status) throws RestClientResponseException { + private ResponseSpec findPetsByStatusRequestCreation(@jakarta.annotation.Nonnull List status) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'status' is set if (status == null) { @@ -247,7 +247,7 @@ public class PetApi { * @return List<Pet> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public List findPetsByStatus(List status) throws RestClientResponseException { + public List findPetsByStatus(@jakarta.annotation.Nonnull List status) throws RestClientResponseException { ParameterizedTypeReference> localVarReturnType = new ParameterizedTypeReference<>() {}; return findPetsByStatusRequestCreation(status).body(localVarReturnType); } @@ -261,7 +261,7 @@ public class PetApi { * @return ResponseEntity<List<Pet>> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity> findPetsByStatusWithHttpInfo(List status) throws RestClientResponseException { + public ResponseEntity> findPetsByStatusWithHttpInfo(@jakarta.annotation.Nonnull List status) throws RestClientResponseException { ParameterizedTypeReference> localVarReturnType = new ParameterizedTypeReference<>() {}; return findPetsByStatusRequestCreation(status).toEntity(localVarReturnType); } @@ -275,7 +275,7 @@ public class PetApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec findPetsByStatusWithResponseSpec(List status) throws RestClientResponseException { + public ResponseSpec findPetsByStatusWithResponseSpec(@jakarta.annotation.Nonnull List status) throws RestClientResponseException { return findPetsByStatusRequestCreation(status); } /** @@ -289,7 +289,7 @@ public class PetApi { * @deprecated */ @Deprecated - private ResponseSpec findPetsByTagsRequestCreation(Set tags) throws RestClientResponseException { + private ResponseSpec findPetsByTagsRequestCreation(@jakarta.annotation.Nonnull Set tags) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'tags' is set if (tags == null) { @@ -327,7 +327,7 @@ public class PetApi { * @return Set<Pet> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public Set findPetsByTags(Set tags) throws RestClientResponseException { + public Set findPetsByTags(@jakarta.annotation.Nonnull Set tags) throws RestClientResponseException { ParameterizedTypeReference> localVarReturnType = new ParameterizedTypeReference<>() {}; return findPetsByTagsRequestCreation(tags).body(localVarReturnType); } @@ -341,7 +341,7 @@ public class PetApi { * @return ResponseEntity<Set<Pet>> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity> findPetsByTagsWithHttpInfo(Set tags) throws RestClientResponseException { + public ResponseEntity> findPetsByTagsWithHttpInfo(@jakarta.annotation.Nonnull Set tags) throws RestClientResponseException { ParameterizedTypeReference> localVarReturnType = new ParameterizedTypeReference<>() {}; return findPetsByTagsRequestCreation(tags).toEntity(localVarReturnType); } @@ -355,7 +355,7 @@ public class PetApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec findPetsByTagsWithResponseSpec(Set tags) throws RestClientResponseException { + public ResponseSpec findPetsByTagsWithResponseSpec(@jakarta.annotation.Nonnull Set tags) throws RestClientResponseException { return findPetsByTagsRequestCreation(tags); } /** @@ -368,7 +368,7 @@ public class PetApi { * @return Pet * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec getPetByIdRequestCreation(Long petId) throws RestClientResponseException { + private ResponseSpec getPetByIdRequestCreation(@jakarta.annotation.Nonnull Long petId) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -407,7 +407,7 @@ public class PetApi { * @return Pet * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public Pet getPetById(Long petId) throws RestClientResponseException { + public Pet getPetById(@jakarta.annotation.Nonnull Long petId) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return getPetByIdRequestCreation(petId).body(localVarReturnType); } @@ -422,7 +422,7 @@ public class PetApi { * @return ResponseEntity<Pet> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws RestClientResponseException { + public ResponseEntity getPetByIdWithHttpInfo(@jakarta.annotation.Nonnull Long petId) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return getPetByIdRequestCreation(petId).toEntity(localVarReturnType); } @@ -437,7 +437,7 @@ public class PetApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec getPetByIdWithResponseSpec(Long petId) throws RestClientResponseException { + public ResponseSpec getPetByIdWithResponseSpec(@jakarta.annotation.Nonnull Long petId) throws RestClientResponseException { return getPetByIdRequestCreation(petId); } /** @@ -450,7 +450,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec updatePetRequestCreation(Pet pet) throws RestClientResponseException { + private ResponseSpec updatePetRequestCreation(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { Object postBody = pet; // verify the required parameter 'pet' is set if (pet == null) { @@ -487,7 +487,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void updatePet(Pet pet) throws RestClientResponseException { + public void updatePet(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; updatePetRequestCreation(pet).body(localVarReturnType); } @@ -502,7 +502,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity updatePetWithHttpInfo(Pet pet) throws RestClientResponseException { + public ResponseEntity updatePetWithHttpInfo(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return updatePetRequestCreation(pet).toEntity(localVarReturnType); } @@ -518,7 +518,7 @@ public class PetApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec updatePetWithResponseSpec(Pet pet) throws RestClientResponseException { + public ResponseSpec updatePetWithResponseSpec(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { return updatePetRequestCreation(pet); } /** @@ -531,7 +531,7 @@ public class PetApi { * @param status Updated status of the pet * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec updatePetWithFormRequestCreation(Long petId, String name, String status) throws RestClientResponseException { + private ResponseSpec updatePetWithFormRequestCreation(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -575,7 +575,7 @@ public class PetApi { * @param status Updated status of the pet * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void updatePetWithForm(Long petId, String name, String status) throws RestClientResponseException { + public void updatePetWithForm(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; updatePetWithFormRequestCreation(petId, name, status).body(localVarReturnType); } @@ -590,7 +590,7 @@ public class PetApi { * @param status Updated status of the pet * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws RestClientResponseException { + public ResponseEntity updatePetWithFormWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return updatePetWithFormRequestCreation(petId, name, status).toEntity(localVarReturnType); } @@ -606,7 +606,7 @@ public class PetApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec updatePetWithFormWithResponseSpec(Long petId, String name, String status) throws RestClientResponseException { + public ResponseSpec updatePetWithFormWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws RestClientResponseException { return updatePetWithFormRequestCreation(petId, name, status); } /** @@ -619,7 +619,7 @@ public class PetApi { * @return ModelApiResponse * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec uploadFileRequestCreation(Long petId, String additionalMetadata, File _file) throws RestClientResponseException { + private ResponseSpec uploadFileRequestCreation(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -665,7 +665,7 @@ public class PetApi { * @return ModelApiResponse * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws RestClientResponseException { + public ModelApiResponse uploadFile(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return uploadFileRequestCreation(petId, additionalMetadata, _file).body(localVarReturnType); } @@ -680,7 +680,7 @@ public class PetApi { * @return ResponseEntity<ModelApiResponse> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws RestClientResponseException { + public ResponseEntity uploadFileWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return uploadFileRequestCreation(petId, additionalMetadata, _file).toEntity(localVarReturnType); } @@ -695,7 +695,7 @@ public class PetApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec uploadFileWithResponseSpec(Long petId, String additionalMetadata, File _file) throws RestClientResponseException { + public ResponseSpec uploadFileWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws RestClientResponseException { return uploadFileRequestCreation(petId, additionalMetadata, _file); } /** @@ -708,7 +708,7 @@ public class PetApi { * @return ModelApiResponse * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec uploadFileWithRequiredFileRequestCreation(Long petId, File requiredFile, String additionalMetadata) throws RestClientResponseException { + private ResponseSpec uploadFileWithRequiredFileRequestCreation(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nonnull File requiredFile, @jakarta.annotation.Nullable String additionalMetadata) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -758,7 +758,7 @@ public class PetApi { * @return ModelApiResponse * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws RestClientResponseException { + public ModelApiResponse uploadFileWithRequiredFile(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nonnull File requiredFile, @jakarta.annotation.Nullable String additionalMetadata) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return uploadFileWithRequiredFileRequestCreation(petId, requiredFile, additionalMetadata).body(localVarReturnType); } @@ -773,7 +773,7 @@ public class PetApi { * @return ResponseEntity<ModelApiResponse> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws RestClientResponseException { + public ResponseEntity uploadFileWithRequiredFileWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nonnull File requiredFile, @jakarta.annotation.Nullable String additionalMetadata) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return uploadFileWithRequiredFileRequestCreation(petId, requiredFile, additionalMetadata).toEntity(localVarReturnType); } @@ -788,7 +788,7 @@ public class PetApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec uploadFileWithRequiredFileWithResponseSpec(Long petId, File requiredFile, String additionalMetadata) throws RestClientResponseException { + public ResponseSpec uploadFileWithRequiredFileWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nonnull File requiredFile, @jakarta.annotation.Nullable String additionalMetadata) throws RestClientResponseException { return uploadFileWithRequiredFileRequestCreation(petId, requiredFile, additionalMetadata); } } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java index fec8c232cde..35cc10f109d 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java @@ -52,7 +52,7 @@ public class StoreApi { * @param orderId ID of the order that needs to be deleted * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec deleteOrderRequestCreation(String orderId) throws RestClientResponseException { + private ResponseSpec deleteOrderRequestCreation(@jakarta.annotation.Nonnull String orderId) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'orderId' is set if (orderId == null) { @@ -87,7 +87,7 @@ public class StoreApi { * @param orderId ID of the order that needs to be deleted * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void deleteOrder(String orderId) throws RestClientResponseException { + public void deleteOrder(@jakarta.annotation.Nonnull String orderId) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; deleteOrderRequestCreation(orderId).body(localVarReturnType); } @@ -100,7 +100,7 @@ public class StoreApi { * @param orderId ID of the order that needs to be deleted * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity deleteOrderWithHttpInfo(String orderId) throws RestClientResponseException { + public ResponseEntity deleteOrderWithHttpInfo(@jakarta.annotation.Nonnull String orderId) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return deleteOrderRequestCreation(orderId).toEntity(localVarReturnType); } @@ -114,7 +114,7 @@ public class StoreApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec deleteOrderWithResponseSpec(String orderId) throws RestClientResponseException { + public ResponseSpec deleteOrderWithResponseSpec(@jakarta.annotation.Nonnull String orderId) throws RestClientResponseException { return deleteOrderRequestCreation(orderId); } /** @@ -191,7 +191,7 @@ public class StoreApi { * @return Order * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec getOrderByIdRequestCreation(Long orderId) throws RestClientResponseException { + private ResponseSpec getOrderByIdRequestCreation(@jakarta.annotation.Nonnull Long orderId) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'orderId' is set if (orderId == null) { @@ -230,7 +230,7 @@ public class StoreApi { * @return Order * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public Order getOrderById(Long orderId) throws RestClientResponseException { + public Order getOrderById(@jakarta.annotation.Nonnull Long orderId) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return getOrderByIdRequestCreation(orderId).body(localVarReturnType); } @@ -245,7 +245,7 @@ public class StoreApi { * @return ResponseEntity<Order> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity getOrderByIdWithHttpInfo(Long orderId) throws RestClientResponseException { + public ResponseEntity getOrderByIdWithHttpInfo(@jakarta.annotation.Nonnull Long orderId) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return getOrderByIdRequestCreation(orderId).toEntity(localVarReturnType); } @@ -260,7 +260,7 @@ public class StoreApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec getOrderByIdWithResponseSpec(Long orderId) throws RestClientResponseException { + public ResponseSpec getOrderByIdWithResponseSpec(@jakarta.annotation.Nonnull Long orderId) throws RestClientResponseException { return getOrderByIdRequestCreation(orderId); } /** @@ -272,7 +272,7 @@ public class StoreApi { * @return Order * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec placeOrderRequestCreation(Order order) throws RestClientResponseException { + private ResponseSpec placeOrderRequestCreation(@jakarta.annotation.Nonnull Order order) throws RestClientResponseException { Object postBody = order; // verify the required parameter 'order' is set if (order == null) { @@ -310,7 +310,7 @@ public class StoreApi { * @return Order * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public Order placeOrder(Order order) throws RestClientResponseException { + public Order placeOrder(@jakarta.annotation.Nonnull Order order) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return placeOrderRequestCreation(order).body(localVarReturnType); } @@ -324,7 +324,7 @@ public class StoreApi { * @return ResponseEntity<Order> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity placeOrderWithHttpInfo(Order order) throws RestClientResponseException { + public ResponseEntity placeOrderWithHttpInfo(@jakarta.annotation.Nonnull Order order) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return placeOrderRequestCreation(order).toEntity(localVarReturnType); } @@ -338,7 +338,7 @@ public class StoreApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec placeOrderWithResponseSpec(Order order) throws RestClientResponseException { + public ResponseSpec placeOrderWithResponseSpec(@jakarta.annotation.Nonnull Order order) throws RestClientResponseException { return placeOrderRequestCreation(order); } } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/UserApi.java index a03e3f7c2b9..f83ab1f4810 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/UserApi.java @@ -52,7 +52,7 @@ public class UserApi { * @param user Created user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec createUserRequestCreation(User user) throws RestClientResponseException { + private ResponseSpec createUserRequestCreation(@jakarta.annotation.Nonnull User user) throws RestClientResponseException { Object postBody = user; // verify the required parameter 'user' is set if (user == null) { @@ -86,7 +86,7 @@ public class UserApi { * @param user Created user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void createUser(User user) throws RestClientResponseException { + public void createUser(@jakarta.annotation.Nonnull User user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; createUserRequestCreation(user).body(localVarReturnType); } @@ -98,7 +98,7 @@ public class UserApi { * @param user Created user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUserWithHttpInfo(User user) throws RestClientResponseException { + public ResponseEntity createUserWithHttpInfo(@jakarta.annotation.Nonnull User user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return createUserRequestCreation(user).toEntity(localVarReturnType); } @@ -111,7 +111,7 @@ public class UserApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec createUserWithResponseSpec(User user) throws RestClientResponseException { + public ResponseSpec createUserWithResponseSpec(@jakarta.annotation.Nonnull User user) throws RestClientResponseException { return createUserRequestCreation(user); } /** @@ -121,7 +121,7 @@ public class UserApi { * @param user List of user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec createUsersWithArrayInputRequestCreation(List user) throws RestClientResponseException { + private ResponseSpec createUsersWithArrayInputRequestCreation(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { Object postBody = user; // verify the required parameter 'user' is set if (user == null) { @@ -155,7 +155,7 @@ public class UserApi { * @param user List of user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void createUsersWithArrayInput(List user) throws RestClientResponseException { + public void createUsersWithArrayInput(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; createUsersWithArrayInputRequestCreation(user).body(localVarReturnType); } @@ -167,7 +167,7 @@ public class UserApi { * @param user List of user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUsersWithArrayInputWithHttpInfo(List user) throws RestClientResponseException { + public ResponseEntity createUsersWithArrayInputWithHttpInfo(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return createUsersWithArrayInputRequestCreation(user).toEntity(localVarReturnType); } @@ -180,7 +180,7 @@ public class UserApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec createUsersWithArrayInputWithResponseSpec(List user) throws RestClientResponseException { + public ResponseSpec createUsersWithArrayInputWithResponseSpec(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { return createUsersWithArrayInputRequestCreation(user); } /** @@ -190,7 +190,7 @@ public class UserApi { * @param user List of user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec createUsersWithListInputRequestCreation(List user) throws RestClientResponseException { + private ResponseSpec createUsersWithListInputRequestCreation(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { Object postBody = user; // verify the required parameter 'user' is set if (user == null) { @@ -224,7 +224,7 @@ public class UserApi { * @param user List of user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void createUsersWithListInput(List user) throws RestClientResponseException { + public void createUsersWithListInput(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; createUsersWithListInputRequestCreation(user).body(localVarReturnType); } @@ -236,7 +236,7 @@ public class UserApi { * @param user List of user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUsersWithListInputWithHttpInfo(List user) throws RestClientResponseException { + public ResponseEntity createUsersWithListInputWithHttpInfo(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return createUsersWithListInputRequestCreation(user).toEntity(localVarReturnType); } @@ -249,7 +249,7 @@ public class UserApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec createUsersWithListInputWithResponseSpec(List user) throws RestClientResponseException { + public ResponseSpec createUsersWithListInputWithResponseSpec(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { return createUsersWithListInputRequestCreation(user); } /** @@ -260,7 +260,7 @@ public class UserApi { * @param username The name that needs to be deleted * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec deleteUserRequestCreation(String username) throws RestClientResponseException { + private ResponseSpec deleteUserRequestCreation(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'username' is set if (username == null) { @@ -295,7 +295,7 @@ public class UserApi { * @param username The name that needs to be deleted * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void deleteUser(String username) throws RestClientResponseException { + public void deleteUser(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; deleteUserRequestCreation(username).body(localVarReturnType); } @@ -308,7 +308,7 @@ public class UserApi { * @param username The name that needs to be deleted * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity deleteUserWithHttpInfo(String username) throws RestClientResponseException { + public ResponseEntity deleteUserWithHttpInfo(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return deleteUserRequestCreation(username).toEntity(localVarReturnType); } @@ -322,7 +322,7 @@ public class UserApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec deleteUserWithResponseSpec(String username) throws RestClientResponseException { + public ResponseSpec deleteUserWithResponseSpec(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { return deleteUserRequestCreation(username); } /** @@ -335,7 +335,7 @@ public class UserApi { * @return User * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec getUserByNameRequestCreation(String username) throws RestClientResponseException { + private ResponseSpec getUserByNameRequestCreation(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'username' is set if (username == null) { @@ -374,7 +374,7 @@ public class UserApi { * @return User * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public User getUserByName(String username) throws RestClientResponseException { + public User getUserByName(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return getUserByNameRequestCreation(username).body(localVarReturnType); } @@ -389,7 +389,7 @@ public class UserApi { * @return ResponseEntity<User> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity getUserByNameWithHttpInfo(String username) throws RestClientResponseException { + public ResponseEntity getUserByNameWithHttpInfo(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return getUserByNameRequestCreation(username).toEntity(localVarReturnType); } @@ -404,7 +404,7 @@ public class UserApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec getUserByNameWithResponseSpec(String username) throws RestClientResponseException { + public ResponseSpec getUserByNameWithResponseSpec(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { return getUserByNameRequestCreation(username); } /** @@ -417,7 +417,7 @@ public class UserApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec loginUserRequestCreation(String username, String password) throws RestClientResponseException { + private ResponseSpec loginUserRequestCreation(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'username' is set if (username == null) { @@ -461,7 +461,7 @@ public class UserApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String loginUser(String username, String password) throws RestClientResponseException { + public String loginUser(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return loginUserRequestCreation(username, password).body(localVarReturnType); } @@ -476,7 +476,7 @@ public class UserApi { * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity loginUserWithHttpInfo(String username, String password) throws RestClientResponseException { + public ResponseEntity loginUserWithHttpInfo(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return loginUserRequestCreation(username, password).toEntity(localVarReturnType); } @@ -491,7 +491,7 @@ public class UserApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec loginUserWithResponseSpec(String username, String password) throws RestClientResponseException { + public ResponseSpec loginUserWithResponseSpec(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws RestClientResponseException { return loginUserRequestCreation(username, password); } /** @@ -562,7 +562,7 @@ public class UserApi { * @param user Updated user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec updateUserRequestCreation(String username, User user) throws RestClientResponseException { + private ResponseSpec updateUserRequestCreation(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { Object postBody = user; // verify the required parameter 'username' is set if (username == null) { @@ -604,7 +604,7 @@ public class UserApi { * @param user Updated user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void updateUser(String username, User user) throws RestClientResponseException { + public void updateUser(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; updateUserRequestCreation(username, user).body(localVarReturnType); } @@ -618,7 +618,7 @@ public class UserApi { * @param user Updated user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity updateUserWithHttpInfo(String username, User user) throws RestClientResponseException { + public ResponseEntity updateUserWithHttpInfo(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return updateUserRequestCreation(username, user).toEntity(localVarReturnType); } @@ -633,7 +633,7 @@ public class UserApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec updateUserWithResponseSpec(String username, User user) throws RestClientResponseException { + public ResponseSpec updateUserWithResponseSpec(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { return updateUserRequestCreation(username, user); } } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 036a164bb62..334257b8482 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -52,7 +52,7 @@ public class AnotherFakeApi { * @return Client * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec call123testSpecialTagsRequestCreation(Client client) throws RestClientResponseException { + private ResponseSpec call123testSpecialTagsRequestCreation(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { Object postBody = client; // verify the required parameter 'client' is set if (client == null) { @@ -89,7 +89,7 @@ public class AnotherFakeApi { * @return Client * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public Client call123testSpecialTags(Client client) throws RestClientResponseException { + public Client call123testSpecialTags(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return call123testSpecialTagsRequestCreation(client).body(localVarReturnType); } @@ -102,7 +102,7 @@ public class AnotherFakeApi { * @return ResponseEntity<Client> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity call123testSpecialTagsWithHttpInfo(Client client) throws RestClientResponseException { + public ResponseEntity call123testSpecialTagsWithHttpInfo(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return call123testSpecialTagsRequestCreation(client).toEntity(localVarReturnType); } @@ -115,7 +115,7 @@ public class AnotherFakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec call123testSpecialTagsWithResponseSpec(Client client) throws RestClientResponseException { + public ResponseSpec call123testSpecialTagsWithResponseSpec(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { return call123testSpecialTagsRequestCreation(client); } } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeApi.java index 424f6102a06..d31f03134d5 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeApi.java @@ -187,7 +187,7 @@ public class FakeApi { return fakeHealthGetRequestCreation(); } - public record FakeHttpSignatureTestRequest(Pet pet, String query1, String header1){} + public record FakeHttpSignatureTestRequest(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1){} /** * test http signature authentication @@ -232,7 +232,7 @@ public class FakeApi { * @param header1 header parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeHttpSignatureTestRequestCreation(Pet pet, String query1, String header1) throws RestClientResponseException { + private ResponseSpec fakeHttpSignatureTestRequestCreation(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws RestClientResponseException { Object postBody = pet; // verify the required parameter 'pet' is set if (pet == null) { @@ -273,7 +273,7 @@ public class FakeApi { * @param header1 header parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void fakeHttpSignatureTest(Pet pet, String query1, String header1) throws RestClientResponseException { + public void fakeHttpSignatureTest(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; fakeHttpSignatureTestRequestCreation(pet, query1, header1).body(localVarReturnType); } @@ -287,7 +287,7 @@ public class FakeApi { * @param header1 header parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeHttpSignatureTestWithHttpInfo(Pet pet, String query1, String header1) throws RestClientResponseException { + public ResponseEntity fakeHttpSignatureTestWithHttpInfo(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakeHttpSignatureTestRequestCreation(pet, query1, header1).toEntity(localVarReturnType); } @@ -302,7 +302,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeHttpSignatureTestWithResponseSpec(Pet pet, String query1, String header1) throws RestClientResponseException { + public ResponseSpec fakeHttpSignatureTestWithResponseSpec(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws RestClientResponseException { return fakeHttpSignatureTestRequestCreation(pet, query1, header1); } /** @@ -313,7 +313,7 @@ public class FakeApi { * @return Boolean * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterBooleanSerializeRequestCreation(Boolean body) throws RestClientResponseException { + private ResponseSpec fakeOuterBooleanSerializeRequestCreation(@jakarta.annotation.Nullable Boolean body) throws RestClientResponseException { Object postBody = body; // create path and map variables final Map pathParams = new HashMap<>(); @@ -346,7 +346,7 @@ public class FakeApi { * @return Boolean * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public Boolean fakeOuterBooleanSerialize(Boolean body) throws RestClientResponseException { + public Boolean fakeOuterBooleanSerialize(@jakarta.annotation.Nullable Boolean body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakeOuterBooleanSerializeRequestCreation(body).body(localVarReturnType); } @@ -359,7 +359,7 @@ public class FakeApi { * @return ResponseEntity<Boolean> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws RestClientResponseException { + public ResponseEntity fakeOuterBooleanSerializeWithHttpInfo(@jakarta.annotation.Nullable Boolean body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakeOuterBooleanSerializeRequestCreation(body).toEntity(localVarReturnType); } @@ -372,7 +372,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(Boolean body) throws RestClientResponseException { + public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(@jakarta.annotation.Nullable Boolean body) throws RestClientResponseException { return fakeOuterBooleanSerializeRequestCreation(body); } /** @@ -383,7 +383,7 @@ public class FakeApi { * @return OuterComposite * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterCompositeSerializeRequestCreation(OuterComposite outerComposite) throws RestClientResponseException { + private ResponseSpec fakeOuterCompositeSerializeRequestCreation(@jakarta.annotation.Nullable OuterComposite outerComposite) throws RestClientResponseException { Object postBody = outerComposite; // create path and map variables final Map pathParams = new HashMap<>(); @@ -416,7 +416,7 @@ public class FakeApi { * @return OuterComposite * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws RestClientResponseException { + public OuterComposite fakeOuterCompositeSerialize(@jakarta.annotation.Nullable OuterComposite outerComposite) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakeOuterCompositeSerializeRequestCreation(outerComposite).body(localVarReturnType); } @@ -429,7 +429,7 @@ public class FakeApi { * @return ResponseEntity<OuterComposite> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws RestClientResponseException { + public ResponseEntity fakeOuterCompositeSerializeWithHttpInfo(@jakarta.annotation.Nullable OuterComposite outerComposite) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakeOuterCompositeSerializeRequestCreation(outerComposite).toEntity(localVarReturnType); } @@ -442,7 +442,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(OuterComposite outerComposite) throws RestClientResponseException { + public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(@jakarta.annotation.Nullable OuterComposite outerComposite) throws RestClientResponseException { return fakeOuterCompositeSerializeRequestCreation(outerComposite); } /** @@ -453,7 +453,7 @@ public class FakeApi { * @return BigDecimal * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterNumberSerializeRequestCreation(BigDecimal body) throws RestClientResponseException { + private ResponseSpec fakeOuterNumberSerializeRequestCreation(@jakarta.annotation.Nullable BigDecimal body) throws RestClientResponseException { Object postBody = body; // create path and map variables final Map pathParams = new HashMap<>(); @@ -486,7 +486,7 @@ public class FakeApi { * @return BigDecimal * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws RestClientResponseException { + public BigDecimal fakeOuterNumberSerialize(@jakarta.annotation.Nullable BigDecimal body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakeOuterNumberSerializeRequestCreation(body).body(localVarReturnType); } @@ -499,7 +499,7 @@ public class FakeApi { * @return ResponseEntity<BigDecimal> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws RestClientResponseException { + public ResponseEntity fakeOuterNumberSerializeWithHttpInfo(@jakarta.annotation.Nullable BigDecimal body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakeOuterNumberSerializeRequestCreation(body).toEntity(localVarReturnType); } @@ -512,7 +512,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(BigDecimal body) throws RestClientResponseException { + public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(@jakarta.annotation.Nullable BigDecimal body) throws RestClientResponseException { return fakeOuterNumberSerializeRequestCreation(body); } /** @@ -523,7 +523,7 @@ public class FakeApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterStringSerializeRequestCreation(String body) throws RestClientResponseException { + private ResponseSpec fakeOuterStringSerializeRequestCreation(@jakarta.annotation.Nullable String body) throws RestClientResponseException { Object postBody = body; // create path and map variables final Map pathParams = new HashMap<>(); @@ -556,7 +556,7 @@ public class FakeApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String fakeOuterStringSerialize(String body) throws RestClientResponseException { + public String fakeOuterStringSerialize(@jakarta.annotation.Nullable String body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakeOuterStringSerializeRequestCreation(body).body(localVarReturnType); } @@ -569,7 +569,7 @@ public class FakeApi { * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterStringSerializeWithHttpInfo(String body) throws RestClientResponseException { + public ResponseEntity fakeOuterStringSerializeWithHttpInfo(@jakarta.annotation.Nullable String body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakeOuterStringSerializeRequestCreation(body).toEntity(localVarReturnType); } @@ -582,7 +582,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterStringSerializeWithResponseSpec(String body) throws RestClientResponseException { + public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@jakarta.annotation.Nullable String body) throws RestClientResponseException { return fakeOuterStringSerializeRequestCreation(body); } /** @@ -593,7 +593,7 @@ public class FakeApi { * @return OuterObjectWithEnumProperty * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakePropertyEnumIntegerSerializeRequestCreation(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { + private ResponseSpec fakePropertyEnumIntegerSerializeRequestCreation(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { Object postBody = outerObjectWithEnumProperty; // verify the required parameter 'outerObjectWithEnumProperty' is set if (outerObjectWithEnumProperty == null) { @@ -630,7 +630,7 @@ public class FakeApi { * @return OuterObjectWithEnumProperty * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { + public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty).body(localVarReturnType); } @@ -643,7 +643,7 @@ public class FakeApi { * @return ResponseEntity<OuterObjectWithEnumProperty> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakePropertyEnumIntegerSerializeWithHttpInfo(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { + public ResponseEntity fakePropertyEnumIntegerSerializeWithHttpInfo(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty).toEntity(localVarReturnType); } @@ -656,7 +656,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { + public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty); } /** @@ -666,7 +666,7 @@ public class FakeApi { * @param requestBody request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testAdditionalPropertiesReferenceRequestCreation(Map requestBody) throws RestClientResponseException { + private ResponseSpec testAdditionalPropertiesReferenceRequestCreation(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { Object postBody = requestBody; // verify the required parameter 'requestBody' is set if (requestBody == null) { @@ -700,7 +700,7 @@ public class FakeApi { * @param requestBody request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void testAdditionalPropertiesReference(Map requestBody) throws RestClientResponseException { + public void testAdditionalPropertiesReference(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testAdditionalPropertiesReferenceRequestCreation(requestBody).body(localVarReturnType); } @@ -712,7 +712,7 @@ public class FakeApi { * @param requestBody request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testAdditionalPropertiesReferenceWithHttpInfo(Map requestBody) throws RestClientResponseException { + public ResponseEntity testAdditionalPropertiesReferenceWithHttpInfo(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testAdditionalPropertiesReferenceRequestCreation(requestBody).toEntity(localVarReturnType); } @@ -725,7 +725,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(Map requestBody) throws RestClientResponseException { + public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { return testAdditionalPropertiesReferenceRequestCreation(requestBody); } /** @@ -735,7 +735,7 @@ public class FakeApi { * @param body image to upload * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testBodyWithBinaryRequestCreation(File body) throws RestClientResponseException { + private ResponseSpec testBodyWithBinaryRequestCreation(@jakarta.annotation.Nullable File body) throws RestClientResponseException { Object postBody = body; // verify the required parameter 'body' is set if (body == null) { @@ -769,7 +769,7 @@ public class FakeApi { * @param body image to upload * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void testBodyWithBinary(File body) throws RestClientResponseException { + public void testBodyWithBinary(@jakarta.annotation.Nullable File body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testBodyWithBinaryRequestCreation(body).body(localVarReturnType); } @@ -781,7 +781,7 @@ public class FakeApi { * @param body image to upload * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testBodyWithBinaryWithHttpInfo(File body) throws RestClientResponseException { + public ResponseEntity testBodyWithBinaryWithHttpInfo(@jakarta.annotation.Nullable File body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testBodyWithBinaryRequestCreation(body).toEntity(localVarReturnType); } @@ -794,7 +794,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testBodyWithBinaryWithResponseSpec(File body) throws RestClientResponseException { + public ResponseSpec testBodyWithBinaryWithResponseSpec(@jakarta.annotation.Nullable File body) throws RestClientResponseException { return testBodyWithBinaryRequestCreation(body); } /** @@ -804,7 +804,7 @@ public class FakeApi { * @param fileSchemaTestClass The fileSchemaTestClass parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testBodyWithFileSchemaRequestCreation(FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException { + private ResponseSpec testBodyWithFileSchemaRequestCreation(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException { Object postBody = fileSchemaTestClass; // verify the required parameter 'fileSchemaTestClass' is set if (fileSchemaTestClass == null) { @@ -838,7 +838,7 @@ public class FakeApi { * @param fileSchemaTestClass The fileSchemaTestClass parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException { + public void testBodyWithFileSchema(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testBodyWithFileSchemaRequestCreation(fileSchemaTestClass).body(localVarReturnType); } @@ -850,7 +850,7 @@ public class FakeApi { * @param fileSchemaTestClass The fileSchemaTestClass parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException { + public ResponseEntity testBodyWithFileSchemaWithHttpInfo(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass).toEntity(localVarReturnType); } @@ -863,11 +863,11 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testBodyWithFileSchemaWithResponseSpec(FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException { + public ResponseSpec testBodyWithFileSchemaWithResponseSpec(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException { return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass); } - public record TestBodyWithQueryParamsRequest(String query, User user){} + public record TestBodyWithQueryParamsRequest(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user){} /** * @@ -911,7 +911,7 @@ public class FakeApi { * @param user The user parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testBodyWithQueryParamsRequestCreation(String query, User user) throws RestClientResponseException { + private ResponseSpec testBodyWithQueryParamsRequestCreation(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { Object postBody = user; // verify the required parameter 'query' is set if (query == null) { @@ -952,7 +952,7 @@ public class FakeApi { * @param user The user parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void testBodyWithQueryParams(String query, User user) throws RestClientResponseException { + public void testBodyWithQueryParams(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testBodyWithQueryParamsRequestCreation(query, user).body(localVarReturnType); } @@ -965,7 +965,7 @@ public class FakeApi { * @param user The user parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testBodyWithQueryParamsWithHttpInfo(String query, User user) throws RestClientResponseException { + public ResponseEntity testBodyWithQueryParamsWithHttpInfo(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testBodyWithQueryParamsRequestCreation(query, user).toEntity(localVarReturnType); } @@ -979,7 +979,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testBodyWithQueryParamsWithResponseSpec(String query, User user) throws RestClientResponseException { + public ResponseSpec testBodyWithQueryParamsWithResponseSpec(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { return testBodyWithQueryParamsRequestCreation(query, user); } /** @@ -990,7 +990,7 @@ public class FakeApi { * @return Client * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testClientModelRequestCreation(Client client) throws RestClientResponseException { + private ResponseSpec testClientModelRequestCreation(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { Object postBody = client; // verify the required parameter 'client' is set if (client == null) { @@ -1027,7 +1027,7 @@ public class FakeApi { * @return Client * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public Client testClientModel(Client client) throws RestClientResponseException { + public Client testClientModel(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testClientModelRequestCreation(client).body(localVarReturnType); } @@ -1040,7 +1040,7 @@ public class FakeApi { * @return ResponseEntity<Client> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testClientModelWithHttpInfo(Client client) throws RestClientResponseException { + public ResponseEntity testClientModelWithHttpInfo(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testClientModelRequestCreation(client).toEntity(localVarReturnType); } @@ -1053,11 +1053,11 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testClientModelWithResponseSpec(Client client) throws RestClientResponseException { + public ResponseSpec testClientModelWithResponseSpec(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { return testClientModelRequestCreation(client); } - public record TestEndpointParametersRequest(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){} + public record TestEndpointParametersRequest(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback){} /** * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -1117,7 +1117,7 @@ public class FakeApi { * @param paramCallback None * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testEndpointParametersRequestCreation(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 RestClientResponseException { + private ResponseSpec testEndpointParametersRequestCreation(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'number' is set if (number == null) { @@ -1206,7 +1206,7 @@ public class FakeApi { * @param paramCallback None * @throws RestClientResponseException 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 RestClientResponseException { + public void testEndpointParameters(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback).body(localVarReturnType); } @@ -1232,7 +1232,7 @@ public class FakeApi { * @param paramCallback None * @throws RestClientResponseException 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 RestClientResponseException { + public ResponseEntity testEndpointParametersWithHttpInfo(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback).toEntity(localVarReturnType); } @@ -1259,11 +1259,11 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testEndpointParametersWithResponseSpec(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 RestClientResponseException { + public ResponseSpec testEndpointParametersWithResponseSpec(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws RestClientResponseException { return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } - public record TestEnumParametersRequest(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString){} + public record TestEnumParametersRequest(@jakarta.annotation.Nullable List enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List enumQueryModelArray, @jakarta.annotation.Nullable List enumFormStringArray, @jakarta.annotation.Nullable String enumFormString){} /** * To test enum parameters @@ -1318,7 +1318,7 @@ public class FakeApi { * @param enumFormString Form parameter enum test (string) * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testEnumParametersRequestCreation(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws RestClientResponseException { + private ResponseSpec testEnumParametersRequestCreation(@jakarta.annotation.Nullable List enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List enumQueryModelArray, @jakarta.annotation.Nullable List enumFormStringArray, @jakarta.annotation.Nullable String enumFormString) throws RestClientResponseException { Object postBody = null; // create path and map variables final Map pathParams = new HashMap<>(); @@ -1373,7 +1373,7 @@ public class FakeApi { * @param enumFormString Form parameter enum test (string) * @throws RestClientResponseException 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 RestClientResponseException { + public void testEnumParameters(@jakarta.annotation.Nullable List enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List enumQueryModelArray, @jakarta.annotation.Nullable List enumFormStringArray, @jakarta.annotation.Nullable String enumFormString) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString).body(localVarReturnType); } @@ -1394,7 +1394,7 @@ public class FakeApi { * @param enumFormString Form parameter enum test (string) * @throws RestClientResponseException 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 RestClientResponseException { + public ResponseEntity testEnumParametersWithHttpInfo(@jakarta.annotation.Nullable List enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List enumQueryModelArray, @jakarta.annotation.Nullable List enumFormStringArray, @jakarta.annotation.Nullable String enumFormString) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString).toEntity(localVarReturnType); } @@ -1416,11 +1416,11 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testEnumParametersWithResponseSpec(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws RestClientResponseException { + public ResponseSpec testEnumParametersWithResponseSpec(@jakarta.annotation.Nullable List enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List enumQueryModelArray, @jakarta.annotation.Nullable List enumFormStringArray, @jakarta.annotation.Nullable String enumFormString) throws RestClientResponseException { return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString); } - public record TestGroupParametersRequest(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group){} + public record TestGroupParametersRequest(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group){} /** * Fake endpoint to test group parameters (optional) @@ -1468,7 +1468,7 @@ public class FakeApi { * @param int64Group Integer in group parameters * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testGroupParametersRequestCreation(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws RestClientResponseException { + private ResponseSpec testGroupParametersRequestCreation(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'requiredStringGroup' is set if (requiredStringGroup == null) { @@ -1523,7 +1523,7 @@ public class FakeApi { * @param int64Group Integer in group parameters * @throws RestClientResponseException 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 RestClientResponseException { + public void testGroupParameters(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group).body(localVarReturnType); } @@ -1540,7 +1540,7 @@ public class FakeApi { * @param int64Group Integer in group parameters * @throws RestClientResponseException 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 RestClientResponseException { + public ResponseEntity testGroupParametersWithHttpInfo(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group).toEntity(localVarReturnType); } @@ -1558,7 +1558,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testGroupParametersWithResponseSpec(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws RestClientResponseException { + public ResponseSpec testGroupParametersWithResponseSpec(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group) throws RestClientResponseException { return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } /** @@ -1568,7 +1568,7 @@ public class FakeApi { * @param requestBody request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testInlineAdditionalPropertiesRequestCreation(Map requestBody) throws RestClientResponseException { + private ResponseSpec testInlineAdditionalPropertiesRequestCreation(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { Object postBody = requestBody; // verify the required parameter 'requestBody' is set if (requestBody == null) { @@ -1602,7 +1602,7 @@ public class FakeApi { * @param requestBody request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void testInlineAdditionalProperties(Map requestBody) throws RestClientResponseException { + public void testInlineAdditionalProperties(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testInlineAdditionalPropertiesRequestCreation(requestBody).body(localVarReturnType); } @@ -1614,7 +1614,7 @@ public class FakeApi { * @param requestBody request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testInlineAdditionalPropertiesWithHttpInfo(Map requestBody) throws RestClientResponseException { + public ResponseEntity testInlineAdditionalPropertiesWithHttpInfo(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testInlineAdditionalPropertiesRequestCreation(requestBody).toEntity(localVarReturnType); } @@ -1627,7 +1627,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(Map requestBody) throws RestClientResponseException { + public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { return testInlineAdditionalPropertiesRequestCreation(requestBody); } /** @@ -1637,7 +1637,7 @@ public class FakeApi { * @param testInlineFreeformAdditionalPropertiesRequest request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testInlineFreeformAdditionalPropertiesRequestCreation(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException { + private ResponseSpec testInlineFreeformAdditionalPropertiesRequestCreation(@jakarta.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException { Object postBody = testInlineFreeformAdditionalPropertiesRequest; // verify the required parameter 'testInlineFreeformAdditionalPropertiesRequest' is set if (testInlineFreeformAdditionalPropertiesRequest == null) { @@ -1671,7 +1671,7 @@ public class FakeApi { * @param testInlineFreeformAdditionalPropertiesRequest request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException { + public void testInlineFreeformAdditionalProperties(@jakarta.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest).body(localVarReturnType); } @@ -1683,7 +1683,7 @@ public class FakeApi { * @param testInlineFreeformAdditionalPropertiesRequest request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testInlineFreeformAdditionalPropertiesWithHttpInfo(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException { + public ResponseEntity testInlineFreeformAdditionalPropertiesWithHttpInfo(@jakarta.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest).toEntity(localVarReturnType); } @@ -1696,11 +1696,11 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testInlineFreeformAdditionalPropertiesWithResponseSpec(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException { + public ResponseSpec testInlineFreeformAdditionalPropertiesWithResponseSpec(@jakarta.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException { return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest); } - public record TestJsonFormDataRequest(String param, String param2){} + public record TestJsonFormDataRequest(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2){} /** * test json serialization of form data @@ -1744,7 +1744,7 @@ public class FakeApi { * @param param2 field2 * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testJsonFormDataRequestCreation(String param, String param2) throws RestClientResponseException { + private ResponseSpec testJsonFormDataRequestCreation(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'param' is set if (param == null) { @@ -1788,7 +1788,7 @@ public class FakeApi { * @param param2 field2 * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void testJsonFormData(String param, String param2) throws RestClientResponseException { + public void testJsonFormData(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testJsonFormDataRequestCreation(param, param2).body(localVarReturnType); } @@ -1801,7 +1801,7 @@ public class FakeApi { * @param param2 field2 * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testJsonFormDataWithHttpInfo(String param, String param2) throws RestClientResponseException { + public ResponseEntity testJsonFormDataWithHttpInfo(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testJsonFormDataRequestCreation(param, param2).toEntity(localVarReturnType); } @@ -1815,7 +1815,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testJsonFormDataWithResponseSpec(String param, String param2) throws RestClientResponseException { + public ResponseSpec testJsonFormDataWithResponseSpec(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2) throws RestClientResponseException { return testJsonFormDataRequestCreation(param, param2); } /** @@ -1825,7 +1825,7 @@ public class FakeApi { * @param childWithNullable request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testNullableRequestCreation(ChildWithNullable childWithNullable) throws RestClientResponseException { + private ResponseSpec testNullableRequestCreation(@jakarta.annotation.Nonnull ChildWithNullable childWithNullable) throws RestClientResponseException { Object postBody = childWithNullable; // verify the required parameter 'childWithNullable' is set if (childWithNullable == null) { @@ -1859,7 +1859,7 @@ public class FakeApi { * @param childWithNullable request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void testNullable(ChildWithNullable childWithNullable) throws RestClientResponseException { + public void testNullable(@jakarta.annotation.Nonnull ChildWithNullable childWithNullable) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testNullableRequestCreation(childWithNullable).body(localVarReturnType); } @@ -1871,7 +1871,7 @@ public class FakeApi { * @param childWithNullable request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testNullableWithHttpInfo(ChildWithNullable childWithNullable) throws RestClientResponseException { + public ResponseEntity testNullableWithHttpInfo(@jakarta.annotation.Nonnull ChildWithNullable childWithNullable) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testNullableRequestCreation(childWithNullable).toEntity(localVarReturnType); } @@ -1884,11 +1884,11 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testNullableWithResponseSpec(ChildWithNullable childWithNullable) throws RestClientResponseException { + public ResponseSpec testNullableWithResponseSpec(@jakarta.annotation.Nonnull ChildWithNullable childWithNullable) throws RestClientResponseException { return testNullableRequestCreation(childWithNullable); } - public record TestQueryParameterCollectionFormatRequest(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language){} + public record TestQueryParameterCollectionFormatRequest(@jakarta.annotation.Nonnull List pipe, @jakarta.annotation.Nonnull List ioutil, @jakarta.annotation.Nonnull List http, @jakarta.annotation.Nonnull List url, @jakarta.annotation.Nonnull List context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map language){} /** * @@ -1937,7 +1937,7 @@ public class FakeApi { * @param language The language parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testQueryParameterCollectionFormatRequestCreation(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws RestClientResponseException { + private ResponseSpec testQueryParameterCollectionFormatRequestCreation(@jakarta.annotation.Nonnull List pipe, @jakarta.annotation.Nonnull List ioutil, @jakarta.annotation.Nonnull List http, @jakarta.annotation.Nonnull List url, @jakarta.annotation.Nonnull List context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map language) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'pipe' is set if (pipe == null) { @@ -2003,7 +2003,7 @@ public class FakeApi { * @param language The language parameter * @throws RestClientResponseException 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 RestClientResponseException { + public void testQueryParameterCollectionFormat(@jakarta.annotation.Nonnull List pipe, @jakarta.annotation.Nonnull List ioutil, @jakarta.annotation.Nonnull List http, @jakarta.annotation.Nonnull List url, @jakarta.annotation.Nonnull List context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map language) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language).body(localVarReturnType); } @@ -2021,7 +2021,7 @@ public class FakeApi { * @param language The language parameter * @throws RestClientResponseException 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 RestClientResponseException { + public ResponseEntity testQueryParameterCollectionFormatWithHttpInfo(@jakarta.annotation.Nonnull List pipe, @jakarta.annotation.Nonnull List ioutil, @jakarta.annotation.Nonnull List http, @jakarta.annotation.Nonnull List url, @jakarta.annotation.Nonnull List context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map language) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language).toEntity(localVarReturnType); } @@ -2040,7 +2040,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws RestClientResponseException { + public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(@jakarta.annotation.Nonnull List pipe, @jakarta.annotation.Nonnull List ioutil, @jakarta.annotation.Nonnull List http, @jakarta.annotation.Nonnull List url, @jakarta.annotation.Nonnull List context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map language) throws RestClientResponseException { return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language); } /** @@ -2050,7 +2050,7 @@ public class FakeApi { * @param requestBody request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testStringMapReferenceRequestCreation(Map requestBody) throws RestClientResponseException { + private ResponseSpec testStringMapReferenceRequestCreation(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { Object postBody = requestBody; // verify the required parameter 'requestBody' is set if (requestBody == null) { @@ -2084,7 +2084,7 @@ public class FakeApi { * @param requestBody request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void testStringMapReference(Map requestBody) throws RestClientResponseException { + public void testStringMapReference(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testStringMapReferenceRequestCreation(requestBody).body(localVarReturnType); } @@ -2096,7 +2096,7 @@ public class FakeApi { * @param requestBody request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testStringMapReferenceWithHttpInfo(Map requestBody) throws RestClientResponseException { + public ResponseEntity testStringMapReferenceWithHttpInfo(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testStringMapReferenceRequestCreation(requestBody).toEntity(localVarReturnType); } @@ -2109,7 +2109,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testStringMapReferenceWithResponseSpec(Map requestBody) throws RestClientResponseException { + public ResponseSpec testStringMapReferenceWithResponseSpec(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { return testStringMapReferenceRequestCreation(requestBody); } } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 3a2f5a886d1..c70ea29b883 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -52,7 +52,7 @@ public class FakeClassnameTags123Api { * @return Client * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testClassnameRequestCreation(Client client) throws RestClientResponseException { + private ResponseSpec testClassnameRequestCreation(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { Object postBody = client; // verify the required parameter 'client' is set if (client == null) { @@ -89,7 +89,7 @@ public class FakeClassnameTags123Api { * @return Client * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public Client testClassname(Client client) throws RestClientResponseException { + public Client testClassname(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testClassnameRequestCreation(client).body(localVarReturnType); } @@ -102,7 +102,7 @@ public class FakeClassnameTags123Api { * @return ResponseEntity<Client> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testClassnameWithHttpInfo(Client client) throws RestClientResponseException { + public ResponseEntity testClassnameWithHttpInfo(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testClassnameRequestCreation(client).toEntity(localVarReturnType); } @@ -115,7 +115,7 @@ public class FakeClassnameTags123Api { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testClassnameWithResponseSpec(Client client) throws RestClientResponseException { + public ResponseSpec testClassnameWithResponseSpec(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { return testClassnameRequestCreation(client); } } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/PetApi.java index 11ff980de48..f1771099de5 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/PetApi.java @@ -55,7 +55,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec addPetRequestCreation(Pet pet) throws RestClientResponseException { + private ResponseSpec addPetRequestCreation(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { Object postBody = pet; // verify the required parameter 'pet' is set if (pet == null) { @@ -90,7 +90,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void addPet(Pet pet) throws RestClientResponseException { + public void addPet(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; addPetRequestCreation(pet).body(localVarReturnType); } @@ -103,7 +103,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity addPetWithHttpInfo(Pet pet) throws RestClientResponseException { + public ResponseEntity addPetWithHttpInfo(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return addPetRequestCreation(pet).toEntity(localVarReturnType); } @@ -117,11 +117,11 @@ public class PetApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec addPetWithResponseSpec(Pet pet) throws RestClientResponseException { + public ResponseSpec addPetWithResponseSpec(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { return addPetRequestCreation(pet); } - public record DeletePetRequest(Long petId, String apiKey){} + public record DeletePetRequest(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey){} /** * Deletes a pet @@ -169,7 +169,7 @@ public class PetApi { * @param apiKey The apiKey parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec deletePetRequestCreation(Long petId, String apiKey) throws RestClientResponseException { + private ResponseSpec deletePetRequestCreation(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -208,7 +208,7 @@ public class PetApi { * @param apiKey The apiKey parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void deletePet(Long petId, String apiKey) throws RestClientResponseException { + public void deletePet(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; deletePetRequestCreation(petId, apiKey).body(localVarReturnType); } @@ -222,7 +222,7 @@ public class PetApi { * @param apiKey The apiKey parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity deletePetWithHttpInfo(Long petId, String apiKey) throws RestClientResponseException { + public ResponseEntity deletePetWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return deletePetRequestCreation(petId, apiKey).toEntity(localVarReturnType); } @@ -237,7 +237,7 @@ public class PetApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec deletePetWithResponseSpec(Long petId, String apiKey) throws RestClientResponseException { + public ResponseSpec deletePetWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientResponseException { return deletePetRequestCreation(petId, apiKey); } /** @@ -249,7 +249,7 @@ public class PetApi { * @return List<Pet> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec findPetsByStatusRequestCreation(List status) throws RestClientResponseException { + private ResponseSpec findPetsByStatusRequestCreation(@jakarta.annotation.Nonnull List status) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'status' is set if (status == null) { @@ -287,7 +287,7 @@ public class PetApi { * @return List<Pet> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public List findPetsByStatus(List status) throws RestClientResponseException { + public List findPetsByStatus(@jakarta.annotation.Nonnull List status) throws RestClientResponseException { ParameterizedTypeReference> localVarReturnType = new ParameterizedTypeReference<>() {}; return findPetsByStatusRequestCreation(status).body(localVarReturnType); } @@ -301,7 +301,7 @@ public class PetApi { * @return ResponseEntity<List<Pet>> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity> findPetsByStatusWithHttpInfo(List status) throws RestClientResponseException { + public ResponseEntity> findPetsByStatusWithHttpInfo(@jakarta.annotation.Nonnull List status) throws RestClientResponseException { ParameterizedTypeReference> localVarReturnType = new ParameterizedTypeReference<>() {}; return findPetsByStatusRequestCreation(status).toEntity(localVarReturnType); } @@ -315,7 +315,7 @@ public class PetApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec findPetsByStatusWithResponseSpec(List status) throws RestClientResponseException { + public ResponseSpec findPetsByStatusWithResponseSpec(@jakarta.annotation.Nonnull List status) throws RestClientResponseException { return findPetsByStatusRequestCreation(status); } /** @@ -329,7 +329,7 @@ public class PetApi { * @deprecated */ @Deprecated - private ResponseSpec findPetsByTagsRequestCreation(Set tags) throws RestClientResponseException { + private ResponseSpec findPetsByTagsRequestCreation(@jakarta.annotation.Nonnull Set tags) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'tags' is set if (tags == null) { @@ -367,7 +367,7 @@ public class PetApi { * @return Set<Pet> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public Set findPetsByTags(Set tags) throws RestClientResponseException { + public Set findPetsByTags(@jakarta.annotation.Nonnull Set tags) throws RestClientResponseException { ParameterizedTypeReference> localVarReturnType = new ParameterizedTypeReference<>() {}; return findPetsByTagsRequestCreation(tags).body(localVarReturnType); } @@ -381,7 +381,7 @@ public class PetApi { * @return ResponseEntity<Set<Pet>> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity> findPetsByTagsWithHttpInfo(Set tags) throws RestClientResponseException { + public ResponseEntity> findPetsByTagsWithHttpInfo(@jakarta.annotation.Nonnull Set tags) throws RestClientResponseException { ParameterizedTypeReference> localVarReturnType = new ParameterizedTypeReference<>() {}; return findPetsByTagsRequestCreation(tags).toEntity(localVarReturnType); } @@ -395,7 +395,7 @@ public class PetApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec findPetsByTagsWithResponseSpec(Set tags) throws RestClientResponseException { + public ResponseSpec findPetsByTagsWithResponseSpec(@jakarta.annotation.Nonnull Set tags) throws RestClientResponseException { return findPetsByTagsRequestCreation(tags); } /** @@ -408,7 +408,7 @@ public class PetApi { * @return Pet * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec getPetByIdRequestCreation(Long petId) throws RestClientResponseException { + private ResponseSpec getPetByIdRequestCreation(@jakarta.annotation.Nonnull Long petId) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -447,7 +447,7 @@ public class PetApi { * @return Pet * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public Pet getPetById(Long petId) throws RestClientResponseException { + public Pet getPetById(@jakarta.annotation.Nonnull Long petId) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return getPetByIdRequestCreation(petId).body(localVarReturnType); } @@ -462,7 +462,7 @@ public class PetApi { * @return ResponseEntity<Pet> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws RestClientResponseException { + public ResponseEntity getPetByIdWithHttpInfo(@jakarta.annotation.Nonnull Long petId) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return getPetByIdRequestCreation(petId).toEntity(localVarReturnType); } @@ -477,7 +477,7 @@ public class PetApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec getPetByIdWithResponseSpec(Long petId) throws RestClientResponseException { + public ResponseSpec getPetByIdWithResponseSpec(@jakarta.annotation.Nonnull Long petId) throws RestClientResponseException { return getPetByIdRequestCreation(petId); } /** @@ -490,7 +490,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec updatePetRequestCreation(Pet pet) throws RestClientResponseException { + private ResponseSpec updatePetRequestCreation(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { Object postBody = pet; // verify the required parameter 'pet' is set if (pet == null) { @@ -527,7 +527,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void updatePet(Pet pet) throws RestClientResponseException { + public void updatePet(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; updatePetRequestCreation(pet).body(localVarReturnType); } @@ -542,7 +542,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity updatePetWithHttpInfo(Pet pet) throws RestClientResponseException { + public ResponseEntity updatePetWithHttpInfo(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return updatePetRequestCreation(pet).toEntity(localVarReturnType); } @@ -558,11 +558,11 @@ public class PetApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec updatePetWithResponseSpec(Pet pet) throws RestClientResponseException { + public ResponseSpec updatePetWithResponseSpec(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { return updatePetRequestCreation(pet); } - public record UpdatePetWithFormRequest(Long petId, String name, String status){} + public record UpdatePetWithFormRequest(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status){} /** * Updates a pet in the store with form data @@ -611,7 +611,7 @@ public class PetApi { * @param status Updated status of the pet * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec updatePetWithFormRequestCreation(Long petId, String name, String status) throws RestClientResponseException { + private ResponseSpec updatePetWithFormRequestCreation(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -655,7 +655,7 @@ public class PetApi { * @param status Updated status of the pet * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void updatePetWithForm(Long petId, String name, String status) throws RestClientResponseException { + public void updatePetWithForm(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; updatePetWithFormRequestCreation(petId, name, status).body(localVarReturnType); } @@ -670,7 +670,7 @@ public class PetApi { * @param status Updated status of the pet * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws RestClientResponseException { + public ResponseEntity updatePetWithFormWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return updatePetWithFormRequestCreation(petId, name, status).toEntity(localVarReturnType); } @@ -686,11 +686,11 @@ public class PetApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec updatePetWithFormWithResponseSpec(Long petId, String name, String status) throws RestClientResponseException { + public ResponseSpec updatePetWithFormWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws RestClientResponseException { return updatePetWithFormRequestCreation(petId, name, status); } - public record UploadFileRequest(Long petId, String additionalMetadata, File _file){} + public record UploadFileRequest(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file){} /** * uploads an image @@ -738,7 +738,7 @@ public class PetApi { * @return ModelApiResponse * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec uploadFileRequestCreation(Long petId, String additionalMetadata, File _file) throws RestClientResponseException { + private ResponseSpec uploadFileRequestCreation(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -784,7 +784,7 @@ public class PetApi { * @return ModelApiResponse * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws RestClientResponseException { + public ModelApiResponse uploadFile(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return uploadFileRequestCreation(petId, additionalMetadata, _file).body(localVarReturnType); } @@ -799,7 +799,7 @@ public class PetApi { * @return ResponseEntity<ModelApiResponse> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws RestClientResponseException { + public ResponseEntity uploadFileWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return uploadFileRequestCreation(petId, additionalMetadata, _file).toEntity(localVarReturnType); } @@ -814,11 +814,11 @@ public class PetApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec uploadFileWithResponseSpec(Long petId, String additionalMetadata, File _file) throws RestClientResponseException { + public ResponseSpec uploadFileWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws RestClientResponseException { return uploadFileRequestCreation(petId, additionalMetadata, _file); } - public record UploadFileWithRequiredFileRequest(Long petId, File requiredFile, String additionalMetadata){} + public record UploadFileWithRequiredFileRequest(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nonnull File requiredFile, @jakarta.annotation.Nullable String additionalMetadata){} /** * uploads an image (required) @@ -866,7 +866,7 @@ public class PetApi { * @return ModelApiResponse * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec uploadFileWithRequiredFileRequestCreation(Long petId, File requiredFile, String additionalMetadata) throws RestClientResponseException { + private ResponseSpec uploadFileWithRequiredFileRequestCreation(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nonnull File requiredFile, @jakarta.annotation.Nullable String additionalMetadata) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -916,7 +916,7 @@ public class PetApi { * @return ModelApiResponse * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws RestClientResponseException { + public ModelApiResponse uploadFileWithRequiredFile(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nonnull File requiredFile, @jakarta.annotation.Nullable String additionalMetadata) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return uploadFileWithRequiredFileRequestCreation(petId, requiredFile, additionalMetadata).body(localVarReturnType); } @@ -931,7 +931,7 @@ public class PetApi { * @return ResponseEntity<ModelApiResponse> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws RestClientResponseException { + public ResponseEntity uploadFileWithRequiredFileWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nonnull File requiredFile, @jakarta.annotation.Nullable String additionalMetadata) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return uploadFileWithRequiredFileRequestCreation(petId, requiredFile, additionalMetadata).toEntity(localVarReturnType); } @@ -946,7 +946,7 @@ public class PetApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec uploadFileWithRequiredFileWithResponseSpec(Long petId, File requiredFile, String additionalMetadata) throws RestClientResponseException { + public ResponseSpec uploadFileWithRequiredFileWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nonnull File requiredFile, @jakarta.annotation.Nullable String additionalMetadata) throws RestClientResponseException { return uploadFileWithRequiredFileRequestCreation(petId, requiredFile, additionalMetadata); } } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/StoreApi.java index fec8c232cde..35cc10f109d 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/StoreApi.java @@ -52,7 +52,7 @@ public class StoreApi { * @param orderId ID of the order that needs to be deleted * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec deleteOrderRequestCreation(String orderId) throws RestClientResponseException { + private ResponseSpec deleteOrderRequestCreation(@jakarta.annotation.Nonnull String orderId) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'orderId' is set if (orderId == null) { @@ -87,7 +87,7 @@ public class StoreApi { * @param orderId ID of the order that needs to be deleted * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void deleteOrder(String orderId) throws RestClientResponseException { + public void deleteOrder(@jakarta.annotation.Nonnull String orderId) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; deleteOrderRequestCreation(orderId).body(localVarReturnType); } @@ -100,7 +100,7 @@ public class StoreApi { * @param orderId ID of the order that needs to be deleted * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity deleteOrderWithHttpInfo(String orderId) throws RestClientResponseException { + public ResponseEntity deleteOrderWithHttpInfo(@jakarta.annotation.Nonnull String orderId) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return deleteOrderRequestCreation(orderId).toEntity(localVarReturnType); } @@ -114,7 +114,7 @@ public class StoreApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec deleteOrderWithResponseSpec(String orderId) throws RestClientResponseException { + public ResponseSpec deleteOrderWithResponseSpec(@jakarta.annotation.Nonnull String orderId) throws RestClientResponseException { return deleteOrderRequestCreation(orderId); } /** @@ -191,7 +191,7 @@ public class StoreApi { * @return Order * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec getOrderByIdRequestCreation(Long orderId) throws RestClientResponseException { + private ResponseSpec getOrderByIdRequestCreation(@jakarta.annotation.Nonnull Long orderId) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'orderId' is set if (orderId == null) { @@ -230,7 +230,7 @@ public class StoreApi { * @return Order * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public Order getOrderById(Long orderId) throws RestClientResponseException { + public Order getOrderById(@jakarta.annotation.Nonnull Long orderId) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return getOrderByIdRequestCreation(orderId).body(localVarReturnType); } @@ -245,7 +245,7 @@ public class StoreApi { * @return ResponseEntity<Order> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity getOrderByIdWithHttpInfo(Long orderId) throws RestClientResponseException { + public ResponseEntity getOrderByIdWithHttpInfo(@jakarta.annotation.Nonnull Long orderId) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return getOrderByIdRequestCreation(orderId).toEntity(localVarReturnType); } @@ -260,7 +260,7 @@ public class StoreApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec getOrderByIdWithResponseSpec(Long orderId) throws RestClientResponseException { + public ResponseSpec getOrderByIdWithResponseSpec(@jakarta.annotation.Nonnull Long orderId) throws RestClientResponseException { return getOrderByIdRequestCreation(orderId); } /** @@ -272,7 +272,7 @@ public class StoreApi { * @return Order * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec placeOrderRequestCreation(Order order) throws RestClientResponseException { + private ResponseSpec placeOrderRequestCreation(@jakarta.annotation.Nonnull Order order) throws RestClientResponseException { Object postBody = order; // verify the required parameter 'order' is set if (order == null) { @@ -310,7 +310,7 @@ public class StoreApi { * @return Order * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public Order placeOrder(Order order) throws RestClientResponseException { + public Order placeOrder(@jakarta.annotation.Nonnull Order order) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return placeOrderRequestCreation(order).body(localVarReturnType); } @@ -324,7 +324,7 @@ public class StoreApi { * @return ResponseEntity<Order> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity placeOrderWithHttpInfo(Order order) throws RestClientResponseException { + public ResponseEntity placeOrderWithHttpInfo(@jakarta.annotation.Nonnull Order order) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return placeOrderRequestCreation(order).toEntity(localVarReturnType); } @@ -338,7 +338,7 @@ public class StoreApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec placeOrderWithResponseSpec(Order order) throws RestClientResponseException { + public ResponseSpec placeOrderWithResponseSpec(@jakarta.annotation.Nonnull Order order) throws RestClientResponseException { return placeOrderRequestCreation(order); } } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/UserApi.java index 1fea9b7c260..dccd632adcd 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/UserApi.java @@ -52,7 +52,7 @@ public class UserApi { * @param user Created user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec createUserRequestCreation(User user) throws RestClientResponseException { + private ResponseSpec createUserRequestCreation(@jakarta.annotation.Nonnull User user) throws RestClientResponseException { Object postBody = user; // verify the required parameter 'user' is set if (user == null) { @@ -86,7 +86,7 @@ public class UserApi { * @param user Created user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void createUser(User user) throws RestClientResponseException { + public void createUser(@jakarta.annotation.Nonnull User user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; createUserRequestCreation(user).body(localVarReturnType); } @@ -98,7 +98,7 @@ public class UserApi { * @param user Created user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUserWithHttpInfo(User user) throws RestClientResponseException { + public ResponseEntity createUserWithHttpInfo(@jakarta.annotation.Nonnull User user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return createUserRequestCreation(user).toEntity(localVarReturnType); } @@ -111,7 +111,7 @@ public class UserApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec createUserWithResponseSpec(User user) throws RestClientResponseException { + public ResponseSpec createUserWithResponseSpec(@jakarta.annotation.Nonnull User user) throws RestClientResponseException { return createUserRequestCreation(user); } /** @@ -121,7 +121,7 @@ public class UserApi { * @param user List of user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec createUsersWithArrayInputRequestCreation(List user) throws RestClientResponseException { + private ResponseSpec createUsersWithArrayInputRequestCreation(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { Object postBody = user; // verify the required parameter 'user' is set if (user == null) { @@ -155,7 +155,7 @@ public class UserApi { * @param user List of user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void createUsersWithArrayInput(List user) throws RestClientResponseException { + public void createUsersWithArrayInput(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; createUsersWithArrayInputRequestCreation(user).body(localVarReturnType); } @@ -167,7 +167,7 @@ public class UserApi { * @param user List of user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUsersWithArrayInputWithHttpInfo(List user) throws RestClientResponseException { + public ResponseEntity createUsersWithArrayInputWithHttpInfo(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return createUsersWithArrayInputRequestCreation(user).toEntity(localVarReturnType); } @@ -180,7 +180,7 @@ public class UserApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec createUsersWithArrayInputWithResponseSpec(List user) throws RestClientResponseException { + public ResponseSpec createUsersWithArrayInputWithResponseSpec(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { return createUsersWithArrayInputRequestCreation(user); } /** @@ -190,7 +190,7 @@ public class UserApi { * @param user List of user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec createUsersWithListInputRequestCreation(List user) throws RestClientResponseException { + private ResponseSpec createUsersWithListInputRequestCreation(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { Object postBody = user; // verify the required parameter 'user' is set if (user == null) { @@ -224,7 +224,7 @@ public class UserApi { * @param user List of user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void createUsersWithListInput(List user) throws RestClientResponseException { + public void createUsersWithListInput(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; createUsersWithListInputRequestCreation(user).body(localVarReturnType); } @@ -236,7 +236,7 @@ public class UserApi { * @param user List of user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUsersWithListInputWithHttpInfo(List user) throws RestClientResponseException { + public ResponseEntity createUsersWithListInputWithHttpInfo(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return createUsersWithListInputRequestCreation(user).toEntity(localVarReturnType); } @@ -249,7 +249,7 @@ public class UserApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec createUsersWithListInputWithResponseSpec(List user) throws RestClientResponseException { + public ResponseSpec createUsersWithListInputWithResponseSpec(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { return createUsersWithListInputRequestCreation(user); } /** @@ -260,7 +260,7 @@ public class UserApi { * @param username The name that needs to be deleted * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec deleteUserRequestCreation(String username) throws RestClientResponseException { + private ResponseSpec deleteUserRequestCreation(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'username' is set if (username == null) { @@ -295,7 +295,7 @@ public class UserApi { * @param username The name that needs to be deleted * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void deleteUser(String username) throws RestClientResponseException { + public void deleteUser(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; deleteUserRequestCreation(username).body(localVarReturnType); } @@ -308,7 +308,7 @@ public class UserApi { * @param username The name that needs to be deleted * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity deleteUserWithHttpInfo(String username) throws RestClientResponseException { + public ResponseEntity deleteUserWithHttpInfo(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return deleteUserRequestCreation(username).toEntity(localVarReturnType); } @@ -322,7 +322,7 @@ public class UserApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec deleteUserWithResponseSpec(String username) throws RestClientResponseException { + public ResponseSpec deleteUserWithResponseSpec(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { return deleteUserRequestCreation(username); } /** @@ -335,7 +335,7 @@ public class UserApi { * @return User * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec getUserByNameRequestCreation(String username) throws RestClientResponseException { + private ResponseSpec getUserByNameRequestCreation(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'username' is set if (username == null) { @@ -374,7 +374,7 @@ public class UserApi { * @return User * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public User getUserByName(String username) throws RestClientResponseException { + public User getUserByName(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return getUserByNameRequestCreation(username).body(localVarReturnType); } @@ -389,7 +389,7 @@ public class UserApi { * @return ResponseEntity<User> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity getUserByNameWithHttpInfo(String username) throws RestClientResponseException { + public ResponseEntity getUserByNameWithHttpInfo(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return getUserByNameRequestCreation(username).toEntity(localVarReturnType); } @@ -404,11 +404,11 @@ public class UserApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec getUserByNameWithResponseSpec(String username) throws RestClientResponseException { + public ResponseSpec getUserByNameWithResponseSpec(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { return getUserByNameRequestCreation(username); } - public record LoginUserRequest(String username, String password){} + public record LoginUserRequest(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password){} /** * Logs user into the system @@ -459,7 +459,7 @@ public class UserApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec loginUserRequestCreation(String username, String password) throws RestClientResponseException { + private ResponseSpec loginUserRequestCreation(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'username' is set if (username == null) { @@ -503,7 +503,7 @@ public class UserApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String loginUser(String username, String password) throws RestClientResponseException { + public String loginUser(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return loginUserRequestCreation(username, password).body(localVarReturnType); } @@ -518,7 +518,7 @@ public class UserApi { * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity loginUserWithHttpInfo(String username, String password) throws RestClientResponseException { + public ResponseEntity loginUserWithHttpInfo(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return loginUserRequestCreation(username, password).toEntity(localVarReturnType); } @@ -533,7 +533,7 @@ public class UserApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec loginUserWithResponseSpec(String username, String password) throws RestClientResponseException { + public ResponseSpec loginUserWithResponseSpec(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws RestClientResponseException { return loginUserRequestCreation(username, password); } /** @@ -596,7 +596,7 @@ public class UserApi { return logoutUserRequestCreation(); } - public record UpdateUserRequest(String username, User user){} + public record UpdateUserRequest(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user){} /** * Updated user @@ -644,7 +644,7 @@ public class UserApi { * @param user Updated user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec updateUserRequestCreation(String username, User user) throws RestClientResponseException { + private ResponseSpec updateUserRequestCreation(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { Object postBody = user; // verify the required parameter 'username' is set if (username == null) { @@ -686,7 +686,7 @@ public class UserApi { * @param user Updated user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void updateUser(String username, User user) throws RestClientResponseException { + public void updateUser(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; updateUserRequestCreation(username, user).body(localVarReturnType); } @@ -700,7 +700,7 @@ public class UserApi { * @param user Updated user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity updateUserWithHttpInfo(String username, User user) throws RestClientResponseException { + public ResponseEntity updateUserWithHttpInfo(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return updateUserRequestCreation(username, user).toEntity(localVarReturnType); } @@ -715,7 +715,7 @@ public class UserApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec updateUserWithResponseSpec(String username, User user) throws RestClientResponseException { + public ResponseSpec updateUserWithResponseSpec(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { return updateUserRequestCreation(username, user); } } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 036a164bb62..334257b8482 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -52,7 +52,7 @@ public class AnotherFakeApi { * @return Client * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec call123testSpecialTagsRequestCreation(Client client) throws RestClientResponseException { + private ResponseSpec call123testSpecialTagsRequestCreation(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { Object postBody = client; // verify the required parameter 'client' is set if (client == null) { @@ -89,7 +89,7 @@ public class AnotherFakeApi { * @return Client * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public Client call123testSpecialTags(Client client) throws RestClientResponseException { + public Client call123testSpecialTags(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return call123testSpecialTagsRequestCreation(client).body(localVarReturnType); } @@ -102,7 +102,7 @@ public class AnotherFakeApi { * @return ResponseEntity<Client> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity call123testSpecialTagsWithHttpInfo(Client client) throws RestClientResponseException { + public ResponseEntity call123testSpecialTagsWithHttpInfo(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return call123testSpecialTagsRequestCreation(client).toEntity(localVarReturnType); } @@ -115,7 +115,7 @@ public class AnotherFakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec call123testSpecialTagsWithResponseSpec(Client client) throws RestClientResponseException { + public ResponseSpec call123testSpecialTagsWithResponseSpec(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { return call123testSpecialTagsRequestCreation(client); } } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/FakeApi.java index 810c24d8053..c765bd07495 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/FakeApi.java @@ -195,7 +195,7 @@ public class FakeApi { * @param header1 header parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeHttpSignatureTestRequestCreation(Pet pet, String query1, String header1) throws RestClientResponseException { + private ResponseSpec fakeHttpSignatureTestRequestCreation(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws RestClientResponseException { Object postBody = pet; // verify the required parameter 'pet' is set if (pet == null) { @@ -236,7 +236,7 @@ public class FakeApi { * @param header1 header parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void fakeHttpSignatureTest(Pet pet, String query1, String header1) throws RestClientResponseException { + public void fakeHttpSignatureTest(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; fakeHttpSignatureTestRequestCreation(pet, query1, header1).body(localVarReturnType); } @@ -250,7 +250,7 @@ public class FakeApi { * @param header1 header parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeHttpSignatureTestWithHttpInfo(Pet pet, String query1, String header1) throws RestClientResponseException { + public ResponseEntity fakeHttpSignatureTestWithHttpInfo(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakeHttpSignatureTestRequestCreation(pet, query1, header1).toEntity(localVarReturnType); } @@ -265,7 +265,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeHttpSignatureTestWithResponseSpec(Pet pet, String query1, String header1) throws RestClientResponseException { + public ResponseSpec fakeHttpSignatureTestWithResponseSpec(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws RestClientResponseException { return fakeHttpSignatureTestRequestCreation(pet, query1, header1); } /** @@ -276,7 +276,7 @@ public class FakeApi { * @return Boolean * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterBooleanSerializeRequestCreation(Boolean body) throws RestClientResponseException { + private ResponseSpec fakeOuterBooleanSerializeRequestCreation(@jakarta.annotation.Nullable Boolean body) throws RestClientResponseException { Object postBody = body; // create path and map variables final Map pathParams = new HashMap<>(); @@ -309,7 +309,7 @@ public class FakeApi { * @return Boolean * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public Boolean fakeOuterBooleanSerialize(Boolean body) throws RestClientResponseException { + public Boolean fakeOuterBooleanSerialize(@jakarta.annotation.Nullable Boolean body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakeOuterBooleanSerializeRequestCreation(body).body(localVarReturnType); } @@ -322,7 +322,7 @@ public class FakeApi { * @return ResponseEntity<Boolean> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws RestClientResponseException { + public ResponseEntity fakeOuterBooleanSerializeWithHttpInfo(@jakarta.annotation.Nullable Boolean body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakeOuterBooleanSerializeRequestCreation(body).toEntity(localVarReturnType); } @@ -335,7 +335,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(Boolean body) throws RestClientResponseException { + public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(@jakarta.annotation.Nullable Boolean body) throws RestClientResponseException { return fakeOuterBooleanSerializeRequestCreation(body); } /** @@ -346,7 +346,7 @@ public class FakeApi { * @return OuterComposite * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterCompositeSerializeRequestCreation(OuterComposite outerComposite) throws RestClientResponseException { + private ResponseSpec fakeOuterCompositeSerializeRequestCreation(@jakarta.annotation.Nullable OuterComposite outerComposite) throws RestClientResponseException { Object postBody = outerComposite; // create path and map variables final Map pathParams = new HashMap<>(); @@ -379,7 +379,7 @@ public class FakeApi { * @return OuterComposite * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws RestClientResponseException { + public OuterComposite fakeOuterCompositeSerialize(@jakarta.annotation.Nullable OuterComposite outerComposite) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakeOuterCompositeSerializeRequestCreation(outerComposite).body(localVarReturnType); } @@ -392,7 +392,7 @@ public class FakeApi { * @return ResponseEntity<OuterComposite> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws RestClientResponseException { + public ResponseEntity fakeOuterCompositeSerializeWithHttpInfo(@jakarta.annotation.Nullable OuterComposite outerComposite) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakeOuterCompositeSerializeRequestCreation(outerComposite).toEntity(localVarReturnType); } @@ -405,7 +405,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(OuterComposite outerComposite) throws RestClientResponseException { + public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(@jakarta.annotation.Nullable OuterComposite outerComposite) throws RestClientResponseException { return fakeOuterCompositeSerializeRequestCreation(outerComposite); } /** @@ -416,7 +416,7 @@ public class FakeApi { * @return BigDecimal * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterNumberSerializeRequestCreation(BigDecimal body) throws RestClientResponseException { + private ResponseSpec fakeOuterNumberSerializeRequestCreation(@jakarta.annotation.Nullable BigDecimal body) throws RestClientResponseException { Object postBody = body; // create path and map variables final Map pathParams = new HashMap<>(); @@ -449,7 +449,7 @@ public class FakeApi { * @return BigDecimal * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws RestClientResponseException { + public BigDecimal fakeOuterNumberSerialize(@jakarta.annotation.Nullable BigDecimal body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakeOuterNumberSerializeRequestCreation(body).body(localVarReturnType); } @@ -462,7 +462,7 @@ public class FakeApi { * @return ResponseEntity<BigDecimal> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws RestClientResponseException { + public ResponseEntity fakeOuterNumberSerializeWithHttpInfo(@jakarta.annotation.Nullable BigDecimal body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakeOuterNumberSerializeRequestCreation(body).toEntity(localVarReturnType); } @@ -475,7 +475,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(BigDecimal body) throws RestClientResponseException { + public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(@jakarta.annotation.Nullable BigDecimal body) throws RestClientResponseException { return fakeOuterNumberSerializeRequestCreation(body); } /** @@ -486,7 +486,7 @@ public class FakeApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterStringSerializeRequestCreation(String body) throws RestClientResponseException { + private ResponseSpec fakeOuterStringSerializeRequestCreation(@jakarta.annotation.Nullable String body) throws RestClientResponseException { Object postBody = body; // create path and map variables final Map pathParams = new HashMap<>(); @@ -519,7 +519,7 @@ public class FakeApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String fakeOuterStringSerialize(String body) throws RestClientResponseException { + public String fakeOuterStringSerialize(@jakarta.annotation.Nullable String body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakeOuterStringSerializeRequestCreation(body).body(localVarReturnType); } @@ -532,7 +532,7 @@ public class FakeApi { * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterStringSerializeWithHttpInfo(String body) throws RestClientResponseException { + public ResponseEntity fakeOuterStringSerializeWithHttpInfo(@jakarta.annotation.Nullable String body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakeOuterStringSerializeRequestCreation(body).toEntity(localVarReturnType); } @@ -545,7 +545,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterStringSerializeWithResponseSpec(String body) throws RestClientResponseException { + public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@jakarta.annotation.Nullable String body) throws RestClientResponseException { return fakeOuterStringSerializeRequestCreation(body); } /** @@ -556,7 +556,7 @@ public class FakeApi { * @return OuterObjectWithEnumProperty * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakePropertyEnumIntegerSerializeRequestCreation(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { + private ResponseSpec fakePropertyEnumIntegerSerializeRequestCreation(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { Object postBody = outerObjectWithEnumProperty; // verify the required parameter 'outerObjectWithEnumProperty' is set if (outerObjectWithEnumProperty == null) { @@ -593,7 +593,7 @@ public class FakeApi { * @return OuterObjectWithEnumProperty * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { + public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty).body(localVarReturnType); } @@ -606,7 +606,7 @@ public class FakeApi { * @return ResponseEntity<OuterObjectWithEnumProperty> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakePropertyEnumIntegerSerializeWithHttpInfo(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { + public ResponseEntity fakePropertyEnumIntegerSerializeWithHttpInfo(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty).toEntity(localVarReturnType); } @@ -619,7 +619,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { + public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty); } /** @@ -629,7 +629,7 @@ public class FakeApi { * @param requestBody request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testAdditionalPropertiesReferenceRequestCreation(Map requestBody) throws RestClientResponseException { + private ResponseSpec testAdditionalPropertiesReferenceRequestCreation(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { Object postBody = requestBody; // verify the required parameter 'requestBody' is set if (requestBody == null) { @@ -663,7 +663,7 @@ public class FakeApi { * @param requestBody request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void testAdditionalPropertiesReference(Map requestBody) throws RestClientResponseException { + public void testAdditionalPropertiesReference(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testAdditionalPropertiesReferenceRequestCreation(requestBody).body(localVarReturnType); } @@ -675,7 +675,7 @@ public class FakeApi { * @param requestBody request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testAdditionalPropertiesReferenceWithHttpInfo(Map requestBody) throws RestClientResponseException { + public ResponseEntity testAdditionalPropertiesReferenceWithHttpInfo(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testAdditionalPropertiesReferenceRequestCreation(requestBody).toEntity(localVarReturnType); } @@ -688,7 +688,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(Map requestBody) throws RestClientResponseException { + public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { return testAdditionalPropertiesReferenceRequestCreation(requestBody); } /** @@ -698,7 +698,7 @@ public class FakeApi { * @param body image to upload * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testBodyWithBinaryRequestCreation(File body) throws RestClientResponseException { + private ResponseSpec testBodyWithBinaryRequestCreation(@jakarta.annotation.Nullable File body) throws RestClientResponseException { Object postBody = body; // verify the required parameter 'body' is set if (body == null) { @@ -732,7 +732,7 @@ public class FakeApi { * @param body image to upload * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void testBodyWithBinary(File body) throws RestClientResponseException { + public void testBodyWithBinary(@jakarta.annotation.Nullable File body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testBodyWithBinaryRequestCreation(body).body(localVarReturnType); } @@ -744,7 +744,7 @@ public class FakeApi { * @param body image to upload * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testBodyWithBinaryWithHttpInfo(File body) throws RestClientResponseException { + public ResponseEntity testBodyWithBinaryWithHttpInfo(@jakarta.annotation.Nullable File body) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testBodyWithBinaryRequestCreation(body).toEntity(localVarReturnType); } @@ -757,7 +757,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testBodyWithBinaryWithResponseSpec(File body) throws RestClientResponseException { + public ResponseSpec testBodyWithBinaryWithResponseSpec(@jakarta.annotation.Nullable File body) throws RestClientResponseException { return testBodyWithBinaryRequestCreation(body); } /** @@ -767,7 +767,7 @@ public class FakeApi { * @param fileSchemaTestClass The fileSchemaTestClass parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testBodyWithFileSchemaRequestCreation(FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException { + private ResponseSpec testBodyWithFileSchemaRequestCreation(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException { Object postBody = fileSchemaTestClass; // verify the required parameter 'fileSchemaTestClass' is set if (fileSchemaTestClass == null) { @@ -801,7 +801,7 @@ public class FakeApi { * @param fileSchemaTestClass The fileSchemaTestClass parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException { + public void testBodyWithFileSchema(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testBodyWithFileSchemaRequestCreation(fileSchemaTestClass).body(localVarReturnType); } @@ -813,7 +813,7 @@ public class FakeApi { * @param fileSchemaTestClass The fileSchemaTestClass parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException { + public ResponseEntity testBodyWithFileSchemaWithHttpInfo(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass).toEntity(localVarReturnType); } @@ -826,7 +826,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testBodyWithFileSchemaWithResponseSpec(FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException { + public ResponseSpec testBodyWithFileSchemaWithResponseSpec(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException { return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass); } /** @@ -837,7 +837,7 @@ public class FakeApi { * @param user The user parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testBodyWithQueryParamsRequestCreation(String query, User user) throws RestClientResponseException { + private ResponseSpec testBodyWithQueryParamsRequestCreation(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { Object postBody = user; // verify the required parameter 'query' is set if (query == null) { @@ -878,7 +878,7 @@ public class FakeApi { * @param user The user parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void testBodyWithQueryParams(String query, User user) throws RestClientResponseException { + public void testBodyWithQueryParams(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testBodyWithQueryParamsRequestCreation(query, user).body(localVarReturnType); } @@ -891,7 +891,7 @@ public class FakeApi { * @param user The user parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testBodyWithQueryParamsWithHttpInfo(String query, User user) throws RestClientResponseException { + public ResponseEntity testBodyWithQueryParamsWithHttpInfo(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testBodyWithQueryParamsRequestCreation(query, user).toEntity(localVarReturnType); } @@ -905,7 +905,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testBodyWithQueryParamsWithResponseSpec(String query, User user) throws RestClientResponseException { + public ResponseSpec testBodyWithQueryParamsWithResponseSpec(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { return testBodyWithQueryParamsRequestCreation(query, user); } /** @@ -916,7 +916,7 @@ public class FakeApi { * @return Client * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testClientModelRequestCreation(Client client) throws RestClientResponseException { + private ResponseSpec testClientModelRequestCreation(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { Object postBody = client; // verify the required parameter 'client' is set if (client == null) { @@ -953,7 +953,7 @@ public class FakeApi { * @return Client * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public Client testClientModel(Client client) throws RestClientResponseException { + public Client testClientModel(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testClientModelRequestCreation(client).body(localVarReturnType); } @@ -966,7 +966,7 @@ public class FakeApi { * @return ResponseEntity<Client> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testClientModelWithHttpInfo(Client client) throws RestClientResponseException { + public ResponseEntity testClientModelWithHttpInfo(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testClientModelRequestCreation(client).toEntity(localVarReturnType); } @@ -979,7 +979,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testClientModelWithResponseSpec(Client client) throws RestClientResponseException { + public ResponseSpec testClientModelWithResponseSpec(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { return testClientModelRequestCreation(client); } /** @@ -1003,7 +1003,7 @@ public class FakeApi { * @param paramCallback None * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testEndpointParametersRequestCreation(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 RestClientResponseException { + private ResponseSpec testEndpointParametersRequestCreation(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'number' is set if (number == null) { @@ -1092,7 +1092,7 @@ public class FakeApi { * @param paramCallback None * @throws RestClientResponseException 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 RestClientResponseException { + public void testEndpointParameters(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback).body(localVarReturnType); } @@ -1118,7 +1118,7 @@ public class FakeApi { * @param paramCallback None * @throws RestClientResponseException 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 RestClientResponseException { + public ResponseEntity testEndpointParametersWithHttpInfo(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback).toEntity(localVarReturnType); } @@ -1145,7 +1145,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testEndpointParametersWithResponseSpec(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 RestClientResponseException { + public ResponseSpec testEndpointParametersWithResponseSpec(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws RestClientResponseException { return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } /** @@ -1164,7 +1164,7 @@ public class FakeApi { * @param enumFormString Form parameter enum test (string) * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testEnumParametersRequestCreation(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws RestClientResponseException { + private ResponseSpec testEnumParametersRequestCreation(@jakarta.annotation.Nullable List enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List enumQueryModelArray, @jakarta.annotation.Nullable List enumFormStringArray, @jakarta.annotation.Nullable String enumFormString) throws RestClientResponseException { Object postBody = null; // create path and map variables final Map pathParams = new HashMap<>(); @@ -1219,7 +1219,7 @@ public class FakeApi { * @param enumFormString Form parameter enum test (string) * @throws RestClientResponseException 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 RestClientResponseException { + public void testEnumParameters(@jakarta.annotation.Nullable List enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List enumQueryModelArray, @jakarta.annotation.Nullable List enumFormStringArray, @jakarta.annotation.Nullable String enumFormString) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString).body(localVarReturnType); } @@ -1240,7 +1240,7 @@ public class FakeApi { * @param enumFormString Form parameter enum test (string) * @throws RestClientResponseException 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 RestClientResponseException { + public ResponseEntity testEnumParametersWithHttpInfo(@jakarta.annotation.Nullable List enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List enumQueryModelArray, @jakarta.annotation.Nullable List enumFormStringArray, @jakarta.annotation.Nullable String enumFormString) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString).toEntity(localVarReturnType); } @@ -1262,7 +1262,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testEnumParametersWithResponseSpec(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws RestClientResponseException { + public ResponseSpec testEnumParametersWithResponseSpec(@jakarta.annotation.Nullable List enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List enumQueryModelArray, @jakarta.annotation.Nullable List enumFormStringArray, @jakarta.annotation.Nullable String enumFormString) throws RestClientResponseException { return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString); } /** @@ -1277,7 +1277,7 @@ public class FakeApi { * @param int64Group Integer in group parameters * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testGroupParametersRequestCreation(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws RestClientResponseException { + private ResponseSpec testGroupParametersRequestCreation(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'requiredStringGroup' is set if (requiredStringGroup == null) { @@ -1332,7 +1332,7 @@ public class FakeApi { * @param int64Group Integer in group parameters * @throws RestClientResponseException 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 RestClientResponseException { + public void testGroupParameters(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group).body(localVarReturnType); } @@ -1349,7 +1349,7 @@ public class FakeApi { * @param int64Group Integer in group parameters * @throws RestClientResponseException 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 RestClientResponseException { + public ResponseEntity testGroupParametersWithHttpInfo(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group).toEntity(localVarReturnType); } @@ -1367,7 +1367,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testGroupParametersWithResponseSpec(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws RestClientResponseException { + public ResponseSpec testGroupParametersWithResponseSpec(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group) throws RestClientResponseException { return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } /** @@ -1377,7 +1377,7 @@ public class FakeApi { * @param requestBody request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testInlineAdditionalPropertiesRequestCreation(Map requestBody) throws RestClientResponseException { + private ResponseSpec testInlineAdditionalPropertiesRequestCreation(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { Object postBody = requestBody; // verify the required parameter 'requestBody' is set if (requestBody == null) { @@ -1411,7 +1411,7 @@ public class FakeApi { * @param requestBody request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void testInlineAdditionalProperties(Map requestBody) throws RestClientResponseException { + public void testInlineAdditionalProperties(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testInlineAdditionalPropertiesRequestCreation(requestBody).body(localVarReturnType); } @@ -1423,7 +1423,7 @@ public class FakeApi { * @param requestBody request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testInlineAdditionalPropertiesWithHttpInfo(Map requestBody) throws RestClientResponseException { + public ResponseEntity testInlineAdditionalPropertiesWithHttpInfo(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testInlineAdditionalPropertiesRequestCreation(requestBody).toEntity(localVarReturnType); } @@ -1436,7 +1436,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(Map requestBody) throws RestClientResponseException { + public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { return testInlineAdditionalPropertiesRequestCreation(requestBody); } /** @@ -1446,7 +1446,7 @@ public class FakeApi { * @param testInlineFreeformAdditionalPropertiesRequest request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testInlineFreeformAdditionalPropertiesRequestCreation(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException { + private ResponseSpec testInlineFreeformAdditionalPropertiesRequestCreation(@jakarta.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException { Object postBody = testInlineFreeformAdditionalPropertiesRequest; // verify the required parameter 'testInlineFreeformAdditionalPropertiesRequest' is set if (testInlineFreeformAdditionalPropertiesRequest == null) { @@ -1480,7 +1480,7 @@ public class FakeApi { * @param testInlineFreeformAdditionalPropertiesRequest request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException { + public void testInlineFreeformAdditionalProperties(@jakarta.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest).body(localVarReturnType); } @@ -1492,7 +1492,7 @@ public class FakeApi { * @param testInlineFreeformAdditionalPropertiesRequest request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testInlineFreeformAdditionalPropertiesWithHttpInfo(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException { + public ResponseEntity testInlineFreeformAdditionalPropertiesWithHttpInfo(@jakarta.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest).toEntity(localVarReturnType); } @@ -1505,7 +1505,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testInlineFreeformAdditionalPropertiesWithResponseSpec(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException { + public ResponseSpec testInlineFreeformAdditionalPropertiesWithResponseSpec(@jakarta.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException { return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest); } /** @@ -1516,7 +1516,7 @@ public class FakeApi { * @param param2 field2 * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testJsonFormDataRequestCreation(String param, String param2) throws RestClientResponseException { + private ResponseSpec testJsonFormDataRequestCreation(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'param' is set if (param == null) { @@ -1560,7 +1560,7 @@ public class FakeApi { * @param param2 field2 * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void testJsonFormData(String param, String param2) throws RestClientResponseException { + public void testJsonFormData(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testJsonFormDataRequestCreation(param, param2).body(localVarReturnType); } @@ -1573,7 +1573,7 @@ public class FakeApi { * @param param2 field2 * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testJsonFormDataWithHttpInfo(String param, String param2) throws RestClientResponseException { + public ResponseEntity testJsonFormDataWithHttpInfo(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testJsonFormDataRequestCreation(param, param2).toEntity(localVarReturnType); } @@ -1587,7 +1587,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testJsonFormDataWithResponseSpec(String param, String param2) throws RestClientResponseException { + public ResponseSpec testJsonFormDataWithResponseSpec(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2) throws RestClientResponseException { return testJsonFormDataRequestCreation(param, param2); } /** @@ -1597,7 +1597,7 @@ public class FakeApi { * @param childWithNullable request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testNullableRequestCreation(ChildWithNullable childWithNullable) throws RestClientResponseException { + private ResponseSpec testNullableRequestCreation(@jakarta.annotation.Nonnull ChildWithNullable childWithNullable) throws RestClientResponseException { Object postBody = childWithNullable; // verify the required parameter 'childWithNullable' is set if (childWithNullable == null) { @@ -1631,7 +1631,7 @@ public class FakeApi { * @param childWithNullable request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void testNullable(ChildWithNullable childWithNullable) throws RestClientResponseException { + public void testNullable(@jakarta.annotation.Nonnull ChildWithNullable childWithNullable) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testNullableRequestCreation(childWithNullable).body(localVarReturnType); } @@ -1643,7 +1643,7 @@ public class FakeApi { * @param childWithNullable request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testNullableWithHttpInfo(ChildWithNullable childWithNullable) throws RestClientResponseException { + public ResponseEntity testNullableWithHttpInfo(@jakarta.annotation.Nonnull ChildWithNullable childWithNullable) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testNullableRequestCreation(childWithNullable).toEntity(localVarReturnType); } @@ -1656,7 +1656,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testNullableWithResponseSpec(ChildWithNullable childWithNullable) throws RestClientResponseException { + public ResponseSpec testNullableWithResponseSpec(@jakarta.annotation.Nonnull ChildWithNullable childWithNullable) throws RestClientResponseException { return testNullableRequestCreation(childWithNullable); } /** @@ -1672,7 +1672,7 @@ public class FakeApi { * @param language The language parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testQueryParameterCollectionFormatRequestCreation(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws RestClientResponseException { + private ResponseSpec testQueryParameterCollectionFormatRequestCreation(@jakarta.annotation.Nonnull List pipe, @jakarta.annotation.Nonnull List ioutil, @jakarta.annotation.Nonnull List http, @jakarta.annotation.Nonnull List url, @jakarta.annotation.Nonnull List context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map language) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'pipe' is set if (pipe == null) { @@ -1738,7 +1738,7 @@ public class FakeApi { * @param language The language parameter * @throws RestClientResponseException 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 RestClientResponseException { + public void testQueryParameterCollectionFormat(@jakarta.annotation.Nonnull List pipe, @jakarta.annotation.Nonnull List ioutil, @jakarta.annotation.Nonnull List http, @jakarta.annotation.Nonnull List url, @jakarta.annotation.Nonnull List context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map language) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language).body(localVarReturnType); } @@ -1756,7 +1756,7 @@ public class FakeApi { * @param language The language parameter * @throws RestClientResponseException 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 RestClientResponseException { + public ResponseEntity testQueryParameterCollectionFormatWithHttpInfo(@jakarta.annotation.Nonnull List pipe, @jakarta.annotation.Nonnull List ioutil, @jakarta.annotation.Nonnull List http, @jakarta.annotation.Nonnull List url, @jakarta.annotation.Nonnull List context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map language) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language).toEntity(localVarReturnType); } @@ -1775,7 +1775,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws RestClientResponseException { + public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(@jakarta.annotation.Nonnull List pipe, @jakarta.annotation.Nonnull List ioutil, @jakarta.annotation.Nonnull List http, @jakarta.annotation.Nonnull List url, @jakarta.annotation.Nonnull List context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map language) throws RestClientResponseException { return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language); } /** @@ -1785,7 +1785,7 @@ public class FakeApi { * @param requestBody request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testStringMapReferenceRequestCreation(Map requestBody) throws RestClientResponseException { + private ResponseSpec testStringMapReferenceRequestCreation(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { Object postBody = requestBody; // verify the required parameter 'requestBody' is set if (requestBody == null) { @@ -1819,7 +1819,7 @@ public class FakeApi { * @param requestBody request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void testStringMapReference(Map requestBody) throws RestClientResponseException { + public void testStringMapReference(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; testStringMapReferenceRequestCreation(requestBody).body(localVarReturnType); } @@ -1831,7 +1831,7 @@ public class FakeApi { * @param requestBody request body * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testStringMapReferenceWithHttpInfo(Map requestBody) throws RestClientResponseException { + public ResponseEntity testStringMapReferenceWithHttpInfo(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testStringMapReferenceRequestCreation(requestBody).toEntity(localVarReturnType); } @@ -1844,7 +1844,7 @@ public class FakeApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testStringMapReferenceWithResponseSpec(Map requestBody) throws RestClientResponseException { + public ResponseSpec testStringMapReferenceWithResponseSpec(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { return testStringMapReferenceRequestCreation(requestBody); } } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 3a2f5a886d1..c70ea29b883 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -52,7 +52,7 @@ public class FakeClassnameTags123Api { * @return Client * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testClassnameRequestCreation(Client client) throws RestClientResponseException { + private ResponseSpec testClassnameRequestCreation(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { Object postBody = client; // verify the required parameter 'client' is set if (client == null) { @@ -89,7 +89,7 @@ public class FakeClassnameTags123Api { * @return Client * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public Client testClassname(Client client) throws RestClientResponseException { + public Client testClassname(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testClassnameRequestCreation(client).body(localVarReturnType); } @@ -102,7 +102,7 @@ public class FakeClassnameTags123Api { * @return ResponseEntity<Client> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testClassnameWithHttpInfo(Client client) throws RestClientResponseException { + public ResponseEntity testClassnameWithHttpInfo(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return testClassnameRequestCreation(client).toEntity(localVarReturnType); } @@ -115,7 +115,7 @@ public class FakeClassnameTags123Api { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testClassnameWithResponseSpec(Client client) throws RestClientResponseException { + public ResponseSpec testClassnameWithResponseSpec(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { return testClassnameRequestCreation(client); } } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/PetApi.java index ab45a8d57a8..3f9082daced 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/PetApi.java @@ -55,7 +55,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec addPetRequestCreation(Pet pet) throws RestClientResponseException { + private ResponseSpec addPetRequestCreation(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { Object postBody = pet; // verify the required parameter 'pet' is set if (pet == null) { @@ -90,7 +90,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void addPet(Pet pet) throws RestClientResponseException { + public void addPet(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; addPetRequestCreation(pet).body(localVarReturnType); } @@ -103,7 +103,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity addPetWithHttpInfo(Pet pet) throws RestClientResponseException { + public ResponseEntity addPetWithHttpInfo(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return addPetRequestCreation(pet).toEntity(localVarReturnType); } @@ -117,7 +117,7 @@ public class PetApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec addPetWithResponseSpec(Pet pet) throws RestClientResponseException { + public ResponseSpec addPetWithResponseSpec(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { return addPetRequestCreation(pet); } /** @@ -129,7 +129,7 @@ public class PetApi { * @param apiKey The apiKey parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec deletePetRequestCreation(Long petId, String apiKey) throws RestClientResponseException { + private ResponseSpec deletePetRequestCreation(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -168,7 +168,7 @@ public class PetApi { * @param apiKey The apiKey parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void deletePet(Long petId, String apiKey) throws RestClientResponseException { + public void deletePet(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; deletePetRequestCreation(petId, apiKey).body(localVarReturnType); } @@ -182,7 +182,7 @@ public class PetApi { * @param apiKey The apiKey parameter * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity deletePetWithHttpInfo(Long petId, String apiKey) throws RestClientResponseException { + public ResponseEntity deletePetWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return deletePetRequestCreation(petId, apiKey).toEntity(localVarReturnType); } @@ -197,7 +197,7 @@ public class PetApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec deletePetWithResponseSpec(Long petId, String apiKey) throws RestClientResponseException { + public ResponseSpec deletePetWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientResponseException { return deletePetRequestCreation(petId, apiKey); } /** @@ -209,7 +209,7 @@ public class PetApi { * @return List<Pet> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec findPetsByStatusRequestCreation(List status) throws RestClientResponseException { + private ResponseSpec findPetsByStatusRequestCreation(@jakarta.annotation.Nonnull List status) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'status' is set if (status == null) { @@ -247,7 +247,7 @@ public class PetApi { * @return List<Pet> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public List findPetsByStatus(List status) throws RestClientResponseException { + public List findPetsByStatus(@jakarta.annotation.Nonnull List status) throws RestClientResponseException { ParameterizedTypeReference> localVarReturnType = new ParameterizedTypeReference<>() {}; return findPetsByStatusRequestCreation(status).body(localVarReturnType); } @@ -261,7 +261,7 @@ public class PetApi { * @return ResponseEntity<List<Pet>> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity> findPetsByStatusWithHttpInfo(List status) throws RestClientResponseException { + public ResponseEntity> findPetsByStatusWithHttpInfo(@jakarta.annotation.Nonnull List status) throws RestClientResponseException { ParameterizedTypeReference> localVarReturnType = new ParameterizedTypeReference<>() {}; return findPetsByStatusRequestCreation(status).toEntity(localVarReturnType); } @@ -275,7 +275,7 @@ public class PetApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec findPetsByStatusWithResponseSpec(List status) throws RestClientResponseException { + public ResponseSpec findPetsByStatusWithResponseSpec(@jakarta.annotation.Nonnull List status) throws RestClientResponseException { return findPetsByStatusRequestCreation(status); } /** @@ -289,7 +289,7 @@ public class PetApi { * @deprecated */ @Deprecated - private ResponseSpec findPetsByTagsRequestCreation(Set tags) throws RestClientResponseException { + private ResponseSpec findPetsByTagsRequestCreation(@jakarta.annotation.Nonnull Set tags) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'tags' is set if (tags == null) { @@ -327,7 +327,7 @@ public class PetApi { * @return Set<Pet> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public Set findPetsByTags(Set tags) throws RestClientResponseException { + public Set findPetsByTags(@jakarta.annotation.Nonnull Set tags) throws RestClientResponseException { ParameterizedTypeReference> localVarReturnType = new ParameterizedTypeReference<>() {}; return findPetsByTagsRequestCreation(tags).body(localVarReturnType); } @@ -341,7 +341,7 @@ public class PetApi { * @return ResponseEntity<Set<Pet>> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity> findPetsByTagsWithHttpInfo(Set tags) throws RestClientResponseException { + public ResponseEntity> findPetsByTagsWithHttpInfo(@jakarta.annotation.Nonnull Set tags) throws RestClientResponseException { ParameterizedTypeReference> localVarReturnType = new ParameterizedTypeReference<>() {}; return findPetsByTagsRequestCreation(tags).toEntity(localVarReturnType); } @@ -355,7 +355,7 @@ public class PetApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec findPetsByTagsWithResponseSpec(Set tags) throws RestClientResponseException { + public ResponseSpec findPetsByTagsWithResponseSpec(@jakarta.annotation.Nonnull Set tags) throws RestClientResponseException { return findPetsByTagsRequestCreation(tags); } /** @@ -368,7 +368,7 @@ public class PetApi { * @return Pet * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec getPetByIdRequestCreation(Long petId) throws RestClientResponseException { + private ResponseSpec getPetByIdRequestCreation(@jakarta.annotation.Nonnull Long petId) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -407,7 +407,7 @@ public class PetApi { * @return Pet * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public Pet getPetById(Long petId) throws RestClientResponseException { + public Pet getPetById(@jakarta.annotation.Nonnull Long petId) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return getPetByIdRequestCreation(petId).body(localVarReturnType); } @@ -422,7 +422,7 @@ public class PetApi { * @return ResponseEntity<Pet> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws RestClientResponseException { + public ResponseEntity getPetByIdWithHttpInfo(@jakarta.annotation.Nonnull Long petId) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return getPetByIdRequestCreation(petId).toEntity(localVarReturnType); } @@ -437,7 +437,7 @@ public class PetApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec getPetByIdWithResponseSpec(Long petId) throws RestClientResponseException { + public ResponseSpec getPetByIdWithResponseSpec(@jakarta.annotation.Nonnull Long petId) throws RestClientResponseException { return getPetByIdRequestCreation(petId); } /** @@ -450,7 +450,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec updatePetRequestCreation(Pet pet) throws RestClientResponseException { + private ResponseSpec updatePetRequestCreation(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { Object postBody = pet; // verify the required parameter 'pet' is set if (pet == null) { @@ -487,7 +487,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void updatePet(Pet pet) throws RestClientResponseException { + public void updatePet(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; updatePetRequestCreation(pet).body(localVarReturnType); } @@ -502,7 +502,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity updatePetWithHttpInfo(Pet pet) throws RestClientResponseException { + public ResponseEntity updatePetWithHttpInfo(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return updatePetRequestCreation(pet).toEntity(localVarReturnType); } @@ -518,7 +518,7 @@ public class PetApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec updatePetWithResponseSpec(Pet pet) throws RestClientResponseException { + public ResponseSpec updatePetWithResponseSpec(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { return updatePetRequestCreation(pet); } /** @@ -531,7 +531,7 @@ public class PetApi { * @param status Updated status of the pet * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec updatePetWithFormRequestCreation(Long petId, String name, String status) throws RestClientResponseException { + private ResponseSpec updatePetWithFormRequestCreation(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -575,7 +575,7 @@ public class PetApi { * @param status Updated status of the pet * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void updatePetWithForm(Long petId, String name, String status) throws RestClientResponseException { + public void updatePetWithForm(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; updatePetWithFormRequestCreation(petId, name, status).body(localVarReturnType); } @@ -590,7 +590,7 @@ public class PetApi { * @param status Updated status of the pet * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws RestClientResponseException { + public ResponseEntity updatePetWithFormWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return updatePetWithFormRequestCreation(petId, name, status).toEntity(localVarReturnType); } @@ -606,7 +606,7 @@ public class PetApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec updatePetWithFormWithResponseSpec(Long petId, String name, String status) throws RestClientResponseException { + public ResponseSpec updatePetWithFormWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws RestClientResponseException { return updatePetWithFormRequestCreation(petId, name, status); } /** @@ -619,7 +619,7 @@ public class PetApi { * @return ModelApiResponse * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec uploadFileRequestCreation(Long petId, String additionalMetadata, File _file) throws RestClientResponseException { + private ResponseSpec uploadFileRequestCreation(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -665,7 +665,7 @@ public class PetApi { * @return ModelApiResponse * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws RestClientResponseException { + public ModelApiResponse uploadFile(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return uploadFileRequestCreation(petId, additionalMetadata, _file).body(localVarReturnType); } @@ -680,7 +680,7 @@ public class PetApi { * @return ResponseEntity<ModelApiResponse> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws RestClientResponseException { + public ResponseEntity uploadFileWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return uploadFileRequestCreation(petId, additionalMetadata, _file).toEntity(localVarReturnType); } @@ -695,7 +695,7 @@ public class PetApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec uploadFileWithResponseSpec(Long petId, String additionalMetadata, File _file) throws RestClientResponseException { + public ResponseSpec uploadFileWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws RestClientResponseException { return uploadFileRequestCreation(petId, additionalMetadata, _file); } /** @@ -708,7 +708,7 @@ public class PetApi { * @return ModelApiResponse * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec uploadFileWithRequiredFileRequestCreation(Long petId, File requiredFile, String additionalMetadata) throws RestClientResponseException { + private ResponseSpec uploadFileWithRequiredFileRequestCreation(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nonnull File requiredFile, @jakarta.annotation.Nullable String additionalMetadata) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -758,7 +758,7 @@ public class PetApi { * @return ModelApiResponse * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws RestClientResponseException { + public ModelApiResponse uploadFileWithRequiredFile(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nonnull File requiredFile, @jakarta.annotation.Nullable String additionalMetadata) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return uploadFileWithRequiredFileRequestCreation(petId, requiredFile, additionalMetadata).body(localVarReturnType); } @@ -773,7 +773,7 @@ public class PetApi { * @return ResponseEntity<ModelApiResponse> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws RestClientResponseException { + public ResponseEntity uploadFileWithRequiredFileWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nonnull File requiredFile, @jakarta.annotation.Nullable String additionalMetadata) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return uploadFileWithRequiredFileRequestCreation(petId, requiredFile, additionalMetadata).toEntity(localVarReturnType); } @@ -788,7 +788,7 @@ public class PetApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec uploadFileWithRequiredFileWithResponseSpec(Long petId, File requiredFile, String additionalMetadata) throws RestClientResponseException { + public ResponseSpec uploadFileWithRequiredFileWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nonnull File requiredFile, @jakarta.annotation.Nullable String additionalMetadata) throws RestClientResponseException { return uploadFileWithRequiredFileRequestCreation(petId, requiredFile, additionalMetadata); } } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/StoreApi.java index fec8c232cde..35cc10f109d 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/StoreApi.java @@ -52,7 +52,7 @@ public class StoreApi { * @param orderId ID of the order that needs to be deleted * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec deleteOrderRequestCreation(String orderId) throws RestClientResponseException { + private ResponseSpec deleteOrderRequestCreation(@jakarta.annotation.Nonnull String orderId) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'orderId' is set if (orderId == null) { @@ -87,7 +87,7 @@ public class StoreApi { * @param orderId ID of the order that needs to be deleted * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void deleteOrder(String orderId) throws RestClientResponseException { + public void deleteOrder(@jakarta.annotation.Nonnull String orderId) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; deleteOrderRequestCreation(orderId).body(localVarReturnType); } @@ -100,7 +100,7 @@ public class StoreApi { * @param orderId ID of the order that needs to be deleted * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity deleteOrderWithHttpInfo(String orderId) throws RestClientResponseException { + public ResponseEntity deleteOrderWithHttpInfo(@jakarta.annotation.Nonnull String orderId) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return deleteOrderRequestCreation(orderId).toEntity(localVarReturnType); } @@ -114,7 +114,7 @@ public class StoreApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec deleteOrderWithResponseSpec(String orderId) throws RestClientResponseException { + public ResponseSpec deleteOrderWithResponseSpec(@jakarta.annotation.Nonnull String orderId) throws RestClientResponseException { return deleteOrderRequestCreation(orderId); } /** @@ -191,7 +191,7 @@ public class StoreApi { * @return Order * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec getOrderByIdRequestCreation(Long orderId) throws RestClientResponseException { + private ResponseSpec getOrderByIdRequestCreation(@jakarta.annotation.Nonnull Long orderId) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'orderId' is set if (orderId == null) { @@ -230,7 +230,7 @@ public class StoreApi { * @return Order * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public Order getOrderById(Long orderId) throws RestClientResponseException { + public Order getOrderById(@jakarta.annotation.Nonnull Long orderId) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return getOrderByIdRequestCreation(orderId).body(localVarReturnType); } @@ -245,7 +245,7 @@ public class StoreApi { * @return ResponseEntity<Order> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity getOrderByIdWithHttpInfo(Long orderId) throws RestClientResponseException { + public ResponseEntity getOrderByIdWithHttpInfo(@jakarta.annotation.Nonnull Long orderId) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return getOrderByIdRequestCreation(orderId).toEntity(localVarReturnType); } @@ -260,7 +260,7 @@ public class StoreApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec getOrderByIdWithResponseSpec(Long orderId) throws RestClientResponseException { + public ResponseSpec getOrderByIdWithResponseSpec(@jakarta.annotation.Nonnull Long orderId) throws RestClientResponseException { return getOrderByIdRequestCreation(orderId); } /** @@ -272,7 +272,7 @@ public class StoreApi { * @return Order * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec placeOrderRequestCreation(Order order) throws RestClientResponseException { + private ResponseSpec placeOrderRequestCreation(@jakarta.annotation.Nonnull Order order) throws RestClientResponseException { Object postBody = order; // verify the required parameter 'order' is set if (order == null) { @@ -310,7 +310,7 @@ public class StoreApi { * @return Order * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public Order placeOrder(Order order) throws RestClientResponseException { + public Order placeOrder(@jakarta.annotation.Nonnull Order order) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return placeOrderRequestCreation(order).body(localVarReturnType); } @@ -324,7 +324,7 @@ public class StoreApi { * @return ResponseEntity<Order> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity placeOrderWithHttpInfo(Order order) throws RestClientResponseException { + public ResponseEntity placeOrderWithHttpInfo(@jakarta.annotation.Nonnull Order order) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return placeOrderRequestCreation(order).toEntity(localVarReturnType); } @@ -338,7 +338,7 @@ public class StoreApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec placeOrderWithResponseSpec(Order order) throws RestClientResponseException { + public ResponseSpec placeOrderWithResponseSpec(@jakarta.annotation.Nonnull Order order) throws RestClientResponseException { return placeOrderRequestCreation(order); } } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/UserApi.java index a03e3f7c2b9..f83ab1f4810 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/UserApi.java @@ -52,7 +52,7 @@ public class UserApi { * @param user Created user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec createUserRequestCreation(User user) throws RestClientResponseException { + private ResponseSpec createUserRequestCreation(@jakarta.annotation.Nonnull User user) throws RestClientResponseException { Object postBody = user; // verify the required parameter 'user' is set if (user == null) { @@ -86,7 +86,7 @@ public class UserApi { * @param user Created user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void createUser(User user) throws RestClientResponseException { + public void createUser(@jakarta.annotation.Nonnull User user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; createUserRequestCreation(user).body(localVarReturnType); } @@ -98,7 +98,7 @@ public class UserApi { * @param user Created user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUserWithHttpInfo(User user) throws RestClientResponseException { + public ResponseEntity createUserWithHttpInfo(@jakarta.annotation.Nonnull User user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return createUserRequestCreation(user).toEntity(localVarReturnType); } @@ -111,7 +111,7 @@ public class UserApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec createUserWithResponseSpec(User user) throws RestClientResponseException { + public ResponseSpec createUserWithResponseSpec(@jakarta.annotation.Nonnull User user) throws RestClientResponseException { return createUserRequestCreation(user); } /** @@ -121,7 +121,7 @@ public class UserApi { * @param user List of user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec createUsersWithArrayInputRequestCreation(List user) throws RestClientResponseException { + private ResponseSpec createUsersWithArrayInputRequestCreation(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { Object postBody = user; // verify the required parameter 'user' is set if (user == null) { @@ -155,7 +155,7 @@ public class UserApi { * @param user List of user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void createUsersWithArrayInput(List user) throws RestClientResponseException { + public void createUsersWithArrayInput(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; createUsersWithArrayInputRequestCreation(user).body(localVarReturnType); } @@ -167,7 +167,7 @@ public class UserApi { * @param user List of user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUsersWithArrayInputWithHttpInfo(List user) throws RestClientResponseException { + public ResponseEntity createUsersWithArrayInputWithHttpInfo(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return createUsersWithArrayInputRequestCreation(user).toEntity(localVarReturnType); } @@ -180,7 +180,7 @@ public class UserApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec createUsersWithArrayInputWithResponseSpec(List user) throws RestClientResponseException { + public ResponseSpec createUsersWithArrayInputWithResponseSpec(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { return createUsersWithArrayInputRequestCreation(user); } /** @@ -190,7 +190,7 @@ public class UserApi { * @param user List of user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec createUsersWithListInputRequestCreation(List user) throws RestClientResponseException { + private ResponseSpec createUsersWithListInputRequestCreation(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { Object postBody = user; // verify the required parameter 'user' is set if (user == null) { @@ -224,7 +224,7 @@ public class UserApi { * @param user List of user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void createUsersWithListInput(List user) throws RestClientResponseException { + public void createUsersWithListInput(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; createUsersWithListInputRequestCreation(user).body(localVarReturnType); } @@ -236,7 +236,7 @@ public class UserApi { * @param user List of user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUsersWithListInputWithHttpInfo(List user) throws RestClientResponseException { + public ResponseEntity createUsersWithListInputWithHttpInfo(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return createUsersWithListInputRequestCreation(user).toEntity(localVarReturnType); } @@ -249,7 +249,7 @@ public class UserApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec createUsersWithListInputWithResponseSpec(List user) throws RestClientResponseException { + public ResponseSpec createUsersWithListInputWithResponseSpec(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { return createUsersWithListInputRequestCreation(user); } /** @@ -260,7 +260,7 @@ public class UserApi { * @param username The name that needs to be deleted * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec deleteUserRequestCreation(String username) throws RestClientResponseException { + private ResponseSpec deleteUserRequestCreation(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'username' is set if (username == null) { @@ -295,7 +295,7 @@ public class UserApi { * @param username The name that needs to be deleted * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void deleteUser(String username) throws RestClientResponseException { + public void deleteUser(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; deleteUserRequestCreation(username).body(localVarReturnType); } @@ -308,7 +308,7 @@ public class UserApi { * @param username The name that needs to be deleted * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity deleteUserWithHttpInfo(String username) throws RestClientResponseException { + public ResponseEntity deleteUserWithHttpInfo(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return deleteUserRequestCreation(username).toEntity(localVarReturnType); } @@ -322,7 +322,7 @@ public class UserApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec deleteUserWithResponseSpec(String username) throws RestClientResponseException { + public ResponseSpec deleteUserWithResponseSpec(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { return deleteUserRequestCreation(username); } /** @@ -335,7 +335,7 @@ public class UserApi { * @return User * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec getUserByNameRequestCreation(String username) throws RestClientResponseException { + private ResponseSpec getUserByNameRequestCreation(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'username' is set if (username == null) { @@ -374,7 +374,7 @@ public class UserApi { * @return User * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public User getUserByName(String username) throws RestClientResponseException { + public User getUserByName(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return getUserByNameRequestCreation(username).body(localVarReturnType); } @@ -389,7 +389,7 @@ public class UserApi { * @return ResponseEntity<User> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity getUserByNameWithHttpInfo(String username) throws RestClientResponseException { + public ResponseEntity getUserByNameWithHttpInfo(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return getUserByNameRequestCreation(username).toEntity(localVarReturnType); } @@ -404,7 +404,7 @@ public class UserApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec getUserByNameWithResponseSpec(String username) throws RestClientResponseException { + public ResponseSpec getUserByNameWithResponseSpec(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { return getUserByNameRequestCreation(username); } /** @@ -417,7 +417,7 @@ public class UserApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec loginUserRequestCreation(String username, String password) throws RestClientResponseException { + private ResponseSpec loginUserRequestCreation(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws RestClientResponseException { Object postBody = null; // verify the required parameter 'username' is set if (username == null) { @@ -461,7 +461,7 @@ public class UserApi { * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String loginUser(String username, String password) throws RestClientResponseException { + public String loginUser(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return loginUserRequestCreation(username, password).body(localVarReturnType); } @@ -476,7 +476,7 @@ public class UserApi { * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity loginUserWithHttpInfo(String username, String password) throws RestClientResponseException { + public ResponseEntity loginUserWithHttpInfo(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return loginUserRequestCreation(username, password).toEntity(localVarReturnType); } @@ -491,7 +491,7 @@ public class UserApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec loginUserWithResponseSpec(String username, String password) throws RestClientResponseException { + public ResponseSpec loginUserWithResponseSpec(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws RestClientResponseException { return loginUserRequestCreation(username, password); } /** @@ -562,7 +562,7 @@ public class UserApi { * @param user Updated user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec updateUserRequestCreation(String username, User user) throws RestClientResponseException { + private ResponseSpec updateUserRequestCreation(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { Object postBody = user; // verify the required parameter 'username' is set if (username == null) { @@ -604,7 +604,7 @@ public class UserApi { * @param user Updated user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public void updateUser(String username, User user) throws RestClientResponseException { + public void updateUser(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; updateUserRequestCreation(username, user).body(localVarReturnType); } @@ -618,7 +618,7 @@ public class UserApi { * @param user Updated user object * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity updateUserWithHttpInfo(String username, User user) throws RestClientResponseException { + public ResponseEntity updateUserWithHttpInfo(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; return updateUserRequestCreation(username, user).toEntity(localVarReturnType); } @@ -633,7 +633,7 @@ public class UserApi { * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec updateUserWithResponseSpec(String username, User user) throws RestClientResponseException { + public ResponseSpec updateUserWithResponseSpec(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { return updateUserRequestCreation(username, user); } } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 475e1d03b01..a568bd71c59 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -41,7 +41,7 @@ public class AnotherFakeApi { * @return a {@code Client} * @throws ApiException if fails to make API call */ - public Client call123testSpecialTags(Client client) throws ApiException { + public Client call123testSpecialTags(@javax.annotation.Nonnull Client client) throws ApiException { Object localVarPostBody = client; // verify the required parameter 'client' is set diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/FakeApi.java index 3580dec7110..ef9a3d236f0 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/FakeApi.java @@ -130,7 +130,7 @@ public class FakeApi { * @param header1 header parameter (optional) * @throws ApiException if fails to make API call */ - public void fakeHttpSignatureTest(Pet pet, String query1, String header1) throws ApiException { + public void fakeHttpSignatureTest(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1) throws ApiException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -176,7 +176,7 @@ public class FakeApi { * @return a {@code Boolean} * @throws ApiException if fails to make API call */ - public Boolean fakeOuterBooleanSerialize(Boolean body) throws ApiException { + public Boolean fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -214,7 +214,7 @@ public class FakeApi { * @return a {@code OuterComposite} * @throws ApiException if fails to make API call */ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException { + public OuterComposite fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite outerComposite) throws ApiException { Object localVarPostBody = outerComposite; // create path and map variables @@ -252,7 +252,7 @@ public class FakeApi { * @return a {@code BigDecimal} * @throws ApiException if fails to make API call */ - public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws ApiException { + public BigDecimal fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -290,7 +290,7 @@ public class FakeApi { * @return a {@code String} * @throws ApiException if fails to make API call */ - public String fakeOuterStringSerialize(String body) throws ApiException { + public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -328,7 +328,7 @@ public class FakeApi { * @return a {@code OuterObjectWithEnumProperty} * @throws ApiException if fails to make API call */ - public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws ApiException { + public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws ApiException { Object localVarPostBody = outerObjectWithEnumProperty; // verify the required parameter 'outerObjectWithEnumProperty' is set @@ -370,7 +370,7 @@ public class FakeApi { * @param requestBody request body (required) * @throws ApiException if fails to make API call */ - public void testAdditionalPropertiesReference(Map requestBody) throws ApiException { + public void testAdditionalPropertiesReference(@javax.annotation.Nonnull Map requestBody) throws ApiException { Object localVarPostBody = requestBody; // verify the required parameter 'requestBody' is set @@ -412,7 +412,7 @@ public class FakeApi { * @param body image to upload (required) * @throws ApiException if fails to make API call */ - public void testBodyWithBinary(File body) throws ApiException { + public void testBodyWithBinary(@javax.annotation.Nullable File body) throws ApiException { Object localVarPostBody = body; // verify the required parameter 'body' is set @@ -454,7 +454,7 @@ public class FakeApi { * @param fileSchemaTestClass (required) * @throws ApiException if fails to make API call */ - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException { + public void testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws ApiException { Object localVarPostBody = fileSchemaTestClass; // verify the required parameter 'fileSchemaTestClass' is set @@ -497,7 +497,7 @@ public class FakeApi { * @param user (required) * @throws ApiException if fails to make API call */ - public void testBodyWithQueryParams(String query, User user) throws ApiException { + public void testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws ApiException { Object localVarPostBody = user; // verify the required parameter 'query' is set @@ -546,7 +546,7 @@ public class FakeApi { * @return a {@code Client} * @throws ApiException if fails to make API call */ - public Client testClientModel(Client client) throws ApiException { + public Client testClientModel(@javax.annotation.Nonnull Client client) throws ApiException { Object localVarPostBody = client; // verify the required parameter 'client' is set @@ -601,7 +601,7 @@ public class FakeApi { * @param paramCallback None (optional) * @throws ApiException if fails to make API call */ - 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 ApiException { + 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 ApiException { Object localVarPostBody = null; // verify the required parameter 'number' is set @@ -694,7 +694,7 @@ if (paramCallback != null) * @param enumFormString Form parameter enum test (string) (optional, default to -efg) * @throws ApiException if fails to make API call */ - public void testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws ApiException { + 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 ApiException { Object localVarPostBody = null; // create path and map variables @@ -749,7 +749,7 @@ if (enumFormString != null) * @param int64Group Integer in group parameters (optional) * @throws ApiException if fails to make API call */ - public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { + 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 ApiException { Object localVarPostBody = null; // verify the required parameter 'requiredStringGroup' is set @@ -809,7 +809,7 @@ if (booleanGroup != null) * @param requestBody request body (required) * @throws ApiException if fails to make API call */ - public void testInlineAdditionalProperties(Map requestBody) throws ApiException { + public void testInlineAdditionalProperties(@javax.annotation.Nonnull Map requestBody) throws ApiException { Object localVarPostBody = requestBody; // verify the required parameter 'requestBody' is set @@ -851,7 +851,7 @@ if (booleanGroup != null) * @param testInlineFreeformAdditionalPropertiesRequest request body (required) * @throws ApiException if fails to make API call */ - public void testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { + public void testInlineFreeformAdditionalProperties(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { Object localVarPostBody = testInlineFreeformAdditionalPropertiesRequest; // verify the required parameter 'testInlineFreeformAdditionalPropertiesRequest' is set @@ -894,7 +894,7 @@ if (booleanGroup != null) * @param param2 field2 (required) * @throws ApiException if fails to make API call */ - public void testJsonFormData(String param, String param2) throws ApiException { + public void testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'param' is set @@ -945,7 +945,7 @@ if (param2 != null) * @param childWithNullable request body (required) * @throws ApiException if fails to make API call */ - public void testNullable(ChildWithNullable childWithNullable) throws ApiException { + public void testNullable(@javax.annotation.Nonnull ChildWithNullable childWithNullable) throws ApiException { Object localVarPostBody = childWithNullable; // verify the required parameter 'childWithNullable' is set @@ -993,7 +993,7 @@ if (param2 != null) * @param language (optional) * @throws ApiException if fails to make API call */ - public void testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws ApiException { + 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 ApiException { Object localVarPostBody = null; // verify the required parameter 'pipe' is set @@ -1067,7 +1067,7 @@ if (param2 != null) * @param requestBody request body (required) * @throws ApiException if fails to make API call */ - public void testStringMapReference(Map requestBody) throws ApiException { + public void testStringMapReference(@javax.annotation.Nonnull Map requestBody) throws ApiException { Object localVarPostBody = requestBody; // verify the required parameter 'requestBody' is set diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 148327c661e..4af7bc2c4ae 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -41,7 +41,7 @@ public class FakeClassnameTags123Api { * @return a {@code Client} * @throws ApiException if fails to make API call */ - public Client testClassname(Client client) throws ApiException { + public Client testClassname(@javax.annotation.Nonnull Client client) throws ApiException { Object localVarPostBody = client; // verify the required parameter 'client' is set diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/PetApi.java index 0564cecffa2..370a78821b6 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/PetApi.java @@ -43,7 +43,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store (required) * @throws ApiException if fails to make API call */ - public void addPet(Pet pet) throws ApiException { + public void addPet(@javax.annotation.Nonnull Pet pet) throws ApiException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -86,7 +86,7 @@ public class PetApi { * @param apiKey (optional) * @throws ApiException if fails to make API call */ - public void deletePet(Long petId, String apiKey) throws ApiException { + public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -132,7 +132,7 @@ public class PetApi { * @return a {@code List} * @throws ApiException if fails to make API call */ - public List findPetsByStatus(List status) throws ApiException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'status' is set @@ -178,7 +178,7 @@ public class PetApi { * @deprecated */ @Deprecated - public Set findPetsByTags(Set tags) throws ApiException { + public Set findPetsByTags(@javax.annotation.Nonnull Set tags) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'tags' is set @@ -222,7 +222,7 @@ public class PetApi { * @return a {@code Pet} * @throws ApiException if fails to make API call */ - public Pet getPetById(Long petId) throws ApiException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -265,7 +265,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store (required) * @throws ApiException if fails to make API call */ - public void updatePet(Pet pet) throws ApiException { + public void updatePet(@javax.annotation.Nonnull Pet pet) throws ApiException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -309,7 +309,7 @@ public class PetApi { * @param status Updated status of the pet (optional) * @throws ApiException if fails to make API call */ - public void updatePetWithForm(Long petId, String name, String status) throws ApiException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -359,7 +359,7 @@ if (status != null) * @return a {@code ModelApiResponse} * @throws ApiException if fails to make API call */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws ApiException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -409,7 +409,7 @@ if (_file != null) * @return a {@code ModelApiResponse} * @throws ApiException if fails to make API call */ - public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws ApiException { + public ModelApiResponse uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'petId' is set diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/StoreApi.java index b6a22a8fbb8..b9366732b7c 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/StoreApi.java @@ -40,7 +40,7 @@ public class StoreApi { * @param orderId ID of the order that needs to be deleted (required) * @throws ApiException if fails to make API call */ - public void deleteOrder(String orderId) throws ApiException { + public void deleteOrder(@javax.annotation.Nonnull String orderId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'orderId' is set @@ -121,7 +121,7 @@ public class StoreApi { * @return a {@code Order} * @throws ApiException if fails to make API call */ - public Order getOrderById(Long orderId) throws ApiException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'orderId' is set @@ -165,7 +165,7 @@ public class StoreApi { * @return a {@code Order} * @throws ApiException if fails to make API call */ - public Order placeOrder(Order order) throws ApiException { + public Order placeOrder(@javax.annotation.Nonnull Order order) throws ApiException { Object localVarPostBody = order; // verify the required parameter 'order' is set diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/UserApi.java index 4670daf7278..391ee8615a1 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/UserApi.java @@ -41,7 +41,7 @@ public class UserApi { * @param user Created user object (required) * @throws ApiException if fails to make API call */ - public void createUser(User user) throws ApiException { + public void createUser(@javax.annotation.Nonnull User user) throws ApiException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -83,7 +83,7 @@ public class UserApi { * @param user List of user object (required) * @throws ApiException if fails to make API call */ - public void createUsersWithArrayInput(List user) throws ApiException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List user) throws ApiException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -125,7 +125,7 @@ public class UserApi { * @param user List of user object (required) * @throws ApiException if fails to make API call */ - public void createUsersWithListInput(List user) throws ApiException { + public void createUsersWithListInput(@javax.annotation.Nonnull List user) throws ApiException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -167,7 +167,7 @@ public class UserApi { * @param username The name that needs to be deleted (required) * @throws ApiException if fails to make API call */ - public void deleteUser(String username) throws ApiException { + public void deleteUser(@javax.annotation.Nonnull String username) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -211,7 +211,7 @@ public class UserApi { * @return a {@code User} * @throws ApiException if fails to make API call */ - public User getUserByName(String username) throws ApiException { + public User getUserByName(@javax.annotation.Nonnull String username) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -256,7 +256,7 @@ public class UserApi { * @return a {@code String} * @throws ApiException if fails to make API call */ - public String loginUser(String username, String password) throws ApiException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -342,7 +342,7 @@ public class UserApi { * @param user Updated user object (required) * @throws ApiException if fails to make API call */ - public void updateUser(String username, User user) throws ApiException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { Object localVarPostBody = user; // verify the required parameter 'username' is set diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 7b484f9c814..685df466bca 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -11,8 +11,8 @@ import java.util.*; public interface AnotherFakeApi { - void call123testSpecialTags(UUID uuidTest, Client body, Handler> handler); + void call123testSpecialTags(@javax.annotation.Nonnull UUID uuidTest, @javax.annotation.Nonnull Client body, Handler> handler); - void call123testSpecialTags(UUID uuidTest, Client body, ApiClient.AuthInfo authInfo, Handler> handler); + void call123testSpecialTags(@javax.annotation.Nonnull UUID uuidTest, @javax.annotation.Nonnull Client body, ApiClient.AuthInfo authInfo, Handler> handler); } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/FakeApi.java index 2a30781bdad..298ac0529b7 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/FakeApi.java @@ -18,60 +18,60 @@ import java.util.*; public interface FakeApi { - void createXmlItem(XmlItem xmlItem, Handler> handler); + void createXmlItem(@javax.annotation.Nonnull XmlItem xmlItem, Handler> handler); - void createXmlItem(XmlItem xmlItem, ApiClient.AuthInfo authInfo, Handler> handler); + void createXmlItem(@javax.annotation.Nonnull XmlItem xmlItem, ApiClient.AuthInfo authInfo, Handler> handler); - void fakeOuterBooleanSerialize(Boolean body, Handler> handler); + void fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body, Handler> handler); - void fakeOuterBooleanSerialize(Boolean body, ApiClient.AuthInfo authInfo, Handler> handler); + void fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body, ApiClient.AuthInfo authInfo, Handler> handler); - void fakeOuterCompositeSerialize(OuterComposite body, Handler> handler); + void fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite body, Handler> handler); - void fakeOuterCompositeSerialize(OuterComposite body, ApiClient.AuthInfo authInfo, Handler> handler); + void fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite body, ApiClient.AuthInfo authInfo, Handler> handler); - void fakeOuterNumberSerialize(BigDecimal body, Handler> handler); + void fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body, Handler> handler); - void fakeOuterNumberSerialize(BigDecimal body, ApiClient.AuthInfo authInfo, Handler> handler); + void fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body, ApiClient.AuthInfo authInfo, Handler> handler); - void fakeOuterStringSerialize(String body, Handler> handler); + void fakeOuterStringSerialize(@javax.annotation.Nullable String body, Handler> handler); - void fakeOuterStringSerialize(String body, ApiClient.AuthInfo authInfo, Handler> handler); + void fakeOuterStringSerialize(@javax.annotation.Nullable String body, ApiClient.AuthInfo authInfo, Handler> handler); - void testBodyWithFileSchema(FileSchemaTestClass body, Handler> handler); + void testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass body, Handler> handler); - void testBodyWithFileSchema(FileSchemaTestClass body, ApiClient.AuthInfo authInfo, Handler> handler); + void testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass body, ApiClient.AuthInfo authInfo, Handler> handler); - void testBodyWithQueryParams(String query, User body, Handler> handler); + void testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User body, Handler> handler); - void testBodyWithQueryParams(String query, User body, ApiClient.AuthInfo authInfo, Handler> handler); + void testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User body, ApiClient.AuthInfo authInfo, Handler> handler); - void testClientModel(Client body, Handler> handler); + void testClientModel(@javax.annotation.Nonnull Client body, Handler> handler); - void testClientModel(Client body, ApiClient.AuthInfo authInfo, Handler> handler); + void testClientModel(@javax.annotation.Nonnull Client body, ApiClient.AuthInfo authInfo, Handler> handler); - void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, AsyncFile binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback, Handler> handler); + 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 AsyncFile binary, @javax.annotation.Nullable LocalDate date, @javax.annotation.Nullable OffsetDateTime dateTime, @javax.annotation.Nullable String password, @javax.annotation.Nullable String paramCallback, Handler> handler); - void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, AsyncFile binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback, ApiClient.AuthInfo authInfo, Handler> handler); + 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 AsyncFile binary, @javax.annotation.Nullable LocalDate date, @javax.annotation.Nullable OffsetDateTime dateTime, @javax.annotation.Nullable String password, @javax.annotation.Nullable String paramCallback, ApiClient.AuthInfo authInfo, Handler> handler); - void testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString, Handler> handler); + 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 enumFormStringArray, @javax.annotation.Nullable String enumFormString, Handler> handler); - void testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString, ApiClient.AuthInfo authInfo, Handler> handler); + 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 enumFormStringArray, @javax.annotation.Nullable String enumFormString, ApiClient.AuthInfo authInfo, Handler> handler); - void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group, Handler> handler); + 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, Handler> handler); - void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group, ApiClient.AuthInfo authInfo, Handler> handler); + 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, ApiClient.AuthInfo authInfo, Handler> handler); - void testInlineAdditionalProperties(Map param, Handler> handler); + void testInlineAdditionalProperties(@javax.annotation.Nonnull Map param, Handler> handler); - void testInlineAdditionalProperties(Map param, ApiClient.AuthInfo authInfo, Handler> handler); + void testInlineAdditionalProperties(@javax.annotation.Nonnull Map param, ApiClient.AuthInfo authInfo, Handler> handler); - void testJsonFormData(String param, String param2, Handler> handler); + void testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2, Handler> handler); - void testJsonFormData(String param, String param2, ApiClient.AuthInfo authInfo, Handler> handler); + void testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2, ApiClient.AuthInfo authInfo, Handler> handler); - void testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, Handler> handler); + 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, Handler> handler); - void testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, ApiClient.AuthInfo authInfo, Handler> handler); + 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, ApiClient.AuthInfo authInfo, Handler> handler); } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index abae7a76d13..c1fcf82c60b 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -10,8 +10,8 @@ import java.util.*; public interface FakeClassnameTags123Api { - void testClassname(Client body, Handler> handler); + void testClassname(@javax.annotation.Nonnull Client body, Handler> handler); - void testClassname(Client body, ApiClient.AuthInfo authInfo, Handler> handler); + void testClassname(@javax.annotation.Nonnull Client body, ApiClient.AuthInfo authInfo, Handler> handler); } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/PetApi.java index 06e892b60cf..217955c406d 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/PetApi.java @@ -13,42 +13,42 @@ import java.util.*; public interface PetApi { - void addPet(Pet body, Handler> handler); + void addPet(@javax.annotation.Nonnull Pet body, Handler> handler); - void addPet(Pet body, ApiClient.AuthInfo authInfo, Handler> handler); + void addPet(@javax.annotation.Nonnull Pet body, ApiClient.AuthInfo authInfo, Handler> handler); - void deletePet(Long petId, String apiKey, Handler> handler); + void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, Handler> handler); - void deletePet(Long petId, String apiKey, ApiClient.AuthInfo authInfo, Handler> handler); + void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, ApiClient.AuthInfo authInfo, Handler> handler); - void findPetsByStatus(List status, Handler>> handler); + void findPetsByStatus(@javax.annotation.Nonnull List status, Handler>> handler); - void findPetsByStatus(List status, ApiClient.AuthInfo authInfo, Handler>> handler); + void findPetsByStatus(@javax.annotation.Nonnull List status, ApiClient.AuthInfo authInfo, Handler>> handler); @Deprecated - void findPetsByTags(Set tags, Handler>> handler); + void findPetsByTags(@javax.annotation.Nonnull Set tags, Handler>> handler); @Deprecated - void findPetsByTags(Set tags, ApiClient.AuthInfo authInfo, Handler>> handler); + void findPetsByTags(@javax.annotation.Nonnull Set tags, ApiClient.AuthInfo authInfo, Handler>> handler); - void getPetById(Long petId, Handler> handler); + void getPetById(@javax.annotation.Nonnull Long petId, Handler> handler); - void getPetById(Long petId, ApiClient.AuthInfo authInfo, Handler> handler); + void getPetById(@javax.annotation.Nonnull Long petId, ApiClient.AuthInfo authInfo, Handler> handler); - void updatePet(Pet body, Handler> handler); + void updatePet(@javax.annotation.Nonnull Pet body, Handler> handler); - void updatePet(Pet body, ApiClient.AuthInfo authInfo, Handler> handler); + void updatePet(@javax.annotation.Nonnull Pet body, ApiClient.AuthInfo authInfo, Handler> handler); - void updatePetWithForm(Long petId, String name, String status, Handler> handler); + void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, Handler> handler); - void updatePetWithForm(Long petId, String name, String status, ApiClient.AuthInfo authInfo, Handler> handler); + void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, ApiClient.AuthInfo authInfo, Handler> handler); - void uploadFile(Long petId, String additionalMetadata, AsyncFile _file, Handler> handler); + void uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable AsyncFile _file, Handler> handler); - void uploadFile(Long petId, String additionalMetadata, AsyncFile _file, ApiClient.AuthInfo authInfo, Handler> handler); + void uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable AsyncFile _file, ApiClient.AuthInfo authInfo, Handler> handler); - void uploadFileWithRequiredFile(Long petId, AsyncFile requiredFile, String additionalMetadata, Handler> handler); + void uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull AsyncFile requiredFile, @javax.annotation.Nullable String additionalMetadata, Handler> handler); - void uploadFileWithRequiredFile(Long petId, AsyncFile requiredFile, String additionalMetadata, ApiClient.AuthInfo authInfo, Handler> handler); + void uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull AsyncFile requiredFile, @javax.annotation.Nullable String additionalMetadata, ApiClient.AuthInfo authInfo, Handler> handler); } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/StoreApi.java index 563c8e6a46c..cf262c39c1a 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/StoreApi.java @@ -10,20 +10,20 @@ import java.util.*; public interface StoreApi { - void deleteOrder(String orderId, Handler> handler); + void deleteOrder(@javax.annotation.Nonnull String orderId, Handler> handler); - void deleteOrder(String orderId, ApiClient.AuthInfo authInfo, Handler> handler); + void deleteOrder(@javax.annotation.Nonnull String orderId, ApiClient.AuthInfo authInfo, Handler> handler); void getInventory(Handler>> handler); void getInventory(ApiClient.AuthInfo authInfo, Handler>> handler); - void getOrderById(Long orderId, Handler> handler); + void getOrderById(@javax.annotation.Nonnull Long orderId, Handler> handler); - void getOrderById(Long orderId, ApiClient.AuthInfo authInfo, Handler> handler); + void getOrderById(@javax.annotation.Nonnull Long orderId, ApiClient.AuthInfo authInfo, Handler> handler); - void placeOrder(Order body, Handler> handler); + void placeOrder(@javax.annotation.Nonnull Order body, Handler> handler); - void placeOrder(Order body, ApiClient.AuthInfo authInfo, Handler> handler); + void placeOrder(@javax.annotation.Nonnull Order body, ApiClient.AuthInfo authInfo, Handler> handler); } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/UserApi.java index b7922264c5c..2d6457f9e3c 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/UserApi.java @@ -11,36 +11,36 @@ import java.util.*; public interface UserApi { - void createUser(User body, Handler> handler); + void createUser(@javax.annotation.Nonnull User body, Handler> handler); - void createUser(User body, ApiClient.AuthInfo authInfo, Handler> handler); + void createUser(@javax.annotation.Nonnull User body, ApiClient.AuthInfo authInfo, Handler> handler); - void createUsersWithArrayInput(List body, Handler> handler); + void createUsersWithArrayInput(@javax.annotation.Nonnull List body, Handler> handler); - void createUsersWithArrayInput(List body, ApiClient.AuthInfo authInfo, Handler> handler); + void createUsersWithArrayInput(@javax.annotation.Nonnull List body, ApiClient.AuthInfo authInfo, Handler> handler); - void createUsersWithListInput(List body, Handler> handler); + void createUsersWithListInput(@javax.annotation.Nonnull List body, Handler> handler); - void createUsersWithListInput(List body, ApiClient.AuthInfo authInfo, Handler> handler); + void createUsersWithListInput(@javax.annotation.Nonnull List body, ApiClient.AuthInfo authInfo, Handler> handler); - void deleteUser(String username, Handler> handler); + void deleteUser(@javax.annotation.Nonnull String username, Handler> handler); - void deleteUser(String username, ApiClient.AuthInfo authInfo, Handler> handler); + void deleteUser(@javax.annotation.Nonnull String username, ApiClient.AuthInfo authInfo, Handler> handler); - void getUserByName(String username, Handler> handler); + void getUserByName(@javax.annotation.Nonnull String username, Handler> handler); - void getUserByName(String username, ApiClient.AuthInfo authInfo, Handler> handler); + void getUserByName(@javax.annotation.Nonnull String username, ApiClient.AuthInfo authInfo, Handler> handler); - void loginUser(String username, String password, Handler> handler); + void loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, Handler> handler); - void loginUser(String username, String password, ApiClient.AuthInfo authInfo, Handler> handler); + void loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, ApiClient.AuthInfo authInfo, Handler> handler); void logoutUser(Handler> handler); void logoutUser(ApiClient.AuthInfo authInfo, Handler> handler); - void updateUser(String username, User body, Handler> handler); + void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User body, Handler> handler); - void updateUser(String username, User body, ApiClient.AuthInfo authInfo, Handler> handler); + void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User body, ApiClient.AuthInfo authInfo, Handler> handler); } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 2ffba8ce5fc..04fb2de3eef 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -10,8 +10,8 @@ import java.util.*; public interface AnotherFakeApi { - void call123testSpecialTags(Client client, Handler> handler); + void call123testSpecialTags(@javax.annotation.Nonnull Client client, Handler> handler); - void call123testSpecialTags(Client client, ApiClient.AuthInfo authInfo, Handler> handler); + void call123testSpecialTags(@javax.annotation.Nonnull Client client, ApiClient.AuthInfo authInfo, Handler> handler); } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeApi.java index 38e08fe4b8c..f3f934b1c70 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeApi.java @@ -32,84 +32,84 @@ public interface FakeApi { void fakeHealthGet(ApiClient.AuthInfo authInfo, Handler> handler); - void fakeHttpSignatureTest(Pet pet, String query1, String header1, Handler> handler); + void fakeHttpSignatureTest(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1, Handler> handler); - void fakeHttpSignatureTest(Pet pet, String query1, String header1, ApiClient.AuthInfo authInfo, Handler> handler); + void fakeHttpSignatureTest(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1, ApiClient.AuthInfo authInfo, Handler> handler); - void fakeOuterBooleanSerialize(Boolean body, Handler> handler); + void fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body, Handler> handler); - void fakeOuterBooleanSerialize(Boolean body, ApiClient.AuthInfo authInfo, Handler> handler); + void fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body, ApiClient.AuthInfo authInfo, Handler> handler); - void fakeOuterCompositeSerialize(OuterComposite outerComposite, Handler> handler); + void fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite outerComposite, Handler> handler); - void fakeOuterCompositeSerialize(OuterComposite outerComposite, ApiClient.AuthInfo authInfo, Handler> handler); + void fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite outerComposite, ApiClient.AuthInfo authInfo, Handler> handler); - void fakeOuterNumberSerialize(BigDecimal body, Handler> handler); + void fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body, Handler> handler); - void fakeOuterNumberSerialize(BigDecimal body, ApiClient.AuthInfo authInfo, Handler> handler); + void fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body, ApiClient.AuthInfo authInfo, Handler> handler); - void fakeOuterStringSerialize(String body, Handler> handler); + void fakeOuterStringSerialize(@javax.annotation.Nullable String body, Handler> handler); - void fakeOuterStringSerialize(String body, ApiClient.AuthInfo authInfo, Handler> handler); + void fakeOuterStringSerialize(@javax.annotation.Nullable String body, ApiClient.AuthInfo authInfo, Handler> handler); - void fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty, Handler> handler); + void fakePropertyEnumIntegerSerialize(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty, Handler> handler); - void fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty, ApiClient.AuthInfo authInfo, Handler> handler); + void fakePropertyEnumIntegerSerialize(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty, ApiClient.AuthInfo authInfo, Handler> handler); - void testAdditionalPropertiesReference(Map requestBody, Handler> handler); + void testAdditionalPropertiesReference(@javax.annotation.Nonnull Map requestBody, Handler> handler); - void testAdditionalPropertiesReference(Map requestBody, ApiClient.AuthInfo authInfo, Handler> handler); + void testAdditionalPropertiesReference(@javax.annotation.Nonnull Map requestBody, ApiClient.AuthInfo authInfo, Handler> handler); - void testBodyWithBinary(AsyncFile body, Handler> handler); + void testBodyWithBinary(@javax.annotation.Nullable AsyncFile body, Handler> handler); - void testBodyWithBinary(AsyncFile body, ApiClient.AuthInfo authInfo, Handler> handler); + void testBodyWithBinary(@javax.annotation.Nullable AsyncFile body, ApiClient.AuthInfo authInfo, Handler> handler); - void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass, Handler> handler); + void testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass, Handler> handler); - void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass, ApiClient.AuthInfo authInfo, Handler> handler); + void testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass, ApiClient.AuthInfo authInfo, Handler> handler); - void testBodyWithQueryParams(String query, User user, Handler> handler); + void testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user, Handler> handler); - void testBodyWithQueryParams(String query, User user, ApiClient.AuthInfo authInfo, Handler> handler); + void testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user, ApiClient.AuthInfo authInfo, Handler> handler); - void testClientModel(Client client, Handler> handler); + void testClientModel(@javax.annotation.Nonnull Client client, Handler> handler); - void testClientModel(Client client, ApiClient.AuthInfo authInfo, Handler> handler); + void testClientModel(@javax.annotation.Nonnull Client client, ApiClient.AuthInfo authInfo, Handler> handler); - void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, AsyncFile binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback, Handler> handler); + 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 AsyncFile binary, @javax.annotation.Nullable LocalDate date, @javax.annotation.Nullable OffsetDateTime dateTime, @javax.annotation.Nullable String password, @javax.annotation.Nullable String paramCallback, Handler> handler); - void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, AsyncFile binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback, ApiClient.AuthInfo authInfo, Handler> handler); + 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 AsyncFile binary, @javax.annotation.Nullable LocalDate date, @javax.annotation.Nullable OffsetDateTime dateTime, @javax.annotation.Nullable String password, @javax.annotation.Nullable String paramCallback, ApiClient.AuthInfo authInfo, Handler> handler); - void testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString, Handler> handler); + 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, Handler> handler); - void testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString, ApiClient.AuthInfo authInfo, Handler> handler); + 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, ApiClient.AuthInfo authInfo, Handler> handler); - void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group, Handler> handler); + 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, Handler> handler); - void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group, ApiClient.AuthInfo authInfo, Handler> handler); + 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, ApiClient.AuthInfo authInfo, Handler> handler); - void testInlineAdditionalProperties(Map requestBody, Handler> handler); + void testInlineAdditionalProperties(@javax.annotation.Nonnull Map requestBody, Handler> handler); - void testInlineAdditionalProperties(Map requestBody, ApiClient.AuthInfo authInfo, Handler> handler); + void testInlineAdditionalProperties(@javax.annotation.Nonnull Map requestBody, ApiClient.AuthInfo authInfo, Handler> handler); - void testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest, Handler> handler); + void testInlineFreeformAdditionalProperties(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest, Handler> handler); - void testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest, ApiClient.AuthInfo authInfo, Handler> handler); + void testInlineFreeformAdditionalProperties(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest, ApiClient.AuthInfo authInfo, Handler> handler); - void testJsonFormData(String param, String param2, Handler> handler); + void testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2, Handler> handler); - void testJsonFormData(String param, String param2, ApiClient.AuthInfo authInfo, Handler> handler); + void testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2, ApiClient.AuthInfo authInfo, Handler> handler); - void testNullable(ChildWithNullable childWithNullable, Handler> handler); + void testNullable(@javax.annotation.Nonnull ChildWithNullable childWithNullable, Handler> handler); - void testNullable(ChildWithNullable childWithNullable, ApiClient.AuthInfo authInfo, Handler> handler); + void testNullable(@javax.annotation.Nonnull ChildWithNullable childWithNullable, ApiClient.AuthInfo authInfo, Handler> handler); - void testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language, Handler> handler); + 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, Handler> handler); - void testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language, ApiClient.AuthInfo authInfo, Handler> handler); + 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, ApiClient.AuthInfo authInfo, Handler> handler); - void testStringMapReference(Map requestBody, Handler> handler); + void testStringMapReference(@javax.annotation.Nonnull Map requestBody, Handler> handler); - void testStringMapReference(Map requestBody, ApiClient.AuthInfo authInfo, Handler> handler); + void testStringMapReference(@javax.annotation.Nonnull Map requestBody, ApiClient.AuthInfo authInfo, Handler> handler); } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index deaa265d3d7..226663d1ea4 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -10,8 +10,8 @@ import java.util.*; public interface FakeClassnameTags123Api { - void testClassname(Client client, Handler> handler); + void testClassname(@javax.annotation.Nonnull Client client, Handler> handler); - void testClassname(Client client, ApiClient.AuthInfo authInfo, Handler> handler); + void testClassname(@javax.annotation.Nonnull Client client, ApiClient.AuthInfo authInfo, Handler> handler); } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/PetApi.java index c2e30268cc7..535191f77b1 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/PetApi.java @@ -13,42 +13,42 @@ import java.util.*; public interface PetApi { - void addPet(Pet pet, Handler> handler); + void addPet(@javax.annotation.Nonnull Pet pet, Handler> handler); - void addPet(Pet pet, ApiClient.AuthInfo authInfo, Handler> handler); + void addPet(@javax.annotation.Nonnull Pet pet, ApiClient.AuthInfo authInfo, Handler> handler); - void deletePet(Long petId, String apiKey, Handler> handler); + void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, Handler> handler); - void deletePet(Long petId, String apiKey, ApiClient.AuthInfo authInfo, Handler> handler); + void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, ApiClient.AuthInfo authInfo, Handler> handler); - void findPetsByStatus(List status, Handler>> handler); + void findPetsByStatus(@javax.annotation.Nonnull List status, Handler>> handler); - void findPetsByStatus(List status, ApiClient.AuthInfo authInfo, Handler>> handler); + void findPetsByStatus(@javax.annotation.Nonnull List status, ApiClient.AuthInfo authInfo, Handler>> handler); @Deprecated - void findPetsByTags(Set tags, Handler>> handler); + void findPetsByTags(@javax.annotation.Nonnull Set tags, Handler>> handler); @Deprecated - void findPetsByTags(Set tags, ApiClient.AuthInfo authInfo, Handler>> handler); + void findPetsByTags(@javax.annotation.Nonnull Set tags, ApiClient.AuthInfo authInfo, Handler>> handler); - void getPetById(Long petId, Handler> handler); + void getPetById(@javax.annotation.Nonnull Long petId, Handler> handler); - void getPetById(Long petId, ApiClient.AuthInfo authInfo, Handler> handler); + void getPetById(@javax.annotation.Nonnull Long petId, ApiClient.AuthInfo authInfo, Handler> handler); - void updatePet(Pet pet, Handler> handler); + void updatePet(@javax.annotation.Nonnull Pet pet, Handler> handler); - void updatePet(Pet pet, ApiClient.AuthInfo authInfo, Handler> handler); + void updatePet(@javax.annotation.Nonnull Pet pet, ApiClient.AuthInfo authInfo, Handler> handler); - void updatePetWithForm(Long petId, String name, String status, Handler> handler); + void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, Handler> handler); - void updatePetWithForm(Long petId, String name, String status, ApiClient.AuthInfo authInfo, Handler> handler); + void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, ApiClient.AuthInfo authInfo, Handler> handler); - void uploadFile(Long petId, String additionalMetadata, AsyncFile _file, Handler> handler); + void uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable AsyncFile _file, Handler> handler); - void uploadFile(Long petId, String additionalMetadata, AsyncFile _file, ApiClient.AuthInfo authInfo, Handler> handler); + void uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable AsyncFile _file, ApiClient.AuthInfo authInfo, Handler> handler); - void uploadFileWithRequiredFile(Long petId, AsyncFile requiredFile, String additionalMetadata, Handler> handler); + void uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull AsyncFile requiredFile, @javax.annotation.Nullable String additionalMetadata, Handler> handler); - void uploadFileWithRequiredFile(Long petId, AsyncFile requiredFile, String additionalMetadata, ApiClient.AuthInfo authInfo, Handler> handler); + void uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull AsyncFile requiredFile, @javax.annotation.Nullable String additionalMetadata, ApiClient.AuthInfo authInfo, Handler> handler); } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/StoreApi.java index 973c3460e0a..3f1d9455f10 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/StoreApi.java @@ -10,20 +10,20 @@ import java.util.*; public interface StoreApi { - void deleteOrder(String orderId, Handler> handler); + void deleteOrder(@javax.annotation.Nonnull String orderId, Handler> handler); - void deleteOrder(String orderId, ApiClient.AuthInfo authInfo, Handler> handler); + void deleteOrder(@javax.annotation.Nonnull String orderId, ApiClient.AuthInfo authInfo, Handler> handler); void getInventory(Handler>> handler); void getInventory(ApiClient.AuthInfo authInfo, Handler>> handler); - void getOrderById(Long orderId, Handler> handler); + void getOrderById(@javax.annotation.Nonnull Long orderId, Handler> handler); - void getOrderById(Long orderId, ApiClient.AuthInfo authInfo, Handler> handler); + void getOrderById(@javax.annotation.Nonnull Long orderId, ApiClient.AuthInfo authInfo, Handler> handler); - void placeOrder(Order order, Handler> handler); + void placeOrder(@javax.annotation.Nonnull Order order, Handler> handler); - void placeOrder(Order order, ApiClient.AuthInfo authInfo, Handler> handler); + void placeOrder(@javax.annotation.Nonnull Order order, ApiClient.AuthInfo authInfo, Handler> handler); } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/UserApi.java index acc8b9f24b0..8032968c753 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/UserApi.java @@ -11,36 +11,36 @@ import java.util.*; public interface UserApi { - void createUser(User user, Handler> handler); + void createUser(@javax.annotation.Nonnull User user, Handler> handler); - void createUser(User user, ApiClient.AuthInfo authInfo, Handler> handler); + void createUser(@javax.annotation.Nonnull User user, ApiClient.AuthInfo authInfo, Handler> handler); - void createUsersWithArrayInput(List user, Handler> handler); + void createUsersWithArrayInput(@javax.annotation.Nonnull List user, Handler> handler); - void createUsersWithArrayInput(List user, ApiClient.AuthInfo authInfo, Handler> handler); + void createUsersWithArrayInput(@javax.annotation.Nonnull List user, ApiClient.AuthInfo authInfo, Handler> handler); - void createUsersWithListInput(List user, Handler> handler); + void createUsersWithListInput(@javax.annotation.Nonnull List user, Handler> handler); - void createUsersWithListInput(List user, ApiClient.AuthInfo authInfo, Handler> handler); + void createUsersWithListInput(@javax.annotation.Nonnull List user, ApiClient.AuthInfo authInfo, Handler> handler); - void deleteUser(String username, Handler> handler); + void deleteUser(@javax.annotation.Nonnull String username, Handler> handler); - void deleteUser(String username, ApiClient.AuthInfo authInfo, Handler> handler); + void deleteUser(@javax.annotation.Nonnull String username, ApiClient.AuthInfo authInfo, Handler> handler); - void getUserByName(String username, Handler> handler); + void getUserByName(@javax.annotation.Nonnull String username, Handler> handler); - void getUserByName(String username, ApiClient.AuthInfo authInfo, Handler> handler); + void getUserByName(@javax.annotation.Nonnull String username, ApiClient.AuthInfo authInfo, Handler> handler); - void loginUser(String username, String password, Handler> handler); + void loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, Handler> handler); - void loginUser(String username, String password, ApiClient.AuthInfo authInfo, Handler> handler); + void loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, ApiClient.AuthInfo authInfo, Handler> handler); void logoutUser(Handler> handler); void logoutUser(ApiClient.AuthInfo authInfo, Handler> handler); - void updateUser(String username, User user, Handler> handler); + void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user, Handler> handler); - void updateUser(String username, User user, ApiClient.AuthInfo authInfo, Handler> handler); + void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user, ApiClient.AuthInfo authInfo, Handler> handler); } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 8d3359b67e1..b73bfd8ebde 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -55,7 +55,7 @@ public class AnotherFakeApi { * @return Client * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec call123testSpecialTagsRequestCreation(Client client) throws WebClientResponseException { + private ResponseSpec call123testSpecialTagsRequestCreation(@jakarta.annotation.Nonnull Client client) throws WebClientResponseException { Object postBody = client; // verify the required parameter 'client' is set if (client == null) { @@ -92,7 +92,7 @@ public class AnotherFakeApi { * @return Client * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono call123testSpecialTags(Client client) throws WebClientResponseException { + public Mono call123testSpecialTags(@jakarta.annotation.Nonnull Client client) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return call123testSpecialTagsRequestCreation(client).bodyToMono(localVarReturnType); } @@ -105,7 +105,7 @@ public class AnotherFakeApi { * @return ResponseEntity<Client> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> call123testSpecialTagsWithHttpInfo(Client client) throws WebClientResponseException { + public Mono> call123testSpecialTagsWithHttpInfo(@jakarta.annotation.Nonnull Client client) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return call123testSpecialTagsRequestCreation(client).toEntity(localVarReturnType); } @@ -118,7 +118,7 @@ public class AnotherFakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec call123testSpecialTagsWithResponseSpec(Client client) throws WebClientResponseException { + public ResponseSpec call123testSpecialTagsWithResponseSpec(@jakarta.annotation.Nonnull Client client) throws WebClientResponseException { return call123testSpecialTagsRequestCreation(client); } } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/FakeApi.java index ce05b185f0f..c7f76d9d82c 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/FakeApi.java @@ -200,7 +200,7 @@ public class FakeApi { * @param header1 header parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeHttpSignatureTestRequestCreation(Pet pet, String query1, String header1) throws WebClientResponseException { + private ResponseSpec fakeHttpSignatureTestRequestCreation(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws WebClientResponseException { Object postBody = pet; // verify the required parameter 'pet' is set if (pet == null) { @@ -241,7 +241,7 @@ public class FakeApi { * @param header1 header parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakeHttpSignatureTest(Pet pet, String query1, String header1) throws WebClientResponseException { + public Mono fakeHttpSignatureTest(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeHttpSignatureTestRequestCreation(pet, query1, header1).bodyToMono(localVarReturnType); } @@ -255,7 +255,7 @@ public class FakeApi { * @param header1 header parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakeHttpSignatureTestWithHttpInfo(Pet pet, String query1, String header1) throws WebClientResponseException { + public Mono> fakeHttpSignatureTestWithHttpInfo(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeHttpSignatureTestRequestCreation(pet, query1, header1).toEntity(localVarReturnType); } @@ -270,7 +270,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeHttpSignatureTestWithResponseSpec(Pet pet, String query1, String header1) throws WebClientResponseException { + public ResponseSpec fakeHttpSignatureTestWithResponseSpec(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws WebClientResponseException { return fakeHttpSignatureTestRequestCreation(pet, query1, header1); } @@ -282,7 +282,7 @@ public class FakeApi { * @return Boolean * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterBooleanSerializeRequestCreation(Boolean body) throws WebClientResponseException { + private ResponseSpec fakeOuterBooleanSerializeRequestCreation(@jakarta.annotation.Nullable Boolean body) throws WebClientResponseException { Object postBody = body; // create path and map variables final Map pathParams = new HashMap(); @@ -315,7 +315,7 @@ public class FakeApi { * @return Boolean * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakeOuterBooleanSerialize(Boolean body) throws WebClientResponseException { + public Mono fakeOuterBooleanSerialize(@jakarta.annotation.Nullable Boolean body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterBooleanSerializeRequestCreation(body).bodyToMono(localVarReturnType); } @@ -328,7 +328,7 @@ public class FakeApi { * @return ResponseEntity<Boolean> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws WebClientResponseException { + public Mono> fakeOuterBooleanSerializeWithHttpInfo(@jakarta.annotation.Nullable Boolean body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterBooleanSerializeRequestCreation(body).toEntity(localVarReturnType); } @@ -341,7 +341,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(Boolean body) throws WebClientResponseException { + public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(@jakarta.annotation.Nullable Boolean body) throws WebClientResponseException { return fakeOuterBooleanSerializeRequestCreation(body); } @@ -353,7 +353,7 @@ public class FakeApi { * @return OuterComposite * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterCompositeSerializeRequestCreation(OuterComposite outerComposite) throws WebClientResponseException { + private ResponseSpec fakeOuterCompositeSerializeRequestCreation(@jakarta.annotation.Nullable OuterComposite outerComposite) throws WebClientResponseException { Object postBody = outerComposite; // create path and map variables final Map pathParams = new HashMap(); @@ -386,7 +386,7 @@ public class FakeApi { * @return OuterComposite * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakeOuterCompositeSerialize(OuterComposite outerComposite) throws WebClientResponseException { + public Mono fakeOuterCompositeSerialize(@jakarta.annotation.Nullable OuterComposite outerComposite) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterCompositeSerializeRequestCreation(outerComposite).bodyToMono(localVarReturnType); } @@ -399,7 +399,7 @@ public class FakeApi { * @return ResponseEntity<OuterComposite> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws WebClientResponseException { + public Mono> fakeOuterCompositeSerializeWithHttpInfo(@jakarta.annotation.Nullable OuterComposite outerComposite) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterCompositeSerializeRequestCreation(outerComposite).toEntity(localVarReturnType); } @@ -412,7 +412,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(OuterComposite outerComposite) throws WebClientResponseException { + public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(@jakarta.annotation.Nullable OuterComposite outerComposite) throws WebClientResponseException { return fakeOuterCompositeSerializeRequestCreation(outerComposite); } @@ -424,7 +424,7 @@ public class FakeApi { * @return BigDecimal * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterNumberSerializeRequestCreation(BigDecimal body) throws WebClientResponseException { + private ResponseSpec fakeOuterNumberSerializeRequestCreation(@jakarta.annotation.Nullable BigDecimal body) throws WebClientResponseException { Object postBody = body; // create path and map variables final Map pathParams = new HashMap(); @@ -457,7 +457,7 @@ public class FakeApi { * @return BigDecimal * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakeOuterNumberSerialize(BigDecimal body) throws WebClientResponseException { + public Mono fakeOuterNumberSerialize(@jakarta.annotation.Nullable BigDecimal body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterNumberSerializeRequestCreation(body).bodyToMono(localVarReturnType); } @@ -470,7 +470,7 @@ public class FakeApi { * @return ResponseEntity<BigDecimal> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws WebClientResponseException { + public Mono> fakeOuterNumberSerializeWithHttpInfo(@jakarta.annotation.Nullable BigDecimal body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterNumberSerializeRequestCreation(body).toEntity(localVarReturnType); } @@ -483,7 +483,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(BigDecimal body) throws WebClientResponseException { + public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(@jakarta.annotation.Nullable BigDecimal body) throws WebClientResponseException { return fakeOuterNumberSerializeRequestCreation(body); } @@ -495,7 +495,7 @@ public class FakeApi { * @return String * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterStringSerializeRequestCreation(String body) throws WebClientResponseException { + private ResponseSpec fakeOuterStringSerializeRequestCreation(@jakarta.annotation.Nullable String body) throws WebClientResponseException { Object postBody = body; // create path and map variables final Map pathParams = new HashMap(); @@ -528,7 +528,7 @@ public class FakeApi { * @return String * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakeOuterStringSerialize(String body) throws WebClientResponseException { + public Mono fakeOuterStringSerialize(@jakarta.annotation.Nullable String body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterStringSerializeRequestCreation(body).bodyToMono(localVarReturnType); } @@ -541,7 +541,7 @@ public class FakeApi { * @return ResponseEntity<String> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakeOuterStringSerializeWithHttpInfo(String body) throws WebClientResponseException { + public Mono> fakeOuterStringSerializeWithHttpInfo(@jakarta.annotation.Nullable String body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterStringSerializeRequestCreation(body).toEntity(localVarReturnType); } @@ -554,7 +554,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterStringSerializeWithResponseSpec(String body) throws WebClientResponseException { + public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@jakarta.annotation.Nullable String body) throws WebClientResponseException { return fakeOuterStringSerializeRequestCreation(body); } @@ -566,7 +566,7 @@ public class FakeApi { * @return OuterObjectWithEnumProperty * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakePropertyEnumIntegerSerializeRequestCreation(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { + private ResponseSpec fakePropertyEnumIntegerSerializeRequestCreation(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { Object postBody = outerObjectWithEnumProperty; // verify the required parameter 'outerObjectWithEnumProperty' is set if (outerObjectWithEnumProperty == null) { @@ -603,7 +603,7 @@ public class FakeApi { * @return OuterObjectWithEnumProperty * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { + public Mono fakePropertyEnumIntegerSerialize(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty).bodyToMono(localVarReturnType); } @@ -616,7 +616,7 @@ public class FakeApi { * @return ResponseEntity<OuterObjectWithEnumProperty> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakePropertyEnumIntegerSerializeWithHttpInfo(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { + public Mono> fakePropertyEnumIntegerSerializeWithHttpInfo(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty).toEntity(localVarReturnType); } @@ -629,7 +629,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { + public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty); } @@ -640,7 +640,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testAdditionalPropertiesReferenceRequestCreation(Map requestBody) throws WebClientResponseException { + private ResponseSpec testAdditionalPropertiesReferenceRequestCreation(@jakarta.annotation.Nonnull Map requestBody) throws WebClientResponseException { Object postBody = requestBody; // verify the required parameter 'requestBody' is set if (requestBody == null) { @@ -674,7 +674,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testAdditionalPropertiesReference(Map requestBody) throws WebClientResponseException { + public Mono testAdditionalPropertiesReference(@jakarta.annotation.Nonnull Map requestBody) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testAdditionalPropertiesReferenceRequestCreation(requestBody).bodyToMono(localVarReturnType); } @@ -686,7 +686,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testAdditionalPropertiesReferenceWithHttpInfo(Map requestBody) throws WebClientResponseException { + public Mono> testAdditionalPropertiesReferenceWithHttpInfo(@jakarta.annotation.Nonnull Map requestBody) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testAdditionalPropertiesReferenceRequestCreation(requestBody).toEntity(localVarReturnType); } @@ -699,7 +699,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(Map requestBody) throws WebClientResponseException { + public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(@jakarta.annotation.Nonnull Map requestBody) throws WebClientResponseException { return testAdditionalPropertiesReferenceRequestCreation(requestBody); } @@ -710,7 +710,7 @@ public class FakeApi { * @param body image to upload * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testBodyWithBinaryRequestCreation(File body) throws WebClientResponseException { + private ResponseSpec testBodyWithBinaryRequestCreation(@jakarta.annotation.Nullable File body) throws WebClientResponseException { Object postBody = body; // verify the required parameter 'body' is set if (body == null) { @@ -744,7 +744,7 @@ public class FakeApi { * @param body image to upload * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testBodyWithBinary(File body) throws WebClientResponseException { + public Mono testBodyWithBinary(@jakarta.annotation.Nullable File body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testBodyWithBinaryRequestCreation(body).bodyToMono(localVarReturnType); } @@ -756,7 +756,7 @@ public class FakeApi { * @param body image to upload * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testBodyWithBinaryWithHttpInfo(File body) throws WebClientResponseException { + public Mono> testBodyWithBinaryWithHttpInfo(@jakarta.annotation.Nullable File body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testBodyWithBinaryRequestCreation(body).toEntity(localVarReturnType); } @@ -769,7 +769,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testBodyWithBinaryWithResponseSpec(File body) throws WebClientResponseException { + public ResponseSpec testBodyWithBinaryWithResponseSpec(@jakarta.annotation.Nullable File body) throws WebClientResponseException { return testBodyWithBinaryRequestCreation(body); } @@ -780,7 +780,7 @@ public class FakeApi { * @param fileSchemaTestClass The fileSchemaTestClass parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testBodyWithFileSchemaRequestCreation(FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { + private ResponseSpec testBodyWithFileSchemaRequestCreation(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { Object postBody = fileSchemaTestClass; // verify the required parameter 'fileSchemaTestClass' is set if (fileSchemaTestClass == null) { @@ -814,7 +814,7 @@ public class FakeApi { * @param fileSchemaTestClass The fileSchemaTestClass parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { + public Mono testBodyWithFileSchema(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass).bodyToMono(localVarReturnType); } @@ -826,7 +826,7 @@ public class FakeApi { * @param fileSchemaTestClass The fileSchemaTestClass parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { + public Mono> testBodyWithFileSchemaWithHttpInfo(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass).toEntity(localVarReturnType); } @@ -839,7 +839,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testBodyWithFileSchemaWithResponseSpec(FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { + public ResponseSpec testBodyWithFileSchemaWithResponseSpec(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass); } @@ -851,7 +851,7 @@ public class FakeApi { * @param user The user parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testBodyWithQueryParamsRequestCreation(String query, User user) throws WebClientResponseException { + private ResponseSpec testBodyWithQueryParamsRequestCreation(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws WebClientResponseException { Object postBody = user; // verify the required parameter 'query' is set if (query == null) { @@ -892,7 +892,7 @@ public class FakeApi { * @param user The user parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testBodyWithQueryParams(String query, User user) throws WebClientResponseException { + public Mono testBodyWithQueryParams(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testBodyWithQueryParamsRequestCreation(query, user).bodyToMono(localVarReturnType); } @@ -905,7 +905,7 @@ public class FakeApi { * @param user The user parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testBodyWithQueryParamsWithHttpInfo(String query, User user) throws WebClientResponseException { + public Mono> testBodyWithQueryParamsWithHttpInfo(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testBodyWithQueryParamsRequestCreation(query, user).toEntity(localVarReturnType); } @@ -919,7 +919,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testBodyWithQueryParamsWithResponseSpec(String query, User user) throws WebClientResponseException { + public ResponseSpec testBodyWithQueryParamsWithResponseSpec(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws WebClientResponseException { return testBodyWithQueryParamsRequestCreation(query, user); } @@ -931,7 +931,7 @@ public class FakeApi { * @return Client * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testClientModelRequestCreation(Client client) throws WebClientResponseException { + private ResponseSpec testClientModelRequestCreation(@jakarta.annotation.Nonnull Client client) throws WebClientResponseException { Object postBody = client; // verify the required parameter 'client' is set if (client == null) { @@ -968,7 +968,7 @@ public class FakeApi { * @return Client * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testClientModel(Client client) throws WebClientResponseException { + public Mono testClientModel(@jakarta.annotation.Nonnull Client client) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testClientModelRequestCreation(client).bodyToMono(localVarReturnType); } @@ -981,7 +981,7 @@ public class FakeApi { * @return ResponseEntity<Client> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testClientModelWithHttpInfo(Client client) throws WebClientResponseException { + public Mono> testClientModelWithHttpInfo(@jakarta.annotation.Nonnull Client client) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testClientModelRequestCreation(client).toEntity(localVarReturnType); } @@ -994,7 +994,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testClientModelWithResponseSpec(Client client) throws WebClientResponseException { + public ResponseSpec testClientModelWithResponseSpec(@jakarta.annotation.Nonnull Client client) throws WebClientResponseException { return testClientModelRequestCreation(client); } @@ -1019,7 +1019,7 @@ public class FakeApi { * @param paramCallback None * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testEndpointParametersRequestCreation(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 WebClientResponseException { + private ResponseSpec testEndpointParametersRequestCreation(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'number' is set if (number == null) { @@ -1108,7 +1108,7 @@ public class FakeApi { * @param paramCallback None * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono 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 WebClientResponseException { + public Mono testEndpointParameters(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback).bodyToMono(localVarReturnType); } @@ -1134,7 +1134,7 @@ public class FakeApi { * @param paramCallback None * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> 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 WebClientResponseException { + public Mono> testEndpointParametersWithHttpInfo(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback).toEntity(localVarReturnType); } @@ -1161,7 +1161,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testEndpointParametersWithResponseSpec(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 WebClientResponseException { + public ResponseSpec testEndpointParametersWithResponseSpec(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws WebClientResponseException { return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -1181,7 +1181,7 @@ public class FakeApi { * @param enumFormString Form parameter enum test (string) * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testEnumParametersRequestCreation(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws WebClientResponseException { + private ResponseSpec testEnumParametersRequestCreation(@jakarta.annotation.Nullable List enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List enumQueryModelArray, @jakarta.annotation.Nullable List enumFormStringArray, @jakarta.annotation.Nullable String enumFormString) throws WebClientResponseException { Object postBody = null; // create path and map variables final Map pathParams = new HashMap(); @@ -1236,7 +1236,7 @@ public class FakeApi { * @param enumFormString Form parameter enum test (string) * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws WebClientResponseException { + public Mono testEnumParameters(@jakarta.annotation.Nullable List enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List enumQueryModelArray, @jakarta.annotation.Nullable List enumFormStringArray, @jakarta.annotation.Nullable String enumFormString) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString).bodyToMono(localVarReturnType); } @@ -1257,7 +1257,7 @@ public class FakeApi { * @param enumFormString Form parameter enum test (string) * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testEnumParametersWithHttpInfo(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws WebClientResponseException { + public Mono> testEnumParametersWithHttpInfo(@jakarta.annotation.Nullable List enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List enumQueryModelArray, @jakarta.annotation.Nullable List enumFormStringArray, @jakarta.annotation.Nullable String enumFormString) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString).toEntity(localVarReturnType); } @@ -1279,7 +1279,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testEnumParametersWithResponseSpec(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws WebClientResponseException { + public ResponseSpec testEnumParametersWithResponseSpec(@jakarta.annotation.Nullable List enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List enumQueryModelArray, @jakarta.annotation.Nullable List enumFormStringArray, @jakarta.annotation.Nullable String enumFormString) throws WebClientResponseException { return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString); } @@ -1295,7 +1295,7 @@ public class FakeApi { * @param int64Group Integer in group parameters * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testGroupParametersRequestCreation(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws WebClientResponseException { + private ResponseSpec testGroupParametersRequestCreation(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'requiredStringGroup' is set if (requiredStringGroup == null) { @@ -1350,7 +1350,7 @@ public class FakeApi { * @param int64Group Integer in group parameters * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws WebClientResponseException { + public Mono testGroupParameters(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group).bodyToMono(localVarReturnType); } @@ -1367,7 +1367,7 @@ public class FakeApi { * @param int64Group Integer in group parameters * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws WebClientResponseException { + public Mono> testGroupParametersWithHttpInfo(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group).toEntity(localVarReturnType); } @@ -1385,7 +1385,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testGroupParametersWithResponseSpec(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws WebClientResponseException { + public ResponseSpec testGroupParametersWithResponseSpec(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group) throws WebClientResponseException { return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -1396,7 +1396,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testInlineAdditionalPropertiesRequestCreation(Map requestBody) throws WebClientResponseException { + private ResponseSpec testInlineAdditionalPropertiesRequestCreation(@jakarta.annotation.Nonnull Map requestBody) throws WebClientResponseException { Object postBody = requestBody; // verify the required parameter 'requestBody' is set if (requestBody == null) { @@ -1430,7 +1430,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testInlineAdditionalProperties(Map requestBody) throws WebClientResponseException { + public Mono testInlineAdditionalProperties(@jakarta.annotation.Nonnull Map requestBody) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testInlineAdditionalPropertiesRequestCreation(requestBody).bodyToMono(localVarReturnType); } @@ -1442,7 +1442,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testInlineAdditionalPropertiesWithHttpInfo(Map requestBody) throws WebClientResponseException { + public Mono> testInlineAdditionalPropertiesWithHttpInfo(@jakarta.annotation.Nonnull Map requestBody) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testInlineAdditionalPropertiesRequestCreation(requestBody).toEntity(localVarReturnType); } @@ -1455,7 +1455,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(Map requestBody) throws WebClientResponseException { + public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(@jakarta.annotation.Nonnull Map requestBody) throws WebClientResponseException { return testInlineAdditionalPropertiesRequestCreation(requestBody); } @@ -1466,7 +1466,7 @@ public class FakeApi { * @param testInlineFreeformAdditionalPropertiesRequest request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testInlineFreeformAdditionalPropertiesRequestCreation(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { + private ResponseSpec testInlineFreeformAdditionalPropertiesRequestCreation(@jakarta.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { Object postBody = testInlineFreeformAdditionalPropertiesRequest; // verify the required parameter 'testInlineFreeformAdditionalPropertiesRequest' is set if (testInlineFreeformAdditionalPropertiesRequest == null) { @@ -1500,7 +1500,7 @@ public class FakeApi { * @param testInlineFreeformAdditionalPropertiesRequest request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { + public Mono testInlineFreeformAdditionalProperties(@jakarta.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest).bodyToMono(localVarReturnType); } @@ -1512,7 +1512,7 @@ public class FakeApi { * @param testInlineFreeformAdditionalPropertiesRequest request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testInlineFreeformAdditionalPropertiesWithHttpInfo(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { + public Mono> testInlineFreeformAdditionalPropertiesWithHttpInfo(@jakarta.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest).toEntity(localVarReturnType); } @@ -1525,7 +1525,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testInlineFreeformAdditionalPropertiesWithResponseSpec(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { + public ResponseSpec testInlineFreeformAdditionalPropertiesWithResponseSpec(@jakarta.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest); } @@ -1537,7 +1537,7 @@ public class FakeApi { * @param param2 field2 * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testJsonFormDataRequestCreation(String param, String param2) throws WebClientResponseException { + private ResponseSpec testJsonFormDataRequestCreation(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'param' is set if (param == null) { @@ -1581,7 +1581,7 @@ public class FakeApi { * @param param2 field2 * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testJsonFormData(String param, String param2) throws WebClientResponseException { + public Mono testJsonFormData(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testJsonFormDataRequestCreation(param, param2).bodyToMono(localVarReturnType); } @@ -1594,7 +1594,7 @@ public class FakeApi { * @param param2 field2 * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testJsonFormDataWithHttpInfo(String param, String param2) throws WebClientResponseException { + public Mono> testJsonFormDataWithHttpInfo(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testJsonFormDataRequestCreation(param, param2).toEntity(localVarReturnType); } @@ -1608,7 +1608,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testJsonFormDataWithResponseSpec(String param, String param2) throws WebClientResponseException { + public ResponseSpec testJsonFormDataWithResponseSpec(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2) throws WebClientResponseException { return testJsonFormDataRequestCreation(param, param2); } @@ -1619,7 +1619,7 @@ public class FakeApi { * @param childWithNullable request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testNullableRequestCreation(ChildWithNullable childWithNullable) throws WebClientResponseException { + private ResponseSpec testNullableRequestCreation(@jakarta.annotation.Nonnull ChildWithNullable childWithNullable) throws WebClientResponseException { Object postBody = childWithNullable; // verify the required parameter 'childWithNullable' is set if (childWithNullable == null) { @@ -1653,7 +1653,7 @@ public class FakeApi { * @param childWithNullable request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testNullable(ChildWithNullable childWithNullable) throws WebClientResponseException { + public Mono testNullable(@jakarta.annotation.Nonnull ChildWithNullable childWithNullable) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testNullableRequestCreation(childWithNullable).bodyToMono(localVarReturnType); } @@ -1665,7 +1665,7 @@ public class FakeApi { * @param childWithNullable request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testNullableWithHttpInfo(ChildWithNullable childWithNullable) throws WebClientResponseException { + public Mono> testNullableWithHttpInfo(@jakarta.annotation.Nonnull ChildWithNullable childWithNullable) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testNullableRequestCreation(childWithNullable).toEntity(localVarReturnType); } @@ -1678,7 +1678,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testNullableWithResponseSpec(ChildWithNullable childWithNullable) throws WebClientResponseException { + public ResponseSpec testNullableWithResponseSpec(@jakarta.annotation.Nonnull ChildWithNullable childWithNullable) throws WebClientResponseException { return testNullableRequestCreation(childWithNullable); } @@ -1695,7 +1695,7 @@ public class FakeApi { * @param language The language parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testQueryParameterCollectionFormatRequestCreation(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws WebClientResponseException { + private ResponseSpec testQueryParameterCollectionFormatRequestCreation(@jakarta.annotation.Nonnull List pipe, @jakarta.annotation.Nonnull List ioutil, @jakarta.annotation.Nonnull List http, @jakarta.annotation.Nonnull List url, @jakarta.annotation.Nonnull List context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map language) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'pipe' is set if (pipe == null) { @@ -1761,7 +1761,7 @@ public class FakeApi { * @param language The language parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws WebClientResponseException { + public Mono testQueryParameterCollectionFormat(@jakarta.annotation.Nonnull List pipe, @jakarta.annotation.Nonnull List ioutil, @jakarta.annotation.Nonnull List http, @jakarta.annotation.Nonnull List url, @jakarta.annotation.Nonnull List context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map language) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language).bodyToMono(localVarReturnType); } @@ -1779,7 +1779,7 @@ public class FakeApi { * @param language The language parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws WebClientResponseException { + public Mono> testQueryParameterCollectionFormatWithHttpInfo(@jakarta.annotation.Nonnull List pipe, @jakarta.annotation.Nonnull List ioutil, @jakarta.annotation.Nonnull List http, @jakarta.annotation.Nonnull List url, @jakarta.annotation.Nonnull List context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map language) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language).toEntity(localVarReturnType); } @@ -1798,7 +1798,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws WebClientResponseException { + public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(@jakarta.annotation.Nonnull List pipe, @jakarta.annotation.Nonnull List ioutil, @jakarta.annotation.Nonnull List http, @jakarta.annotation.Nonnull List url, @jakarta.annotation.Nonnull List context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map language) throws WebClientResponseException { return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language); } @@ -1809,7 +1809,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testStringMapReferenceRequestCreation(Map requestBody) throws WebClientResponseException { + private ResponseSpec testStringMapReferenceRequestCreation(@jakarta.annotation.Nonnull Map requestBody) throws WebClientResponseException { Object postBody = requestBody; // verify the required parameter 'requestBody' is set if (requestBody == null) { @@ -1843,7 +1843,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testStringMapReference(Map requestBody) throws WebClientResponseException { + public Mono testStringMapReference(@jakarta.annotation.Nonnull Map requestBody) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testStringMapReferenceRequestCreation(requestBody).bodyToMono(localVarReturnType); } @@ -1855,7 +1855,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testStringMapReferenceWithHttpInfo(Map requestBody) throws WebClientResponseException { + public Mono> testStringMapReferenceWithHttpInfo(@jakarta.annotation.Nonnull Map requestBody) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testStringMapReferenceRequestCreation(requestBody).toEntity(localVarReturnType); } @@ -1868,7 +1868,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testStringMapReferenceWithResponseSpec(Map requestBody) throws WebClientResponseException { + public ResponseSpec testStringMapReferenceWithResponseSpec(@jakarta.annotation.Nonnull Map requestBody) throws WebClientResponseException { return testStringMapReferenceRequestCreation(requestBody); } } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 7a27fcc7ac0..978340e5ff7 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -55,7 +55,7 @@ public class FakeClassnameTags123Api { * @return Client * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testClassnameRequestCreation(Client client) throws WebClientResponseException { + private ResponseSpec testClassnameRequestCreation(@jakarta.annotation.Nonnull Client client) throws WebClientResponseException { Object postBody = client; // verify the required parameter 'client' is set if (client == null) { @@ -92,7 +92,7 @@ public class FakeClassnameTags123Api { * @return Client * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testClassname(Client client) throws WebClientResponseException { + public Mono testClassname(@jakarta.annotation.Nonnull Client client) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testClassnameRequestCreation(client).bodyToMono(localVarReturnType); } @@ -105,7 +105,7 @@ public class FakeClassnameTags123Api { * @return ResponseEntity<Client> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testClassnameWithHttpInfo(Client client) throws WebClientResponseException { + public Mono> testClassnameWithHttpInfo(@jakarta.annotation.Nonnull Client client) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testClassnameRequestCreation(client).toEntity(localVarReturnType); } @@ -118,7 +118,7 @@ public class FakeClassnameTags123Api { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testClassnameWithResponseSpec(Client client) throws WebClientResponseException { + public ResponseSpec testClassnameWithResponseSpec(@jakarta.annotation.Nonnull Client client) throws WebClientResponseException { return testClassnameRequestCreation(client); } } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/PetApi.java index f284056f290..83150ecafc7 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/PetApi.java @@ -58,7 +58,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec addPetRequestCreation(Pet pet) throws WebClientResponseException { + private ResponseSpec addPetRequestCreation(@jakarta.annotation.Nonnull Pet pet) throws WebClientResponseException { Object postBody = pet; // verify the required parameter 'pet' is set if (pet == null) { @@ -93,7 +93,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono addPet(Pet pet) throws WebClientResponseException { + public Mono addPet(@jakarta.annotation.Nonnull Pet pet) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return addPetRequestCreation(pet).bodyToMono(localVarReturnType); } @@ -106,7 +106,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> addPetWithHttpInfo(Pet pet) throws WebClientResponseException { + public Mono> addPetWithHttpInfo(@jakarta.annotation.Nonnull Pet pet) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return addPetRequestCreation(pet).toEntity(localVarReturnType); } @@ -120,7 +120,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec addPetWithResponseSpec(Pet pet) throws WebClientResponseException { + public ResponseSpec addPetWithResponseSpec(@jakarta.annotation.Nonnull Pet pet) throws WebClientResponseException { return addPetRequestCreation(pet); } @@ -133,7 +133,7 @@ public class PetApi { * @param apiKey The apiKey parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec deletePetRequestCreation(Long petId, String apiKey) throws WebClientResponseException { + private ResponseSpec deletePetRequestCreation(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -172,7 +172,7 @@ public class PetApi { * @param apiKey The apiKey parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono deletePet(Long petId, String apiKey) throws WebClientResponseException { + public Mono deletePet(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return deletePetRequestCreation(petId, apiKey).bodyToMono(localVarReturnType); } @@ -186,7 +186,7 @@ public class PetApi { * @param apiKey The apiKey parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> deletePetWithHttpInfo(Long petId, String apiKey) throws WebClientResponseException { + public Mono> deletePetWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return deletePetRequestCreation(petId, apiKey).toEntity(localVarReturnType); } @@ -201,7 +201,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec deletePetWithResponseSpec(Long petId, String apiKey) throws WebClientResponseException { + public ResponseSpec deletePetWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws WebClientResponseException { return deletePetRequestCreation(petId, apiKey); } @@ -214,7 +214,7 @@ public class PetApi { * @return List<Pet> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec findPetsByStatusRequestCreation(List status) throws WebClientResponseException { + private ResponseSpec findPetsByStatusRequestCreation(@jakarta.annotation.Nonnull List status) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'status' is set if (status == null) { @@ -252,7 +252,7 @@ public class PetApi { * @return List<Pet> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public List findPetsByStatus(List status) throws WebClientResponseException { + public List findPetsByStatus(@jakarta.annotation.Nonnull List status) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return findPetsByStatusRequestCreation(status).bodyToFlux(localVarReturnType).collectList().block(); } @@ -266,7 +266,7 @@ public class PetApi { * @return ResponseEntity<List<Pet>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity> findPetsByStatusWithHttpInfo(List status) throws WebClientResponseException { + public ResponseEntity> findPetsByStatusWithHttpInfo(@jakarta.annotation.Nonnull List status) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return findPetsByStatusRequestCreation(status).toEntityList(localVarReturnType).block(); } @@ -280,7 +280,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec findPetsByStatusWithResponseSpec(List status) throws WebClientResponseException { + public ResponseSpec findPetsByStatusWithResponseSpec(@jakarta.annotation.Nonnull List status) throws WebClientResponseException { return findPetsByStatusRequestCreation(status); } @@ -295,7 +295,7 @@ public class PetApi { * @deprecated */ @Deprecated - private ResponseSpec findPetsByTagsRequestCreation(Set tags) throws WebClientResponseException { + private ResponseSpec findPetsByTagsRequestCreation(@jakarta.annotation.Nonnull Set tags) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'tags' is set if (tags == null) { @@ -333,7 +333,7 @@ public class PetApi { * @return Set<Pet> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Set findPetsByTags(Set tags) throws WebClientResponseException { + public Set findPetsByTags(@jakarta.annotation.Nonnull Set tags) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return findPetsByTagsRequestCreation(tags).bodyToFlux(localVarReturnType).collect(Collectors.toSet()).block(); } @@ -347,7 +347,7 @@ public class PetApi { * @return ResponseEntity<Set<Pet>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity> findPetsByTagsWithHttpInfo(Set tags) throws WebClientResponseException { + public ResponseEntity> findPetsByTagsWithHttpInfo(@jakarta.annotation.Nonnull Set tags) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return findPetsByTagsRequestCreation(tags).toEntityList(localVarReturnType).block(); } @@ -361,7 +361,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec findPetsByTagsWithResponseSpec(Set tags) throws WebClientResponseException { + public ResponseSpec findPetsByTagsWithResponseSpec(@jakarta.annotation.Nonnull Set tags) throws WebClientResponseException { return findPetsByTagsRequestCreation(tags); } @@ -375,7 +375,7 @@ public class PetApi { * @return Pet * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec getPetByIdRequestCreation(Long petId) throws WebClientResponseException { + private ResponseSpec getPetByIdRequestCreation(@jakarta.annotation.Nonnull Long petId) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -414,7 +414,7 @@ public class PetApi { * @return Pet * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Pet getPetById(Long petId) throws WebClientResponseException { + public Pet getPetById(@jakarta.annotation.Nonnull Long petId) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return getPetByIdRequestCreation(petId).bodyToMono(localVarReturnType).block(); } @@ -429,7 +429,7 @@ public class PetApi { * @return ResponseEntity<Pet> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws WebClientResponseException { + public ResponseEntity getPetByIdWithHttpInfo(@jakarta.annotation.Nonnull Long petId) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return getPetByIdRequestCreation(petId).toEntity(localVarReturnType).block(); } @@ -444,7 +444,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec getPetByIdWithResponseSpec(Long petId) throws WebClientResponseException { + public ResponseSpec getPetByIdWithResponseSpec(@jakarta.annotation.Nonnull Long petId) throws WebClientResponseException { return getPetByIdRequestCreation(petId); } @@ -458,7 +458,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec updatePetRequestCreation(Pet pet) throws WebClientResponseException { + private ResponseSpec updatePetRequestCreation(@jakarta.annotation.Nonnull Pet pet) throws WebClientResponseException { Object postBody = pet; // verify the required parameter 'pet' is set if (pet == null) { @@ -495,7 +495,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public void updatePet(Pet pet) throws WebClientResponseException { + public void updatePet(@jakarta.annotation.Nonnull Pet pet) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; updatePetRequestCreation(pet).bodyToMono(localVarReturnType).block(); } @@ -510,7 +510,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity updatePetWithHttpInfo(Pet pet) throws WebClientResponseException { + public ResponseEntity updatePetWithHttpInfo(@jakarta.annotation.Nonnull Pet pet) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updatePetRequestCreation(pet).toEntity(localVarReturnType).block(); } @@ -526,7 +526,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec updatePetWithResponseSpec(Pet pet) throws WebClientResponseException { + public ResponseSpec updatePetWithResponseSpec(@jakarta.annotation.Nonnull Pet pet) throws WebClientResponseException { return updatePetRequestCreation(pet); } @@ -540,7 +540,7 @@ public class PetApi { * @param status Updated status of the pet * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec updatePetWithFormRequestCreation(Long petId, String name, String status) throws WebClientResponseException { + private ResponseSpec updatePetWithFormRequestCreation(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -584,7 +584,7 @@ public class PetApi { * @param status Updated status of the pet * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono updatePetWithForm(Long petId, String name, String status) throws WebClientResponseException { + public Mono updatePetWithForm(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updatePetWithFormRequestCreation(petId, name, status).bodyToMono(localVarReturnType); } @@ -599,7 +599,7 @@ public class PetApi { * @param status Updated status of the pet * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws WebClientResponseException { + public Mono> updatePetWithFormWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updatePetWithFormRequestCreation(petId, name, status).toEntity(localVarReturnType); } @@ -615,7 +615,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec updatePetWithFormWithResponseSpec(Long petId, String name, String status) throws WebClientResponseException { + public ResponseSpec updatePetWithFormWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws WebClientResponseException { return updatePetWithFormRequestCreation(petId, name, status); } @@ -629,7 +629,7 @@ public class PetApi { * @return ModelApiResponse * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec uploadFileRequestCreation(Long petId, String additionalMetadata, File _file) throws WebClientResponseException { + private ResponseSpec uploadFileRequestCreation(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -675,7 +675,7 @@ public class PetApi { * @return ModelApiResponse * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono uploadFile(Long petId, String additionalMetadata, File _file) throws WebClientResponseException { + public Mono uploadFile(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return uploadFileRequestCreation(petId, additionalMetadata, _file).bodyToMono(localVarReturnType); } @@ -690,7 +690,7 @@ public class PetApi { * @return ResponseEntity<ModelApiResponse> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws WebClientResponseException { + public Mono> uploadFileWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return uploadFileRequestCreation(petId, additionalMetadata, _file).toEntity(localVarReturnType); } @@ -705,7 +705,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec uploadFileWithResponseSpec(Long petId, String additionalMetadata, File _file) throws WebClientResponseException { + public ResponseSpec uploadFileWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws WebClientResponseException { return uploadFileRequestCreation(petId, additionalMetadata, _file); } @@ -719,7 +719,7 @@ public class PetApi { * @return ModelApiResponse * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec uploadFileWithRequiredFileRequestCreation(Long petId, File requiredFile, String additionalMetadata) throws WebClientResponseException { + private ResponseSpec uploadFileWithRequiredFileRequestCreation(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nonnull File requiredFile, @jakarta.annotation.Nullable String additionalMetadata) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -769,7 +769,7 @@ public class PetApi { * @return ModelApiResponse * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws WebClientResponseException { + public Mono uploadFileWithRequiredFile(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nonnull File requiredFile, @jakarta.annotation.Nullable String additionalMetadata) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return uploadFileWithRequiredFileRequestCreation(petId, requiredFile, additionalMetadata).bodyToMono(localVarReturnType); } @@ -784,7 +784,7 @@ public class PetApi { * @return ResponseEntity<ModelApiResponse> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws WebClientResponseException { + public Mono> uploadFileWithRequiredFileWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nonnull File requiredFile, @jakarta.annotation.Nullable String additionalMetadata) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return uploadFileWithRequiredFileRequestCreation(petId, requiredFile, additionalMetadata).toEntity(localVarReturnType); } @@ -799,7 +799,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec uploadFileWithRequiredFileWithResponseSpec(Long petId, File requiredFile, String additionalMetadata) throws WebClientResponseException { + public ResponseSpec uploadFileWithRequiredFileWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nonnull File requiredFile, @jakarta.annotation.Nullable String additionalMetadata) throws WebClientResponseException { return uploadFileWithRequiredFileRequestCreation(petId, requiredFile, additionalMetadata); } } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/StoreApi.java index 073336e10ce..bc25fab0a0a 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/StoreApi.java @@ -55,7 +55,7 @@ public class StoreApi { * @param orderId ID of the order that needs to be deleted * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec deleteOrderRequestCreation(String orderId) throws WebClientResponseException { + private ResponseSpec deleteOrderRequestCreation(@jakarta.annotation.Nonnull String orderId) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'orderId' is set if (orderId == null) { @@ -90,7 +90,7 @@ public class StoreApi { * @param orderId ID of the order that needs to be deleted * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono deleteOrder(String orderId) throws WebClientResponseException { + public Mono deleteOrder(@jakarta.annotation.Nonnull String orderId) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return deleteOrderRequestCreation(orderId).bodyToMono(localVarReturnType); } @@ -103,7 +103,7 @@ public class StoreApi { * @param orderId ID of the order that needs to be deleted * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> deleteOrderWithHttpInfo(String orderId) throws WebClientResponseException { + public Mono> deleteOrderWithHttpInfo(@jakarta.annotation.Nonnull String orderId) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return deleteOrderRequestCreation(orderId).toEntity(localVarReturnType); } @@ -117,7 +117,7 @@ public class StoreApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec deleteOrderWithResponseSpec(String orderId) throws WebClientResponseException { + public ResponseSpec deleteOrderWithResponseSpec(@jakarta.annotation.Nonnull String orderId) throws WebClientResponseException { return deleteOrderRequestCreation(orderId); } @@ -196,7 +196,7 @@ public class StoreApi { * @return Order * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec getOrderByIdRequestCreation(Long orderId) throws WebClientResponseException { + private ResponseSpec getOrderByIdRequestCreation(@jakarta.annotation.Nonnull Long orderId) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'orderId' is set if (orderId == null) { @@ -235,7 +235,7 @@ public class StoreApi { * @return Order * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono getOrderById(Long orderId) throws WebClientResponseException { + public Mono getOrderById(@jakarta.annotation.Nonnull Long orderId) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return getOrderByIdRequestCreation(orderId).bodyToMono(localVarReturnType); } @@ -250,7 +250,7 @@ public class StoreApi { * @return ResponseEntity<Order> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> getOrderByIdWithHttpInfo(Long orderId) throws WebClientResponseException { + public Mono> getOrderByIdWithHttpInfo(@jakarta.annotation.Nonnull Long orderId) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return getOrderByIdRequestCreation(orderId).toEntity(localVarReturnType); } @@ -265,7 +265,7 @@ public class StoreApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec getOrderByIdWithResponseSpec(Long orderId) throws WebClientResponseException { + public ResponseSpec getOrderByIdWithResponseSpec(@jakarta.annotation.Nonnull Long orderId) throws WebClientResponseException { return getOrderByIdRequestCreation(orderId); } @@ -278,7 +278,7 @@ public class StoreApi { * @return Order * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec placeOrderRequestCreation(Order order) throws WebClientResponseException { + private ResponseSpec placeOrderRequestCreation(@jakarta.annotation.Nonnull Order order) throws WebClientResponseException { Object postBody = order; // verify the required parameter 'order' is set if (order == null) { @@ -316,7 +316,7 @@ public class StoreApi { * @return Order * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono placeOrder(Order order) throws WebClientResponseException { + public Mono placeOrder(@jakarta.annotation.Nonnull Order order) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return placeOrderRequestCreation(order).bodyToMono(localVarReturnType); } @@ -330,7 +330,7 @@ public class StoreApi { * @return ResponseEntity<Order> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> placeOrderWithHttpInfo(Order order) throws WebClientResponseException { + public Mono> placeOrderWithHttpInfo(@jakarta.annotation.Nonnull Order order) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return placeOrderRequestCreation(order).toEntity(localVarReturnType); } @@ -344,7 +344,7 @@ public class StoreApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec placeOrderWithResponseSpec(Order order) throws WebClientResponseException { + public ResponseSpec placeOrderWithResponseSpec(@jakarta.annotation.Nonnull Order order) throws WebClientResponseException { return placeOrderRequestCreation(order); } } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/UserApi.java index 467402a0ca2..d20e51cc34c 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/UserApi.java @@ -55,7 +55,7 @@ public class UserApi { * @param user Created user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec createUserRequestCreation(User user) throws WebClientResponseException { + private ResponseSpec createUserRequestCreation(@jakarta.annotation.Nonnull User user) throws WebClientResponseException { Object postBody = user; // verify the required parameter 'user' is set if (user == null) { @@ -89,7 +89,7 @@ public class UserApi { * @param user Created user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono createUser(User user) throws WebClientResponseException { + public Mono createUser(@jakarta.annotation.Nonnull User user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createUserRequestCreation(user).bodyToMono(localVarReturnType); } @@ -101,7 +101,7 @@ public class UserApi { * @param user Created user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> createUserWithHttpInfo(User user) throws WebClientResponseException { + public Mono> createUserWithHttpInfo(@jakarta.annotation.Nonnull User user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createUserRequestCreation(user).toEntity(localVarReturnType); } @@ -114,7 +114,7 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec createUserWithResponseSpec(User user) throws WebClientResponseException { + public ResponseSpec createUserWithResponseSpec(@jakarta.annotation.Nonnull User user) throws WebClientResponseException { return createUserRequestCreation(user); } @@ -125,7 +125,7 @@ public class UserApi { * @param user List of user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec createUsersWithArrayInputRequestCreation(List user) throws WebClientResponseException { + private ResponseSpec createUsersWithArrayInputRequestCreation(@jakarta.annotation.Nonnull List user) throws WebClientResponseException { Object postBody = user; // verify the required parameter 'user' is set if (user == null) { @@ -159,7 +159,7 @@ public class UserApi { * @param user List of user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono createUsersWithArrayInput(List user) throws WebClientResponseException { + public Mono createUsersWithArrayInput(@jakarta.annotation.Nonnull List user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createUsersWithArrayInputRequestCreation(user).bodyToMono(localVarReturnType); } @@ -171,7 +171,7 @@ public class UserApi { * @param user List of user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> createUsersWithArrayInputWithHttpInfo(List user) throws WebClientResponseException { + public Mono> createUsersWithArrayInputWithHttpInfo(@jakarta.annotation.Nonnull List user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createUsersWithArrayInputRequestCreation(user).toEntity(localVarReturnType); } @@ -184,7 +184,7 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec createUsersWithArrayInputWithResponseSpec(List user) throws WebClientResponseException { + public ResponseSpec createUsersWithArrayInputWithResponseSpec(@jakarta.annotation.Nonnull List user) throws WebClientResponseException { return createUsersWithArrayInputRequestCreation(user); } @@ -195,7 +195,7 @@ public class UserApi { * @param user List of user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec createUsersWithListInputRequestCreation(List user) throws WebClientResponseException { + private ResponseSpec createUsersWithListInputRequestCreation(@jakarta.annotation.Nonnull List user) throws WebClientResponseException { Object postBody = user; // verify the required parameter 'user' is set if (user == null) { @@ -229,7 +229,7 @@ public class UserApi { * @param user List of user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono createUsersWithListInput(List user) throws WebClientResponseException { + public Mono createUsersWithListInput(@jakarta.annotation.Nonnull List user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createUsersWithListInputRequestCreation(user).bodyToMono(localVarReturnType); } @@ -241,7 +241,7 @@ public class UserApi { * @param user List of user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> createUsersWithListInputWithHttpInfo(List user) throws WebClientResponseException { + public Mono> createUsersWithListInputWithHttpInfo(@jakarta.annotation.Nonnull List user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createUsersWithListInputRequestCreation(user).toEntity(localVarReturnType); } @@ -254,7 +254,7 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec createUsersWithListInputWithResponseSpec(List user) throws WebClientResponseException { + public ResponseSpec createUsersWithListInputWithResponseSpec(@jakarta.annotation.Nonnull List user) throws WebClientResponseException { return createUsersWithListInputRequestCreation(user); } @@ -266,7 +266,7 @@ public class UserApi { * @param username The name that needs to be deleted * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec deleteUserRequestCreation(String username) throws WebClientResponseException { + private ResponseSpec deleteUserRequestCreation(@jakarta.annotation.Nonnull String username) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'username' is set if (username == null) { @@ -301,7 +301,7 @@ public class UserApi { * @param username The name that needs to be deleted * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono deleteUser(String username) throws WebClientResponseException { + public Mono deleteUser(@jakarta.annotation.Nonnull String username) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return deleteUserRequestCreation(username).bodyToMono(localVarReturnType); } @@ -314,7 +314,7 @@ public class UserApi { * @param username The name that needs to be deleted * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> deleteUserWithHttpInfo(String username) throws WebClientResponseException { + public Mono> deleteUserWithHttpInfo(@jakarta.annotation.Nonnull String username) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return deleteUserRequestCreation(username).toEntity(localVarReturnType); } @@ -328,7 +328,7 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec deleteUserWithResponseSpec(String username) throws WebClientResponseException { + public ResponseSpec deleteUserWithResponseSpec(@jakarta.annotation.Nonnull String username) throws WebClientResponseException { return deleteUserRequestCreation(username); } @@ -342,7 +342,7 @@ public class UserApi { * @return User * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec getUserByNameRequestCreation(String username) throws WebClientResponseException { + private ResponseSpec getUserByNameRequestCreation(@jakarta.annotation.Nonnull String username) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'username' is set if (username == null) { @@ -381,7 +381,7 @@ public class UserApi { * @return User * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono getUserByName(String username) throws WebClientResponseException { + public Mono getUserByName(@jakarta.annotation.Nonnull String username) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return getUserByNameRequestCreation(username).bodyToMono(localVarReturnType); } @@ -396,7 +396,7 @@ public class UserApi { * @return ResponseEntity<User> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> getUserByNameWithHttpInfo(String username) throws WebClientResponseException { + public Mono> getUserByNameWithHttpInfo(@jakarta.annotation.Nonnull String username) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return getUserByNameRequestCreation(username).toEntity(localVarReturnType); } @@ -411,7 +411,7 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec getUserByNameWithResponseSpec(String username) throws WebClientResponseException { + public ResponseSpec getUserByNameWithResponseSpec(@jakarta.annotation.Nonnull String username) throws WebClientResponseException { return getUserByNameRequestCreation(username); } @@ -425,7 +425,7 @@ public class UserApi { * @return String * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec loginUserRequestCreation(String username, String password) throws WebClientResponseException { + private ResponseSpec loginUserRequestCreation(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'username' is set if (username == null) { @@ -469,7 +469,7 @@ public class UserApi { * @return String * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono loginUser(String username, String password) throws WebClientResponseException { + public Mono loginUser(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return loginUserRequestCreation(username, password).bodyToMono(localVarReturnType); } @@ -484,7 +484,7 @@ public class UserApi { * @return ResponseEntity<String> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> loginUserWithHttpInfo(String username, String password) throws WebClientResponseException { + public Mono> loginUserWithHttpInfo(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return loginUserRequestCreation(username, password).toEntity(localVarReturnType); } @@ -499,7 +499,7 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec loginUserWithResponseSpec(String username, String password) throws WebClientResponseException { + public ResponseSpec loginUserWithResponseSpec(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws WebClientResponseException { return loginUserRequestCreation(username, password); } @@ -572,7 +572,7 @@ public class UserApi { * @param user Updated user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec updateUserRequestCreation(String username, User user) throws WebClientResponseException { + private ResponseSpec updateUserRequestCreation(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws WebClientResponseException { Object postBody = user; // verify the required parameter 'username' is set if (username == null) { @@ -614,7 +614,7 @@ public class UserApi { * @param user Updated user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono updateUser(String username, User user) throws WebClientResponseException { + public Mono updateUser(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updateUserRequestCreation(username, user).bodyToMono(localVarReturnType); } @@ -628,7 +628,7 @@ public class UserApi { * @param user Updated user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> updateUserWithHttpInfo(String username, User user) throws WebClientResponseException { + public Mono> updateUserWithHttpInfo(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updateUserRequestCreation(username, user).toEntity(localVarReturnType); } @@ -643,7 +643,7 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec updateUserWithResponseSpec(String username, User user) throws WebClientResponseException { + public ResponseSpec updateUserWithResponseSpec(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws WebClientResponseException { return updateUserRequestCreation(username, user); } } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 1912ed42e94..3a72c67be3f 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -55,7 +55,7 @@ public class AnotherFakeApi { * @return Client * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec call123testSpecialTagsRequestCreation(Client client) throws WebClientResponseException { + private ResponseSpec call123testSpecialTagsRequestCreation(@javax.annotation.Nonnull Client client) throws WebClientResponseException { Object postBody = client; // verify the required parameter 'client' is set if (client == null) { @@ -92,7 +92,7 @@ public class AnotherFakeApi { * @return Client * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono call123testSpecialTags(Client client) throws WebClientResponseException { + public Mono call123testSpecialTags(@javax.annotation.Nonnull Client client) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return call123testSpecialTagsRequestCreation(client).bodyToMono(localVarReturnType); } @@ -105,7 +105,7 @@ public class AnotherFakeApi { * @return ResponseEntity<Client> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> call123testSpecialTagsWithHttpInfo(Client client) throws WebClientResponseException { + public Mono> call123testSpecialTagsWithHttpInfo(@javax.annotation.Nonnull Client client) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return call123testSpecialTagsRequestCreation(client).toEntity(localVarReturnType); } @@ -118,7 +118,7 @@ public class AnotherFakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec call123testSpecialTagsWithResponseSpec(Client client) throws WebClientResponseException { + public ResponseSpec call123testSpecialTagsWithResponseSpec(@javax.annotation.Nonnull Client client) throws WebClientResponseException { return call123testSpecialTagsRequestCreation(client); } } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/FakeApi.java index a1b6637bc73..fba5e2a3e14 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/FakeApi.java @@ -200,7 +200,7 @@ public class FakeApi { * @param header1 header parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeHttpSignatureTestRequestCreation(Pet pet, String query1, String header1) throws WebClientResponseException { + private ResponseSpec fakeHttpSignatureTestRequestCreation(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1) throws WebClientResponseException { Object postBody = pet; // verify the required parameter 'pet' is set if (pet == null) { @@ -241,7 +241,7 @@ public class FakeApi { * @param header1 header parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakeHttpSignatureTest(Pet pet, String query1, String header1) throws WebClientResponseException { + public Mono fakeHttpSignatureTest(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeHttpSignatureTestRequestCreation(pet, query1, header1).bodyToMono(localVarReturnType); } @@ -255,7 +255,7 @@ public class FakeApi { * @param header1 header parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakeHttpSignatureTestWithHttpInfo(Pet pet, String query1, String header1) throws WebClientResponseException { + public Mono> fakeHttpSignatureTestWithHttpInfo(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeHttpSignatureTestRequestCreation(pet, query1, header1).toEntity(localVarReturnType); } @@ -270,7 +270,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeHttpSignatureTestWithResponseSpec(Pet pet, String query1, String header1) throws WebClientResponseException { + public ResponseSpec fakeHttpSignatureTestWithResponseSpec(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1) throws WebClientResponseException { return fakeHttpSignatureTestRequestCreation(pet, query1, header1); } @@ -282,7 +282,7 @@ public class FakeApi { * @return Boolean * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterBooleanSerializeRequestCreation(Boolean body) throws WebClientResponseException { + private ResponseSpec fakeOuterBooleanSerializeRequestCreation(@javax.annotation.Nullable Boolean body) throws WebClientResponseException { Object postBody = body; // create path and map variables final Map pathParams = new HashMap(); @@ -315,7 +315,7 @@ public class FakeApi { * @return Boolean * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakeOuterBooleanSerialize(Boolean body) throws WebClientResponseException { + public Mono fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterBooleanSerializeRequestCreation(body).bodyToMono(localVarReturnType); } @@ -328,7 +328,7 @@ public class FakeApi { * @return ResponseEntity<Boolean> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws WebClientResponseException { + public Mono> fakeOuterBooleanSerializeWithHttpInfo(@javax.annotation.Nullable Boolean body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterBooleanSerializeRequestCreation(body).toEntity(localVarReturnType); } @@ -341,7 +341,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(Boolean body) throws WebClientResponseException { + public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(@javax.annotation.Nullable Boolean body) throws WebClientResponseException { return fakeOuterBooleanSerializeRequestCreation(body); } @@ -353,7 +353,7 @@ public class FakeApi { * @return OuterComposite * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterCompositeSerializeRequestCreation(OuterComposite outerComposite) throws WebClientResponseException { + private ResponseSpec fakeOuterCompositeSerializeRequestCreation(@javax.annotation.Nullable OuterComposite outerComposite) throws WebClientResponseException { Object postBody = outerComposite; // create path and map variables final Map pathParams = new HashMap(); @@ -386,7 +386,7 @@ public class FakeApi { * @return OuterComposite * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakeOuterCompositeSerialize(OuterComposite outerComposite) throws WebClientResponseException { + public Mono fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite outerComposite) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterCompositeSerializeRequestCreation(outerComposite).bodyToMono(localVarReturnType); } @@ -399,7 +399,7 @@ public class FakeApi { * @return ResponseEntity<OuterComposite> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws WebClientResponseException { + public Mono> fakeOuterCompositeSerializeWithHttpInfo(@javax.annotation.Nullable OuterComposite outerComposite) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterCompositeSerializeRequestCreation(outerComposite).toEntity(localVarReturnType); } @@ -412,7 +412,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(OuterComposite outerComposite) throws WebClientResponseException { + public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(@javax.annotation.Nullable OuterComposite outerComposite) throws WebClientResponseException { return fakeOuterCompositeSerializeRequestCreation(outerComposite); } @@ -424,7 +424,7 @@ public class FakeApi { * @return BigDecimal * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterNumberSerializeRequestCreation(BigDecimal body) throws WebClientResponseException { + private ResponseSpec fakeOuterNumberSerializeRequestCreation(@javax.annotation.Nullable BigDecimal body) throws WebClientResponseException { Object postBody = body; // create path and map variables final Map pathParams = new HashMap(); @@ -457,7 +457,7 @@ public class FakeApi { * @return BigDecimal * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakeOuterNumberSerialize(BigDecimal body) throws WebClientResponseException { + public Mono fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterNumberSerializeRequestCreation(body).bodyToMono(localVarReturnType); } @@ -470,7 +470,7 @@ public class FakeApi { * @return ResponseEntity<BigDecimal> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws WebClientResponseException { + public Mono> fakeOuterNumberSerializeWithHttpInfo(@javax.annotation.Nullable BigDecimal body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterNumberSerializeRequestCreation(body).toEntity(localVarReturnType); } @@ -483,7 +483,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(BigDecimal body) throws WebClientResponseException { + public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(@javax.annotation.Nullable BigDecimal body) throws WebClientResponseException { return fakeOuterNumberSerializeRequestCreation(body); } @@ -495,7 +495,7 @@ public class FakeApi { * @return String * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterStringSerializeRequestCreation(String body) throws WebClientResponseException { + private ResponseSpec fakeOuterStringSerializeRequestCreation(@javax.annotation.Nullable String body) throws WebClientResponseException { Object postBody = body; // create path and map variables final Map pathParams = new HashMap(); @@ -528,7 +528,7 @@ public class FakeApi { * @return String * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakeOuterStringSerialize(String body) throws WebClientResponseException { + public Mono fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterStringSerializeRequestCreation(body).bodyToMono(localVarReturnType); } @@ -541,7 +541,7 @@ public class FakeApi { * @return ResponseEntity<String> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakeOuterStringSerializeWithHttpInfo(String body) throws WebClientResponseException { + public Mono> fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterStringSerializeRequestCreation(body).toEntity(localVarReturnType); } @@ -554,7 +554,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterStringSerializeWithResponseSpec(String body) throws WebClientResponseException { + public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@javax.annotation.Nullable String body) throws WebClientResponseException { return fakeOuterStringSerializeRequestCreation(body); } @@ -566,7 +566,7 @@ public class FakeApi { * @return OuterObjectWithEnumProperty * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakePropertyEnumIntegerSerializeRequestCreation(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { + private ResponseSpec fakePropertyEnumIntegerSerializeRequestCreation(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { Object postBody = outerObjectWithEnumProperty; // verify the required parameter 'outerObjectWithEnumProperty' is set if (outerObjectWithEnumProperty == null) { @@ -603,7 +603,7 @@ public class FakeApi { * @return OuterObjectWithEnumProperty * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { + public Mono fakePropertyEnumIntegerSerialize(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty).bodyToMono(localVarReturnType); } @@ -616,7 +616,7 @@ public class FakeApi { * @return ResponseEntity<OuterObjectWithEnumProperty> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakePropertyEnumIntegerSerializeWithHttpInfo(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { + public Mono> fakePropertyEnumIntegerSerializeWithHttpInfo(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty).toEntity(localVarReturnType); } @@ -629,7 +629,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { + public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty); } @@ -640,7 +640,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testAdditionalPropertiesReferenceRequestCreation(Map requestBody) throws WebClientResponseException { + private ResponseSpec testAdditionalPropertiesReferenceRequestCreation(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { Object postBody = requestBody; // verify the required parameter 'requestBody' is set if (requestBody == null) { @@ -674,7 +674,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testAdditionalPropertiesReference(Map requestBody) throws WebClientResponseException { + public Mono testAdditionalPropertiesReference(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testAdditionalPropertiesReferenceRequestCreation(requestBody).bodyToMono(localVarReturnType); } @@ -686,7 +686,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testAdditionalPropertiesReferenceWithHttpInfo(Map requestBody) throws WebClientResponseException { + public Mono> testAdditionalPropertiesReferenceWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testAdditionalPropertiesReferenceRequestCreation(requestBody).toEntity(localVarReturnType); } @@ -699,7 +699,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(Map requestBody) throws WebClientResponseException { + public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { return testAdditionalPropertiesReferenceRequestCreation(requestBody); } @@ -710,7 +710,7 @@ public class FakeApi { * @param body image to upload * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testBodyWithBinaryRequestCreation(File body) throws WebClientResponseException { + private ResponseSpec testBodyWithBinaryRequestCreation(@javax.annotation.Nullable File body) throws WebClientResponseException { Object postBody = body; // verify the required parameter 'body' is set if (body == null) { @@ -744,7 +744,7 @@ public class FakeApi { * @param body image to upload * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testBodyWithBinary(File body) throws WebClientResponseException { + public Mono testBodyWithBinary(@javax.annotation.Nullable File body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testBodyWithBinaryRequestCreation(body).bodyToMono(localVarReturnType); } @@ -756,7 +756,7 @@ public class FakeApi { * @param body image to upload * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testBodyWithBinaryWithHttpInfo(File body) throws WebClientResponseException { + public Mono> testBodyWithBinaryWithHttpInfo(@javax.annotation.Nullable File body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testBodyWithBinaryRequestCreation(body).toEntity(localVarReturnType); } @@ -769,7 +769,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testBodyWithBinaryWithResponseSpec(File body) throws WebClientResponseException { + public ResponseSpec testBodyWithBinaryWithResponseSpec(@javax.annotation.Nullable File body) throws WebClientResponseException { return testBodyWithBinaryRequestCreation(body); } @@ -780,7 +780,7 @@ public class FakeApi { * @param fileSchemaTestClass The fileSchemaTestClass parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testBodyWithFileSchemaRequestCreation(FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { + private ResponseSpec testBodyWithFileSchemaRequestCreation(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { Object postBody = fileSchemaTestClass; // verify the required parameter 'fileSchemaTestClass' is set if (fileSchemaTestClass == null) { @@ -814,7 +814,7 @@ public class FakeApi { * @param fileSchemaTestClass The fileSchemaTestClass parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { + public Mono testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass).bodyToMono(localVarReturnType); } @@ -826,7 +826,7 @@ public class FakeApi { * @param fileSchemaTestClass The fileSchemaTestClass parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { + public Mono> testBodyWithFileSchemaWithHttpInfo(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass).toEntity(localVarReturnType); } @@ -839,7 +839,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testBodyWithFileSchemaWithResponseSpec(FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { + public ResponseSpec testBodyWithFileSchemaWithResponseSpec(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass); } @@ -851,7 +851,7 @@ public class FakeApi { * @param user The user parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testBodyWithQueryParamsRequestCreation(String query, User user) throws WebClientResponseException { + private ResponseSpec testBodyWithQueryParamsRequestCreation(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws WebClientResponseException { Object postBody = user; // verify the required parameter 'query' is set if (query == null) { @@ -892,7 +892,7 @@ public class FakeApi { * @param user The user parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testBodyWithQueryParams(String query, User user) throws WebClientResponseException { + public Mono testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testBodyWithQueryParamsRequestCreation(query, user).bodyToMono(localVarReturnType); } @@ -905,7 +905,7 @@ public class FakeApi { * @param user The user parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testBodyWithQueryParamsWithHttpInfo(String query, User user) throws WebClientResponseException { + public Mono> testBodyWithQueryParamsWithHttpInfo(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testBodyWithQueryParamsRequestCreation(query, user).toEntity(localVarReturnType); } @@ -919,7 +919,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testBodyWithQueryParamsWithResponseSpec(String query, User user) throws WebClientResponseException { + public ResponseSpec testBodyWithQueryParamsWithResponseSpec(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws WebClientResponseException { return testBodyWithQueryParamsRequestCreation(query, user); } @@ -931,7 +931,7 @@ public class FakeApi { * @return Client * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testClientModelRequestCreation(Client client) throws WebClientResponseException { + private ResponseSpec testClientModelRequestCreation(@javax.annotation.Nonnull Client client) throws WebClientResponseException { Object postBody = client; // verify the required parameter 'client' is set if (client == null) { @@ -968,7 +968,7 @@ public class FakeApi { * @return Client * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testClientModel(Client client) throws WebClientResponseException { + public Mono testClientModel(@javax.annotation.Nonnull Client client) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testClientModelRequestCreation(client).bodyToMono(localVarReturnType); } @@ -981,7 +981,7 @@ public class FakeApi { * @return ResponseEntity<Client> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testClientModelWithHttpInfo(Client client) throws WebClientResponseException { + public Mono> testClientModelWithHttpInfo(@javax.annotation.Nonnull Client client) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testClientModelRequestCreation(client).toEntity(localVarReturnType); } @@ -994,7 +994,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testClientModelWithResponseSpec(Client client) throws WebClientResponseException { + public ResponseSpec testClientModelWithResponseSpec(@javax.annotation.Nonnull Client client) throws WebClientResponseException { return testClientModelRequestCreation(client); } @@ -1019,7 +1019,7 @@ public class FakeApi { * @param paramCallback None * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testEndpointParametersRequestCreation(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 WebClientResponseException { + private ResponseSpec testEndpointParametersRequestCreation(@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 WebClientResponseException { Object postBody = null; // verify the required parameter 'number' is set if (number == null) { @@ -1108,7 +1108,7 @@ public class FakeApi { * @param paramCallback None * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono 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 WebClientResponseException { + public Mono 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 WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback).bodyToMono(localVarReturnType); } @@ -1134,7 +1134,7 @@ public class FakeApi { * @param paramCallback None * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> 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 WebClientResponseException { + public Mono> 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 WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback).toEntity(localVarReturnType); } @@ -1161,7 +1161,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testEndpointParametersWithResponseSpec(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 WebClientResponseException { + public ResponseSpec testEndpointParametersWithResponseSpec(@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 WebClientResponseException { return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -1181,7 +1181,7 @@ public class FakeApi { * @param enumFormString Form parameter enum test (string) * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testEnumParametersRequestCreation(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws WebClientResponseException { + private ResponseSpec testEnumParametersRequestCreation(@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 WebClientResponseException { Object postBody = null; // create path and map variables final Map pathParams = new HashMap(); @@ -1236,7 +1236,7 @@ public class FakeApi { * @param enumFormString Form parameter enum test (string) * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws WebClientResponseException { + public Mono 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 WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString).bodyToMono(localVarReturnType); } @@ -1257,7 +1257,7 @@ public class FakeApi { * @param enumFormString Form parameter enum test (string) * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testEnumParametersWithHttpInfo(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws WebClientResponseException { + public Mono> 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 WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString).toEntity(localVarReturnType); } @@ -1279,7 +1279,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testEnumParametersWithResponseSpec(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws WebClientResponseException { + public ResponseSpec testEnumParametersWithResponseSpec(@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 WebClientResponseException { return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString); } @@ -1295,7 +1295,7 @@ public class FakeApi { * @param int64Group Integer in group parameters * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testGroupParametersRequestCreation(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws WebClientResponseException { + private ResponseSpec testGroupParametersRequestCreation(@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 WebClientResponseException { Object postBody = null; // verify the required parameter 'requiredStringGroup' is set if (requiredStringGroup == null) { @@ -1350,7 +1350,7 @@ public class FakeApi { * @param int64Group Integer in group parameters * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws WebClientResponseException { + public Mono 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 WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group).bodyToMono(localVarReturnType); } @@ -1367,7 +1367,7 @@ public class FakeApi { * @param int64Group Integer in group parameters * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws WebClientResponseException { + public Mono> 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 WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group).toEntity(localVarReturnType); } @@ -1385,7 +1385,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testGroupParametersWithResponseSpec(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws WebClientResponseException { + public ResponseSpec testGroupParametersWithResponseSpec(@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 WebClientResponseException { return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -1396,7 +1396,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testInlineAdditionalPropertiesRequestCreation(Map requestBody) throws WebClientResponseException { + private ResponseSpec testInlineAdditionalPropertiesRequestCreation(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { Object postBody = requestBody; // verify the required parameter 'requestBody' is set if (requestBody == null) { @@ -1430,7 +1430,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testInlineAdditionalProperties(Map requestBody) throws WebClientResponseException { + public Mono testInlineAdditionalProperties(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testInlineAdditionalPropertiesRequestCreation(requestBody).bodyToMono(localVarReturnType); } @@ -1442,7 +1442,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testInlineAdditionalPropertiesWithHttpInfo(Map requestBody) throws WebClientResponseException { + public Mono> testInlineAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testInlineAdditionalPropertiesRequestCreation(requestBody).toEntity(localVarReturnType); } @@ -1455,7 +1455,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(Map requestBody) throws WebClientResponseException { + public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { return testInlineAdditionalPropertiesRequestCreation(requestBody); } @@ -1466,7 +1466,7 @@ public class FakeApi { * @param testInlineFreeformAdditionalPropertiesRequest request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testInlineFreeformAdditionalPropertiesRequestCreation(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { + private ResponseSpec testInlineFreeformAdditionalPropertiesRequestCreation(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { Object postBody = testInlineFreeformAdditionalPropertiesRequest; // verify the required parameter 'testInlineFreeformAdditionalPropertiesRequest' is set if (testInlineFreeformAdditionalPropertiesRequest == null) { @@ -1500,7 +1500,7 @@ public class FakeApi { * @param testInlineFreeformAdditionalPropertiesRequest request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { + public Mono testInlineFreeformAdditionalProperties(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest).bodyToMono(localVarReturnType); } @@ -1512,7 +1512,7 @@ public class FakeApi { * @param testInlineFreeformAdditionalPropertiesRequest request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testInlineFreeformAdditionalPropertiesWithHttpInfo(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { + public Mono> testInlineFreeformAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest).toEntity(localVarReturnType); } @@ -1525,7 +1525,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testInlineFreeformAdditionalPropertiesWithResponseSpec(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { + public ResponseSpec testInlineFreeformAdditionalPropertiesWithResponseSpec(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest); } @@ -1537,7 +1537,7 @@ public class FakeApi { * @param param2 field2 * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testJsonFormDataRequestCreation(String param, String param2) throws WebClientResponseException { + private ResponseSpec testJsonFormDataRequestCreation(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'param' is set if (param == null) { @@ -1581,7 +1581,7 @@ public class FakeApi { * @param param2 field2 * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testJsonFormData(String param, String param2) throws WebClientResponseException { + public Mono testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testJsonFormDataRequestCreation(param, param2).bodyToMono(localVarReturnType); } @@ -1594,7 +1594,7 @@ public class FakeApi { * @param param2 field2 * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testJsonFormDataWithHttpInfo(String param, String param2) throws WebClientResponseException { + public Mono> testJsonFormDataWithHttpInfo(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testJsonFormDataRequestCreation(param, param2).toEntity(localVarReturnType); } @@ -1608,7 +1608,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testJsonFormDataWithResponseSpec(String param, String param2) throws WebClientResponseException { + public ResponseSpec testJsonFormDataWithResponseSpec(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws WebClientResponseException { return testJsonFormDataRequestCreation(param, param2); } @@ -1619,7 +1619,7 @@ public class FakeApi { * @param childWithNullable request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testNullableRequestCreation(ChildWithNullable childWithNullable) throws WebClientResponseException { + private ResponseSpec testNullableRequestCreation(@javax.annotation.Nonnull ChildWithNullable childWithNullable) throws WebClientResponseException { Object postBody = childWithNullable; // verify the required parameter 'childWithNullable' is set if (childWithNullable == null) { @@ -1653,7 +1653,7 @@ public class FakeApi { * @param childWithNullable request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testNullable(ChildWithNullable childWithNullable) throws WebClientResponseException { + public Mono testNullable(@javax.annotation.Nonnull ChildWithNullable childWithNullable) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testNullableRequestCreation(childWithNullable).bodyToMono(localVarReturnType); } @@ -1665,7 +1665,7 @@ public class FakeApi { * @param childWithNullable request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testNullableWithHttpInfo(ChildWithNullable childWithNullable) throws WebClientResponseException { + public Mono> testNullableWithHttpInfo(@javax.annotation.Nonnull ChildWithNullable childWithNullable) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testNullableRequestCreation(childWithNullable).toEntity(localVarReturnType); } @@ -1678,7 +1678,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testNullableWithResponseSpec(ChildWithNullable childWithNullable) throws WebClientResponseException { + public ResponseSpec testNullableWithResponseSpec(@javax.annotation.Nonnull ChildWithNullable childWithNullable) throws WebClientResponseException { return testNullableRequestCreation(childWithNullable); } @@ -1695,7 +1695,7 @@ public class FakeApi { * @param language The language parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testQueryParameterCollectionFormatRequestCreation(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws WebClientResponseException { + private ResponseSpec testQueryParameterCollectionFormatRequestCreation(@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 WebClientResponseException { Object postBody = null; // verify the required parameter 'pipe' is set if (pipe == null) { @@ -1761,7 +1761,7 @@ public class FakeApi { * @param language The language parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws WebClientResponseException { + public Mono 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 WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language).bodyToMono(localVarReturnType); } @@ -1779,7 +1779,7 @@ public class FakeApi { * @param language The language parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws WebClientResponseException { + public Mono> 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 WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language).toEntity(localVarReturnType); } @@ -1798,7 +1798,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws WebClientResponseException { + public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(@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 WebClientResponseException { return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language); } @@ -1809,7 +1809,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testStringMapReferenceRequestCreation(Map requestBody) throws WebClientResponseException { + private ResponseSpec testStringMapReferenceRequestCreation(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { Object postBody = requestBody; // verify the required parameter 'requestBody' is set if (requestBody == null) { @@ -1843,7 +1843,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testStringMapReference(Map requestBody) throws WebClientResponseException { + public Mono testStringMapReference(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testStringMapReferenceRequestCreation(requestBody).bodyToMono(localVarReturnType); } @@ -1855,7 +1855,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testStringMapReferenceWithHttpInfo(Map requestBody) throws WebClientResponseException { + public Mono> testStringMapReferenceWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testStringMapReferenceRequestCreation(requestBody).toEntity(localVarReturnType); } @@ -1868,7 +1868,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testStringMapReferenceWithResponseSpec(Map requestBody) throws WebClientResponseException { + public ResponseSpec testStringMapReferenceWithResponseSpec(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { return testStringMapReferenceRequestCreation(requestBody); } } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index bd7f7d9c833..e93df15c7a4 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -55,7 +55,7 @@ public class FakeClassnameTags123Api { * @return Client * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testClassnameRequestCreation(Client client) throws WebClientResponseException { + private ResponseSpec testClassnameRequestCreation(@javax.annotation.Nonnull Client client) throws WebClientResponseException { Object postBody = client; // verify the required parameter 'client' is set if (client == null) { @@ -92,7 +92,7 @@ public class FakeClassnameTags123Api { * @return Client * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testClassname(Client client) throws WebClientResponseException { + public Mono testClassname(@javax.annotation.Nonnull Client client) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testClassnameRequestCreation(client).bodyToMono(localVarReturnType); } @@ -105,7 +105,7 @@ public class FakeClassnameTags123Api { * @return ResponseEntity<Client> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testClassnameWithHttpInfo(Client client) throws WebClientResponseException { + public Mono> testClassnameWithHttpInfo(@javax.annotation.Nonnull Client client) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testClassnameRequestCreation(client).toEntity(localVarReturnType); } @@ -118,7 +118,7 @@ public class FakeClassnameTags123Api { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testClassnameWithResponseSpec(Client client) throws WebClientResponseException { + public ResponseSpec testClassnameWithResponseSpec(@javax.annotation.Nonnull Client client) throws WebClientResponseException { return testClassnameRequestCreation(client); } } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/PetApi.java index 0450ce58561..b750808cdd6 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/PetApi.java @@ -58,7 +58,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec addPetRequestCreation(Pet pet) throws WebClientResponseException { + private ResponseSpec addPetRequestCreation(@javax.annotation.Nonnull Pet pet) throws WebClientResponseException { Object postBody = pet; // verify the required parameter 'pet' is set if (pet == null) { @@ -93,7 +93,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono addPet(Pet pet) throws WebClientResponseException { + public Mono addPet(@javax.annotation.Nonnull Pet pet) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return addPetRequestCreation(pet).bodyToMono(localVarReturnType); } @@ -106,7 +106,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> addPetWithHttpInfo(Pet pet) throws WebClientResponseException { + public Mono> addPetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return addPetRequestCreation(pet).toEntity(localVarReturnType); } @@ -120,7 +120,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec addPetWithResponseSpec(Pet pet) throws WebClientResponseException { + public ResponseSpec addPetWithResponseSpec(@javax.annotation.Nonnull Pet pet) throws WebClientResponseException { return addPetRequestCreation(pet); } @@ -133,7 +133,7 @@ public class PetApi { * @param apiKey The apiKey parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec deletePetRequestCreation(Long petId, String apiKey) throws WebClientResponseException { + private ResponseSpec deletePetRequestCreation(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -172,7 +172,7 @@ public class PetApi { * @param apiKey The apiKey parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono deletePet(Long petId, String apiKey) throws WebClientResponseException { + public Mono deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return deletePetRequestCreation(petId, apiKey).bodyToMono(localVarReturnType); } @@ -186,7 +186,7 @@ public class PetApi { * @param apiKey The apiKey parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> deletePetWithHttpInfo(Long petId, String apiKey) throws WebClientResponseException { + public Mono> deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return deletePetRequestCreation(petId, apiKey).toEntity(localVarReturnType); } @@ -201,7 +201,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec deletePetWithResponseSpec(Long petId, String apiKey) throws WebClientResponseException { + public ResponseSpec deletePetWithResponseSpec(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws WebClientResponseException { return deletePetRequestCreation(petId, apiKey); } @@ -214,7 +214,7 @@ public class PetApi { * @return List<Pet> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec findPetsByStatusRequestCreation(List status) throws WebClientResponseException { + private ResponseSpec findPetsByStatusRequestCreation(@javax.annotation.Nonnull List status) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'status' is set if (status == null) { @@ -252,7 +252,7 @@ public class PetApi { * @return List<Pet> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public List findPetsByStatus(List status) throws WebClientResponseException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return findPetsByStatusRequestCreation(status).bodyToFlux(localVarReturnType).collectList().block(); } @@ -266,7 +266,7 @@ public class PetApi { * @return ResponseEntity<List<Pet>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity> findPetsByStatusWithHttpInfo(List status) throws WebClientResponseException { + public ResponseEntity> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return findPetsByStatusRequestCreation(status).toEntityList(localVarReturnType).block(); } @@ -280,7 +280,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec findPetsByStatusWithResponseSpec(List status) throws WebClientResponseException { + public ResponseSpec findPetsByStatusWithResponseSpec(@javax.annotation.Nonnull List status) throws WebClientResponseException { return findPetsByStatusRequestCreation(status); } @@ -295,7 +295,7 @@ public class PetApi { * @deprecated */ @Deprecated - private ResponseSpec findPetsByTagsRequestCreation(Set tags) throws WebClientResponseException { + private ResponseSpec findPetsByTagsRequestCreation(@javax.annotation.Nonnull Set tags) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'tags' is set if (tags == null) { @@ -333,7 +333,7 @@ public class PetApi { * @return Set<Pet> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Set findPetsByTags(Set tags) throws WebClientResponseException { + public Set findPetsByTags(@javax.annotation.Nonnull Set tags) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return findPetsByTagsRequestCreation(tags).bodyToFlux(localVarReturnType).collect(Collectors.toSet()).block(); } @@ -347,7 +347,7 @@ public class PetApi { * @return ResponseEntity<Set<Pet>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity> findPetsByTagsWithHttpInfo(Set tags) throws WebClientResponseException { + public ResponseEntity> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull Set tags) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return findPetsByTagsRequestCreation(tags).toEntityList(localVarReturnType).block(); } @@ -361,7 +361,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec findPetsByTagsWithResponseSpec(Set tags) throws WebClientResponseException { + public ResponseSpec findPetsByTagsWithResponseSpec(@javax.annotation.Nonnull Set tags) throws WebClientResponseException { return findPetsByTagsRequestCreation(tags); } @@ -375,7 +375,7 @@ public class PetApi { * @return Pet * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec getPetByIdRequestCreation(Long petId) throws WebClientResponseException { + private ResponseSpec getPetByIdRequestCreation(@javax.annotation.Nonnull Long petId) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -414,7 +414,7 @@ public class PetApi { * @return Pet * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Pet getPetById(Long petId) throws WebClientResponseException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return getPetByIdRequestCreation(petId).bodyToMono(localVarReturnType).block(); } @@ -429,7 +429,7 @@ public class PetApi { * @return ResponseEntity<Pet> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws WebClientResponseException { + public ResponseEntity getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return getPetByIdRequestCreation(petId).toEntity(localVarReturnType).block(); } @@ -444,7 +444,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec getPetByIdWithResponseSpec(Long petId) throws WebClientResponseException { + public ResponseSpec getPetByIdWithResponseSpec(@javax.annotation.Nonnull Long petId) throws WebClientResponseException { return getPetByIdRequestCreation(petId); } @@ -458,7 +458,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec updatePetRequestCreation(Pet pet) throws WebClientResponseException { + private ResponseSpec updatePetRequestCreation(@javax.annotation.Nonnull Pet pet) throws WebClientResponseException { Object postBody = pet; // verify the required parameter 'pet' is set if (pet == null) { @@ -495,7 +495,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public void updatePet(Pet pet) throws WebClientResponseException { + public void updatePet(@javax.annotation.Nonnull Pet pet) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; updatePetRequestCreation(pet).bodyToMono(localVarReturnType).block(); } @@ -510,7 +510,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity updatePetWithHttpInfo(Pet pet) throws WebClientResponseException { + public ResponseEntity updatePetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updatePetRequestCreation(pet).toEntity(localVarReturnType).block(); } @@ -526,7 +526,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec updatePetWithResponseSpec(Pet pet) throws WebClientResponseException { + public ResponseSpec updatePetWithResponseSpec(@javax.annotation.Nonnull Pet pet) throws WebClientResponseException { return updatePetRequestCreation(pet); } @@ -540,7 +540,7 @@ public class PetApi { * @param status Updated status of the pet * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec updatePetWithFormRequestCreation(Long petId, String name, String status) throws WebClientResponseException { + private ResponseSpec updatePetWithFormRequestCreation(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -584,7 +584,7 @@ public class PetApi { * @param status Updated status of the pet * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono updatePetWithForm(Long petId, String name, String status) throws WebClientResponseException { + public Mono updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updatePetWithFormRequestCreation(petId, name, status).bodyToMono(localVarReturnType); } @@ -599,7 +599,7 @@ public class PetApi { * @param status Updated status of the pet * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws WebClientResponseException { + public Mono> updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updatePetWithFormRequestCreation(petId, name, status).toEntity(localVarReturnType); } @@ -615,7 +615,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec updatePetWithFormWithResponseSpec(Long petId, String name, String status) throws WebClientResponseException { + public ResponseSpec updatePetWithFormWithResponseSpec(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws WebClientResponseException { return updatePetWithFormRequestCreation(petId, name, status); } @@ -629,7 +629,7 @@ public class PetApi { * @return ModelApiResponse * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec uploadFileRequestCreation(Long petId, String additionalMetadata, File _file) throws WebClientResponseException { + private ResponseSpec uploadFileRequestCreation(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -675,7 +675,7 @@ public class PetApi { * @return ModelApiResponse * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono uploadFile(Long petId, String additionalMetadata, File _file) throws WebClientResponseException { + public Mono uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return uploadFileRequestCreation(petId, additionalMetadata, _file).bodyToMono(localVarReturnType); } @@ -690,7 +690,7 @@ public class PetApi { * @return ResponseEntity<ModelApiResponse> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws WebClientResponseException { + public Mono> uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return uploadFileRequestCreation(petId, additionalMetadata, _file).toEntity(localVarReturnType); } @@ -705,7 +705,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec uploadFileWithResponseSpec(Long petId, String additionalMetadata, File _file) throws WebClientResponseException { + public ResponseSpec uploadFileWithResponseSpec(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws WebClientResponseException { return uploadFileRequestCreation(petId, additionalMetadata, _file); } @@ -719,7 +719,7 @@ public class PetApi { * @return ModelApiResponse * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec uploadFileWithRequiredFileRequestCreation(Long petId, File requiredFile, String additionalMetadata) throws WebClientResponseException { + private ResponseSpec uploadFileWithRequiredFileRequestCreation(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -769,7 +769,7 @@ public class PetApi { * @return ModelApiResponse * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws WebClientResponseException { + public Mono uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return uploadFileWithRequiredFileRequestCreation(petId, requiredFile, additionalMetadata).bodyToMono(localVarReturnType); } @@ -784,7 +784,7 @@ public class PetApi { * @return ResponseEntity<ModelApiResponse> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws WebClientResponseException { + public Mono> uploadFileWithRequiredFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return uploadFileWithRequiredFileRequestCreation(petId, requiredFile, additionalMetadata).toEntity(localVarReturnType); } @@ -799,7 +799,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec uploadFileWithRequiredFileWithResponseSpec(Long petId, File requiredFile, String additionalMetadata) throws WebClientResponseException { + public ResponseSpec uploadFileWithRequiredFileWithResponseSpec(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws WebClientResponseException { return uploadFileWithRequiredFileRequestCreation(petId, requiredFile, additionalMetadata); } } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java index 173f62da73f..e43bd4f9f03 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java @@ -55,7 +55,7 @@ public class StoreApi { * @param orderId ID of the order that needs to be deleted * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec deleteOrderRequestCreation(String orderId) throws WebClientResponseException { + private ResponseSpec deleteOrderRequestCreation(@javax.annotation.Nonnull String orderId) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'orderId' is set if (orderId == null) { @@ -90,7 +90,7 @@ public class StoreApi { * @param orderId ID of the order that needs to be deleted * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono deleteOrder(String orderId) throws WebClientResponseException { + public Mono deleteOrder(@javax.annotation.Nonnull String orderId) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return deleteOrderRequestCreation(orderId).bodyToMono(localVarReturnType); } @@ -103,7 +103,7 @@ public class StoreApi { * @param orderId ID of the order that needs to be deleted * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> deleteOrderWithHttpInfo(String orderId) throws WebClientResponseException { + public Mono> deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return deleteOrderRequestCreation(orderId).toEntity(localVarReturnType); } @@ -117,7 +117,7 @@ public class StoreApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec deleteOrderWithResponseSpec(String orderId) throws WebClientResponseException { + public ResponseSpec deleteOrderWithResponseSpec(@javax.annotation.Nonnull String orderId) throws WebClientResponseException { return deleteOrderRequestCreation(orderId); } @@ -196,7 +196,7 @@ public class StoreApi { * @return Order * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec getOrderByIdRequestCreation(Long orderId) throws WebClientResponseException { + private ResponseSpec getOrderByIdRequestCreation(@javax.annotation.Nonnull Long orderId) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'orderId' is set if (orderId == null) { @@ -235,7 +235,7 @@ public class StoreApi { * @return Order * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono getOrderById(Long orderId) throws WebClientResponseException { + public Mono getOrderById(@javax.annotation.Nonnull Long orderId) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return getOrderByIdRequestCreation(orderId).bodyToMono(localVarReturnType); } @@ -250,7 +250,7 @@ public class StoreApi { * @return ResponseEntity<Order> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> getOrderByIdWithHttpInfo(Long orderId) throws WebClientResponseException { + public Mono> getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return getOrderByIdRequestCreation(orderId).toEntity(localVarReturnType); } @@ -265,7 +265,7 @@ public class StoreApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec getOrderByIdWithResponseSpec(Long orderId) throws WebClientResponseException { + public ResponseSpec getOrderByIdWithResponseSpec(@javax.annotation.Nonnull Long orderId) throws WebClientResponseException { return getOrderByIdRequestCreation(orderId); } @@ -278,7 +278,7 @@ public class StoreApi { * @return Order * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec placeOrderRequestCreation(Order order) throws WebClientResponseException { + private ResponseSpec placeOrderRequestCreation(@javax.annotation.Nonnull Order order) throws WebClientResponseException { Object postBody = order; // verify the required parameter 'order' is set if (order == null) { @@ -316,7 +316,7 @@ public class StoreApi { * @return Order * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono placeOrder(Order order) throws WebClientResponseException { + public Mono placeOrder(@javax.annotation.Nonnull Order order) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return placeOrderRequestCreation(order).bodyToMono(localVarReturnType); } @@ -330,7 +330,7 @@ public class StoreApi { * @return ResponseEntity<Order> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> placeOrderWithHttpInfo(Order order) throws WebClientResponseException { + public Mono> placeOrderWithHttpInfo(@javax.annotation.Nonnull Order order) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return placeOrderRequestCreation(order).toEntity(localVarReturnType); } @@ -344,7 +344,7 @@ public class StoreApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec placeOrderWithResponseSpec(Order order) throws WebClientResponseException { + public ResponseSpec placeOrderWithResponseSpec(@javax.annotation.Nonnull Order order) throws WebClientResponseException { return placeOrderRequestCreation(order); } } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/UserApi.java index 105229ec922..1f3eabf59ab 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/UserApi.java @@ -55,7 +55,7 @@ public class UserApi { * @param user Created user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec createUserRequestCreation(User user) throws WebClientResponseException { + private ResponseSpec createUserRequestCreation(@javax.annotation.Nonnull User user) throws WebClientResponseException { Object postBody = user; // verify the required parameter 'user' is set if (user == null) { @@ -89,7 +89,7 @@ public class UserApi { * @param user Created user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono createUser(User user) throws WebClientResponseException { + public Mono createUser(@javax.annotation.Nonnull User user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createUserRequestCreation(user).bodyToMono(localVarReturnType); } @@ -101,7 +101,7 @@ public class UserApi { * @param user Created user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> createUserWithHttpInfo(User user) throws WebClientResponseException { + public Mono> createUserWithHttpInfo(@javax.annotation.Nonnull User user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createUserRequestCreation(user).toEntity(localVarReturnType); } @@ -114,7 +114,7 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec createUserWithResponseSpec(User user) throws WebClientResponseException { + public ResponseSpec createUserWithResponseSpec(@javax.annotation.Nonnull User user) throws WebClientResponseException { return createUserRequestCreation(user); } @@ -125,7 +125,7 @@ public class UserApi { * @param user List of user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec createUsersWithArrayInputRequestCreation(List user) throws WebClientResponseException { + private ResponseSpec createUsersWithArrayInputRequestCreation(@javax.annotation.Nonnull List user) throws WebClientResponseException { Object postBody = user; // verify the required parameter 'user' is set if (user == null) { @@ -159,7 +159,7 @@ public class UserApi { * @param user List of user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono createUsersWithArrayInput(List user) throws WebClientResponseException { + public Mono createUsersWithArrayInput(@javax.annotation.Nonnull List user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createUsersWithArrayInputRequestCreation(user).bodyToMono(localVarReturnType); } @@ -171,7 +171,7 @@ public class UserApi { * @param user List of user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> createUsersWithArrayInputWithHttpInfo(List user) throws WebClientResponseException { + public Mono> createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createUsersWithArrayInputRequestCreation(user).toEntity(localVarReturnType); } @@ -184,7 +184,7 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec createUsersWithArrayInputWithResponseSpec(List user) throws WebClientResponseException { + public ResponseSpec createUsersWithArrayInputWithResponseSpec(@javax.annotation.Nonnull List user) throws WebClientResponseException { return createUsersWithArrayInputRequestCreation(user); } @@ -195,7 +195,7 @@ public class UserApi { * @param user List of user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec createUsersWithListInputRequestCreation(List user) throws WebClientResponseException { + private ResponseSpec createUsersWithListInputRequestCreation(@javax.annotation.Nonnull List user) throws WebClientResponseException { Object postBody = user; // verify the required parameter 'user' is set if (user == null) { @@ -229,7 +229,7 @@ public class UserApi { * @param user List of user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono createUsersWithListInput(List user) throws WebClientResponseException { + public Mono createUsersWithListInput(@javax.annotation.Nonnull List user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createUsersWithListInputRequestCreation(user).bodyToMono(localVarReturnType); } @@ -241,7 +241,7 @@ public class UserApi { * @param user List of user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> createUsersWithListInputWithHttpInfo(List user) throws WebClientResponseException { + public Mono> createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createUsersWithListInputRequestCreation(user).toEntity(localVarReturnType); } @@ -254,7 +254,7 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec createUsersWithListInputWithResponseSpec(List user) throws WebClientResponseException { + public ResponseSpec createUsersWithListInputWithResponseSpec(@javax.annotation.Nonnull List user) throws WebClientResponseException { return createUsersWithListInputRequestCreation(user); } @@ -266,7 +266,7 @@ public class UserApi { * @param username The name that needs to be deleted * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec deleteUserRequestCreation(String username) throws WebClientResponseException { + private ResponseSpec deleteUserRequestCreation(@javax.annotation.Nonnull String username) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'username' is set if (username == null) { @@ -301,7 +301,7 @@ public class UserApi { * @param username The name that needs to be deleted * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono deleteUser(String username) throws WebClientResponseException { + public Mono deleteUser(@javax.annotation.Nonnull String username) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return deleteUserRequestCreation(username).bodyToMono(localVarReturnType); } @@ -314,7 +314,7 @@ public class UserApi { * @param username The name that needs to be deleted * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> deleteUserWithHttpInfo(String username) throws WebClientResponseException { + public Mono> deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return deleteUserRequestCreation(username).toEntity(localVarReturnType); } @@ -328,7 +328,7 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec deleteUserWithResponseSpec(String username) throws WebClientResponseException { + public ResponseSpec deleteUserWithResponseSpec(@javax.annotation.Nonnull String username) throws WebClientResponseException { return deleteUserRequestCreation(username); } @@ -342,7 +342,7 @@ public class UserApi { * @return User * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec getUserByNameRequestCreation(String username) throws WebClientResponseException { + private ResponseSpec getUserByNameRequestCreation(@javax.annotation.Nonnull String username) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'username' is set if (username == null) { @@ -381,7 +381,7 @@ public class UserApi { * @return User * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono getUserByName(String username) throws WebClientResponseException { + public Mono getUserByName(@javax.annotation.Nonnull String username) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return getUserByNameRequestCreation(username).bodyToMono(localVarReturnType); } @@ -396,7 +396,7 @@ public class UserApi { * @return ResponseEntity<User> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> getUserByNameWithHttpInfo(String username) throws WebClientResponseException { + public Mono> getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return getUserByNameRequestCreation(username).toEntity(localVarReturnType); } @@ -411,7 +411,7 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec getUserByNameWithResponseSpec(String username) throws WebClientResponseException { + public ResponseSpec getUserByNameWithResponseSpec(@javax.annotation.Nonnull String username) throws WebClientResponseException { return getUserByNameRequestCreation(username); } @@ -425,7 +425,7 @@ public class UserApi { * @return String * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec loginUserRequestCreation(String username, String password) throws WebClientResponseException { + private ResponseSpec loginUserRequestCreation(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'username' is set if (username == null) { @@ -469,7 +469,7 @@ public class UserApi { * @return String * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono loginUser(String username, String password) throws WebClientResponseException { + public Mono loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return loginUserRequestCreation(username, password).bodyToMono(localVarReturnType); } @@ -484,7 +484,7 @@ public class UserApi { * @return ResponseEntity<String> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> loginUserWithHttpInfo(String username, String password) throws WebClientResponseException { + public Mono> loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return loginUserRequestCreation(username, password).toEntity(localVarReturnType); } @@ -499,7 +499,7 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec loginUserWithResponseSpec(String username, String password) throws WebClientResponseException { + public ResponseSpec loginUserWithResponseSpec(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws WebClientResponseException { return loginUserRequestCreation(username, password); } @@ -572,7 +572,7 @@ public class UserApi { * @param user Updated user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec updateUserRequestCreation(String username, User user) throws WebClientResponseException { + private ResponseSpec updateUserRequestCreation(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws WebClientResponseException { Object postBody = user; // verify the required parameter 'username' is set if (username == null) { @@ -614,7 +614,7 @@ public class UserApi { * @param user Updated user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono updateUser(String username, User user) throws WebClientResponseException { + public Mono updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updateUserRequestCreation(username, user).bodyToMono(localVarReturnType); } @@ -628,7 +628,7 @@ public class UserApi { * @param user Updated user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> updateUserWithHttpInfo(String username, User user) throws WebClientResponseException { + public Mono> updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updateUserRequestCreation(username, user).toEntity(localVarReturnType); } @@ -643,7 +643,7 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec updateUserWithResponseSpec(String username, User user) throws WebClientResponseException { + public ResponseSpec updateUserWithResponseSpec(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws WebClientResponseException { return updateUserRequestCreation(username, user); } } diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 1912ed42e94..3a72c67be3f 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -55,7 +55,7 @@ public class AnotherFakeApi { * @return Client * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec call123testSpecialTagsRequestCreation(Client client) throws WebClientResponseException { + private ResponseSpec call123testSpecialTagsRequestCreation(@javax.annotation.Nonnull Client client) throws WebClientResponseException { Object postBody = client; // verify the required parameter 'client' is set if (client == null) { @@ -92,7 +92,7 @@ public class AnotherFakeApi { * @return Client * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono call123testSpecialTags(Client client) throws WebClientResponseException { + public Mono call123testSpecialTags(@javax.annotation.Nonnull Client client) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return call123testSpecialTagsRequestCreation(client).bodyToMono(localVarReturnType); } @@ -105,7 +105,7 @@ public class AnotherFakeApi { * @return ResponseEntity<Client> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> call123testSpecialTagsWithHttpInfo(Client client) throws WebClientResponseException { + public Mono> call123testSpecialTagsWithHttpInfo(@javax.annotation.Nonnull Client client) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return call123testSpecialTagsRequestCreation(client).toEntity(localVarReturnType); } @@ -118,7 +118,7 @@ public class AnotherFakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec call123testSpecialTagsWithResponseSpec(Client client) throws WebClientResponseException { + public ResponseSpec call123testSpecialTagsWithResponseSpec(@javax.annotation.Nonnull Client client) throws WebClientResponseException { return call123testSpecialTagsRequestCreation(client); } } diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeApi.java index bfa4b2cf91c..ef4faaa5ba1 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeApi.java @@ -192,38 +192,38 @@ public class FakeApi { } public class FakeHttpSignatureTestRequest { - private Pet pet; - private String query1; - private String header1; + private @javax.annotation.Nonnull Pet pet; + private @javax.annotation.Nullable String query1; + private @javax.annotation.Nullable String header1; public FakeHttpSignatureTestRequest() {} - public FakeHttpSignatureTestRequest(Pet pet, String query1, String header1) { + public FakeHttpSignatureTestRequest(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1) { this.pet = pet; this.query1 = query1; this.header1 = header1; } - public Pet pet() { + public @javax.annotation.Nonnull Pet pet() { return this.pet; } - public FakeHttpSignatureTestRequest pet(Pet pet) { + public FakeHttpSignatureTestRequest pet(@javax.annotation.Nonnull Pet pet) { this.pet = pet; return this; } - public String query1() { + public @javax.annotation.Nullable String query1() { return this.query1; } - public FakeHttpSignatureTestRequest query1(String query1) { + public FakeHttpSignatureTestRequest query1(@javax.annotation.Nullable String query1) { this.query1 = query1; return this; } - public String header1() { + public @javax.annotation.Nullable String header1() { return this.header1; } - public FakeHttpSignatureTestRequest header1(String header1) { + public FakeHttpSignatureTestRequest header1(@javax.annotation.Nullable String header1) { this.header1 = header1; return this; } @@ -274,7 +274,7 @@ public class FakeApi { * @param header1 header parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeHttpSignatureTestRequestCreation(Pet pet, String query1, String header1) throws WebClientResponseException { + private ResponseSpec fakeHttpSignatureTestRequestCreation(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1) throws WebClientResponseException { Object postBody = pet; // verify the required parameter 'pet' is set if (pet == null) { @@ -315,7 +315,7 @@ public class FakeApi { * @param header1 header parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakeHttpSignatureTest(Pet pet, String query1, String header1) throws WebClientResponseException { + public Mono fakeHttpSignatureTest(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeHttpSignatureTestRequestCreation(pet, query1, header1).bodyToMono(localVarReturnType); } @@ -329,7 +329,7 @@ public class FakeApi { * @param header1 header parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakeHttpSignatureTestWithHttpInfo(Pet pet, String query1, String header1) throws WebClientResponseException { + public Mono> fakeHttpSignatureTestWithHttpInfo(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeHttpSignatureTestRequestCreation(pet, query1, header1).toEntity(localVarReturnType); } @@ -344,7 +344,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeHttpSignatureTestWithResponseSpec(Pet pet, String query1, String header1) throws WebClientResponseException { + public ResponseSpec fakeHttpSignatureTestWithResponseSpec(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1) throws WebClientResponseException { return fakeHttpSignatureTestRequestCreation(pet, query1, header1); } @@ -356,7 +356,7 @@ public class FakeApi { * @return Boolean * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterBooleanSerializeRequestCreation(Boolean body) throws WebClientResponseException { + private ResponseSpec fakeOuterBooleanSerializeRequestCreation(@javax.annotation.Nullable Boolean body) throws WebClientResponseException { Object postBody = body; // create path and map variables final Map pathParams = new HashMap(); @@ -389,7 +389,7 @@ public class FakeApi { * @return Boolean * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakeOuterBooleanSerialize(Boolean body) throws WebClientResponseException { + public Mono fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterBooleanSerializeRequestCreation(body).bodyToMono(localVarReturnType); } @@ -402,7 +402,7 @@ public class FakeApi { * @return ResponseEntity<Boolean> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws WebClientResponseException { + public Mono> fakeOuterBooleanSerializeWithHttpInfo(@javax.annotation.Nullable Boolean body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterBooleanSerializeRequestCreation(body).toEntity(localVarReturnType); } @@ -415,7 +415,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(Boolean body) throws WebClientResponseException { + public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(@javax.annotation.Nullable Boolean body) throws WebClientResponseException { return fakeOuterBooleanSerializeRequestCreation(body); } @@ -427,7 +427,7 @@ public class FakeApi { * @return OuterComposite * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterCompositeSerializeRequestCreation(OuterComposite outerComposite) throws WebClientResponseException { + private ResponseSpec fakeOuterCompositeSerializeRequestCreation(@javax.annotation.Nullable OuterComposite outerComposite) throws WebClientResponseException { Object postBody = outerComposite; // create path and map variables final Map pathParams = new HashMap(); @@ -460,7 +460,7 @@ public class FakeApi { * @return OuterComposite * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakeOuterCompositeSerialize(OuterComposite outerComposite) throws WebClientResponseException { + public Mono fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite outerComposite) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterCompositeSerializeRequestCreation(outerComposite).bodyToMono(localVarReturnType); } @@ -473,7 +473,7 @@ public class FakeApi { * @return ResponseEntity<OuterComposite> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws WebClientResponseException { + public Mono> fakeOuterCompositeSerializeWithHttpInfo(@javax.annotation.Nullable OuterComposite outerComposite) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterCompositeSerializeRequestCreation(outerComposite).toEntity(localVarReturnType); } @@ -486,7 +486,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(OuterComposite outerComposite) throws WebClientResponseException { + public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(@javax.annotation.Nullable OuterComposite outerComposite) throws WebClientResponseException { return fakeOuterCompositeSerializeRequestCreation(outerComposite); } @@ -498,7 +498,7 @@ public class FakeApi { * @return BigDecimal * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterNumberSerializeRequestCreation(BigDecimal body) throws WebClientResponseException { + private ResponseSpec fakeOuterNumberSerializeRequestCreation(@javax.annotation.Nullable BigDecimal body) throws WebClientResponseException { Object postBody = body; // create path and map variables final Map pathParams = new HashMap(); @@ -531,7 +531,7 @@ public class FakeApi { * @return BigDecimal * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakeOuterNumberSerialize(BigDecimal body) throws WebClientResponseException { + public Mono fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterNumberSerializeRequestCreation(body).bodyToMono(localVarReturnType); } @@ -544,7 +544,7 @@ public class FakeApi { * @return ResponseEntity<BigDecimal> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws WebClientResponseException { + public Mono> fakeOuterNumberSerializeWithHttpInfo(@javax.annotation.Nullable BigDecimal body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterNumberSerializeRequestCreation(body).toEntity(localVarReturnType); } @@ -557,7 +557,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(BigDecimal body) throws WebClientResponseException { + public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(@javax.annotation.Nullable BigDecimal body) throws WebClientResponseException { return fakeOuterNumberSerializeRequestCreation(body); } @@ -569,7 +569,7 @@ public class FakeApi { * @return String * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterStringSerializeRequestCreation(String body) throws WebClientResponseException { + private ResponseSpec fakeOuterStringSerializeRequestCreation(@javax.annotation.Nullable String body) throws WebClientResponseException { Object postBody = body; // create path and map variables final Map pathParams = new HashMap(); @@ -602,7 +602,7 @@ public class FakeApi { * @return String * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakeOuterStringSerialize(String body) throws WebClientResponseException { + public Mono fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterStringSerializeRequestCreation(body).bodyToMono(localVarReturnType); } @@ -615,7 +615,7 @@ public class FakeApi { * @return ResponseEntity<String> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakeOuterStringSerializeWithHttpInfo(String body) throws WebClientResponseException { + public Mono> fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterStringSerializeRequestCreation(body).toEntity(localVarReturnType); } @@ -628,7 +628,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterStringSerializeWithResponseSpec(String body) throws WebClientResponseException { + public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@javax.annotation.Nullable String body) throws WebClientResponseException { return fakeOuterStringSerializeRequestCreation(body); } @@ -640,7 +640,7 @@ public class FakeApi { * @return OuterObjectWithEnumProperty * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakePropertyEnumIntegerSerializeRequestCreation(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { + private ResponseSpec fakePropertyEnumIntegerSerializeRequestCreation(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { Object postBody = outerObjectWithEnumProperty; // verify the required parameter 'outerObjectWithEnumProperty' is set if (outerObjectWithEnumProperty == null) { @@ -677,7 +677,7 @@ public class FakeApi { * @return OuterObjectWithEnumProperty * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { + public Mono fakePropertyEnumIntegerSerialize(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty).bodyToMono(localVarReturnType); } @@ -690,7 +690,7 @@ public class FakeApi { * @return ResponseEntity<OuterObjectWithEnumProperty> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakePropertyEnumIntegerSerializeWithHttpInfo(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { + public Mono> fakePropertyEnumIntegerSerializeWithHttpInfo(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty).toEntity(localVarReturnType); } @@ -703,7 +703,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { + public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty); } @@ -714,7 +714,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testAdditionalPropertiesReferenceRequestCreation(Map requestBody) throws WebClientResponseException { + private ResponseSpec testAdditionalPropertiesReferenceRequestCreation(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { Object postBody = requestBody; // verify the required parameter 'requestBody' is set if (requestBody == null) { @@ -748,7 +748,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testAdditionalPropertiesReference(Map requestBody) throws WebClientResponseException { + public Mono testAdditionalPropertiesReference(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testAdditionalPropertiesReferenceRequestCreation(requestBody).bodyToMono(localVarReturnType); } @@ -760,7 +760,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testAdditionalPropertiesReferenceWithHttpInfo(Map requestBody) throws WebClientResponseException { + public Mono> testAdditionalPropertiesReferenceWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testAdditionalPropertiesReferenceRequestCreation(requestBody).toEntity(localVarReturnType); } @@ -773,7 +773,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(Map requestBody) throws WebClientResponseException { + public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { return testAdditionalPropertiesReferenceRequestCreation(requestBody); } @@ -784,7 +784,7 @@ public class FakeApi { * @param body image to upload * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testBodyWithBinaryRequestCreation(File body) throws WebClientResponseException { + private ResponseSpec testBodyWithBinaryRequestCreation(@javax.annotation.Nullable File body) throws WebClientResponseException { Object postBody = body; // verify the required parameter 'body' is set if (body == null) { @@ -818,7 +818,7 @@ public class FakeApi { * @param body image to upload * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testBodyWithBinary(File body) throws WebClientResponseException { + public Mono testBodyWithBinary(@javax.annotation.Nullable File body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testBodyWithBinaryRequestCreation(body).bodyToMono(localVarReturnType); } @@ -830,7 +830,7 @@ public class FakeApi { * @param body image to upload * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testBodyWithBinaryWithHttpInfo(File body) throws WebClientResponseException { + public Mono> testBodyWithBinaryWithHttpInfo(@javax.annotation.Nullable File body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testBodyWithBinaryRequestCreation(body).toEntity(localVarReturnType); } @@ -843,7 +843,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testBodyWithBinaryWithResponseSpec(File body) throws WebClientResponseException { + public ResponseSpec testBodyWithBinaryWithResponseSpec(@javax.annotation.Nullable File body) throws WebClientResponseException { return testBodyWithBinaryRequestCreation(body); } @@ -854,7 +854,7 @@ public class FakeApi { * @param fileSchemaTestClass The fileSchemaTestClass parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testBodyWithFileSchemaRequestCreation(FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { + private ResponseSpec testBodyWithFileSchemaRequestCreation(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { Object postBody = fileSchemaTestClass; // verify the required parameter 'fileSchemaTestClass' is set if (fileSchemaTestClass == null) { @@ -888,7 +888,7 @@ public class FakeApi { * @param fileSchemaTestClass The fileSchemaTestClass parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { + public Mono testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass).bodyToMono(localVarReturnType); } @@ -900,7 +900,7 @@ public class FakeApi { * @param fileSchemaTestClass The fileSchemaTestClass parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { + public Mono> testBodyWithFileSchemaWithHttpInfo(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass).toEntity(localVarReturnType); } @@ -913,33 +913,33 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testBodyWithFileSchemaWithResponseSpec(FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { + public ResponseSpec testBodyWithFileSchemaWithResponseSpec(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass); } public class TestBodyWithQueryParamsRequest { - private String query; - private User user; + private @javax.annotation.Nonnull String query; + private @javax.annotation.Nonnull User user; public TestBodyWithQueryParamsRequest() {} - public TestBodyWithQueryParamsRequest(String query, User user) { + public TestBodyWithQueryParamsRequest(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) { this.query = query; this.user = user; } - public String query() { + public @javax.annotation.Nonnull String query() { return this.query; } - public TestBodyWithQueryParamsRequest query(String query) { + public TestBodyWithQueryParamsRequest query(@javax.annotation.Nonnull String query) { this.query = query; return this; } - public User user() { + public @javax.annotation.Nonnull User user() { return this.user; } - public TestBodyWithQueryParamsRequest user(User user) { + public TestBodyWithQueryParamsRequest user(@javax.annotation.Nonnull User user) { this.user = user; return this; } @@ -989,7 +989,7 @@ public class FakeApi { * @param user The user parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testBodyWithQueryParamsRequestCreation(String query, User user) throws WebClientResponseException { + private ResponseSpec testBodyWithQueryParamsRequestCreation(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws WebClientResponseException { Object postBody = user; // verify the required parameter 'query' is set if (query == null) { @@ -1030,7 +1030,7 @@ public class FakeApi { * @param user The user parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testBodyWithQueryParams(String query, User user) throws WebClientResponseException { + public Mono testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testBodyWithQueryParamsRequestCreation(query, user).bodyToMono(localVarReturnType); } @@ -1043,7 +1043,7 @@ public class FakeApi { * @param user The user parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testBodyWithQueryParamsWithHttpInfo(String query, User user) throws WebClientResponseException { + public Mono> testBodyWithQueryParamsWithHttpInfo(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testBodyWithQueryParamsRequestCreation(query, user).toEntity(localVarReturnType); } @@ -1057,7 +1057,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testBodyWithQueryParamsWithResponseSpec(String query, User user) throws WebClientResponseException { + public ResponseSpec testBodyWithQueryParamsWithResponseSpec(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws WebClientResponseException { return testBodyWithQueryParamsRequestCreation(query, user); } @@ -1069,7 +1069,7 @@ public class FakeApi { * @return Client * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testClientModelRequestCreation(Client client) throws WebClientResponseException { + private ResponseSpec testClientModelRequestCreation(@javax.annotation.Nonnull Client client) throws WebClientResponseException { Object postBody = client; // verify the required parameter 'client' is set if (client == null) { @@ -1106,7 +1106,7 @@ public class FakeApi { * @return Client * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testClientModel(Client client) throws WebClientResponseException { + public Mono testClientModel(@javax.annotation.Nonnull Client client) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testClientModelRequestCreation(client).bodyToMono(localVarReturnType); } @@ -1119,7 +1119,7 @@ public class FakeApi { * @return ResponseEntity<Client> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testClientModelWithHttpInfo(Client client) throws WebClientResponseException { + public Mono> testClientModelWithHttpInfo(@javax.annotation.Nonnull Client client) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testClientModelRequestCreation(client).toEntity(localVarReturnType); } @@ -1132,29 +1132,29 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testClientModelWithResponseSpec(Client client) throws WebClientResponseException { + public ResponseSpec testClientModelWithResponseSpec(@javax.annotation.Nonnull Client client) throws WebClientResponseException { return testClientModelRequestCreation(client); } public class TestEndpointParametersRequest { - private BigDecimal number; - private Double _double; - private String patternWithoutDelimiter; - private byte[] _byte; - private Integer integer; - private Integer int32; - private Long int64; - private Float _float; - private String string; - private File binary; - private LocalDate date; - private OffsetDateTime dateTime; - private String password; - private String paramCallback; + private @javax.annotation.Nonnull BigDecimal number; + private @javax.annotation.Nonnull Double _double; + private @javax.annotation.Nonnull String patternWithoutDelimiter; + private @javax.annotation.Nonnull byte[] _byte; + private @javax.annotation.Nullable Integer integer; + private @javax.annotation.Nullable Integer int32; + private @javax.annotation.Nullable Long int64; + private @javax.annotation.Nullable Float _float; + private @javax.annotation.Nullable String string; + private @javax.annotation.Nullable File binary; + private @javax.annotation.Nullable LocalDate date; + private @javax.annotation.Nullable OffsetDateTime dateTime; + private @javax.annotation.Nullable String password; + private @javax.annotation.Nullable String paramCallback; public TestEndpointParametersRequest() {} - public TestEndpointParametersRequest(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) { + public TestEndpointParametersRequest(@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) { this.number = number; this._double = _double; this.patternWithoutDelimiter = patternWithoutDelimiter; @@ -1171,114 +1171,114 @@ public class FakeApi { this.paramCallback = paramCallback; } - public BigDecimal number() { + public @javax.annotation.Nonnull BigDecimal number() { return this.number; } - public TestEndpointParametersRequest number(BigDecimal number) { + public TestEndpointParametersRequest number(@javax.annotation.Nonnull BigDecimal number) { this.number = number; return this; } - public Double _double() { + public @javax.annotation.Nonnull Double _double() { return this._double; } - public TestEndpointParametersRequest _double(Double _double) { + public TestEndpointParametersRequest _double(@javax.annotation.Nonnull Double _double) { this._double = _double; return this; } - public String patternWithoutDelimiter() { + public @javax.annotation.Nonnull String patternWithoutDelimiter() { return this.patternWithoutDelimiter; } - public TestEndpointParametersRequest patternWithoutDelimiter(String patternWithoutDelimiter) { + public TestEndpointParametersRequest patternWithoutDelimiter(@javax.annotation.Nonnull String patternWithoutDelimiter) { this.patternWithoutDelimiter = patternWithoutDelimiter; return this; } - public byte[] _byte() { + public @javax.annotation.Nonnull byte[] _byte() { return this._byte; } - public TestEndpointParametersRequest _byte(byte[] _byte) { + public TestEndpointParametersRequest _byte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; } - public Integer integer() { + public @javax.annotation.Nullable Integer integer() { return this.integer; } - public TestEndpointParametersRequest integer(Integer integer) { + public TestEndpointParametersRequest integer(@javax.annotation.Nullable Integer integer) { this.integer = integer; return this; } - public Integer int32() { + public @javax.annotation.Nullable Integer int32() { return this.int32; } - public TestEndpointParametersRequest int32(Integer int32) { + public TestEndpointParametersRequest int32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; return this; } - public Long int64() { + public @javax.annotation.Nullable Long int64() { return this.int64; } - public TestEndpointParametersRequest int64(Long int64) { + public TestEndpointParametersRequest int64(@javax.annotation.Nullable Long int64) { this.int64 = int64; return this; } - public Float _float() { + public @javax.annotation.Nullable Float _float() { return this._float; } - public TestEndpointParametersRequest _float(Float _float) { + public TestEndpointParametersRequest _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; } - public String string() { + public @javax.annotation.Nullable String string() { return this.string; } - public TestEndpointParametersRequest string(String string) { + public TestEndpointParametersRequest string(@javax.annotation.Nullable String string) { this.string = string; return this; } - public File binary() { + public @javax.annotation.Nullable File binary() { return this.binary; } - public TestEndpointParametersRequest binary(File binary) { + public TestEndpointParametersRequest binary(@javax.annotation.Nullable File binary) { this.binary = binary; return this; } - public LocalDate date() { + public @javax.annotation.Nullable LocalDate date() { return this.date; } - public TestEndpointParametersRequest date(LocalDate date) { + public TestEndpointParametersRequest date(@javax.annotation.Nullable LocalDate date) { this.date = date; return this; } - public OffsetDateTime dateTime() { + public @javax.annotation.Nullable OffsetDateTime dateTime() { return this.dateTime; } - public TestEndpointParametersRequest dateTime(OffsetDateTime dateTime) { + public TestEndpointParametersRequest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } - public String password() { + public @javax.annotation.Nullable String password() { return this.password; } - public TestEndpointParametersRequest password(String password) { + public TestEndpointParametersRequest password(@javax.annotation.Nullable String password) { this.password = password; return this; } - public String paramCallback() { + public @javax.annotation.Nullable String paramCallback() { return this.paramCallback; } - public TestEndpointParametersRequest paramCallback(String paramCallback) { + public TestEndpointParametersRequest paramCallback(@javax.annotation.Nullable String paramCallback) { this.paramCallback = paramCallback; return this; } @@ -1344,7 +1344,7 @@ public class FakeApi { * @param paramCallback None * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testEndpointParametersRequestCreation(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 WebClientResponseException { + private ResponseSpec testEndpointParametersRequestCreation(@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 WebClientResponseException { Object postBody = null; // verify the required parameter 'number' is set if (number == null) { @@ -1433,7 +1433,7 @@ public class FakeApi { * @param paramCallback None * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono 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 WebClientResponseException { + public Mono 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 WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback).bodyToMono(localVarReturnType); } @@ -1459,7 +1459,7 @@ public class FakeApi { * @param paramCallback None * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> 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 WebClientResponseException { + public Mono> 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 WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback).toEntity(localVarReturnType); } @@ -1486,24 +1486,24 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testEndpointParametersWithResponseSpec(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 WebClientResponseException { + public ResponseSpec testEndpointParametersWithResponseSpec(@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 WebClientResponseException { return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } public class TestEnumParametersRequest { - private List enumHeaderStringArray; - private String enumHeaderString; - private List enumQueryStringArray; - private String enumQueryString; - private Integer enumQueryInteger; - private Double enumQueryDouble; - private List enumQueryModelArray; - private List enumFormStringArray; - private String enumFormString; + private @javax.annotation.Nullable List enumHeaderStringArray; + private @javax.annotation.Nullable String enumHeaderString; + private @javax.annotation.Nullable List enumQueryStringArray; + private @javax.annotation.Nullable String enumQueryString; + private @javax.annotation.Nullable Integer enumQueryInteger; + private @javax.annotation.Nullable Double enumQueryDouble; + private @javax.annotation.Nullable List enumQueryModelArray; + private @javax.annotation.Nullable List enumFormStringArray; + private @javax.annotation.Nullable String enumFormString; public TestEnumParametersRequest() {} - public TestEnumParametersRequest(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) { + public TestEnumParametersRequest(@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) { this.enumHeaderStringArray = enumHeaderStringArray; this.enumHeaderString = enumHeaderString; this.enumQueryStringArray = enumQueryStringArray; @@ -1515,74 +1515,74 @@ public class FakeApi { this.enumFormString = enumFormString; } - public List enumHeaderStringArray() { + public @javax.annotation.Nullable List enumHeaderStringArray() { return this.enumHeaderStringArray; } - public TestEnumParametersRequest enumHeaderStringArray(List enumHeaderStringArray) { + public TestEnumParametersRequest enumHeaderStringArray(@javax.annotation.Nullable List enumHeaderStringArray) { this.enumHeaderStringArray = enumHeaderStringArray; return this; } - public String enumHeaderString() { + public @javax.annotation.Nullable String enumHeaderString() { return this.enumHeaderString; } - public TestEnumParametersRequest enumHeaderString(String enumHeaderString) { + public TestEnumParametersRequest enumHeaderString(@javax.annotation.Nullable String enumHeaderString) { this.enumHeaderString = enumHeaderString; return this; } - public List enumQueryStringArray() { + public @javax.annotation.Nullable List enumQueryStringArray() { return this.enumQueryStringArray; } - public TestEnumParametersRequest enumQueryStringArray(List enumQueryStringArray) { + public TestEnumParametersRequest enumQueryStringArray(@javax.annotation.Nullable List enumQueryStringArray) { this.enumQueryStringArray = enumQueryStringArray; return this; } - public String enumQueryString() { + public @javax.annotation.Nullable String enumQueryString() { return this.enumQueryString; } - public TestEnumParametersRequest enumQueryString(String enumQueryString) { + public TestEnumParametersRequest enumQueryString(@javax.annotation.Nullable String enumQueryString) { this.enumQueryString = enumQueryString; return this; } - public Integer enumQueryInteger() { + public @javax.annotation.Nullable Integer enumQueryInteger() { return this.enumQueryInteger; } - public TestEnumParametersRequest enumQueryInteger(Integer enumQueryInteger) { + public TestEnumParametersRequest enumQueryInteger(@javax.annotation.Nullable Integer enumQueryInteger) { this.enumQueryInteger = enumQueryInteger; return this; } - public Double enumQueryDouble() { + public @javax.annotation.Nullable Double enumQueryDouble() { return this.enumQueryDouble; } - public TestEnumParametersRequest enumQueryDouble(Double enumQueryDouble) { + public TestEnumParametersRequest enumQueryDouble(@javax.annotation.Nullable Double enumQueryDouble) { this.enumQueryDouble = enumQueryDouble; return this; } - public List enumQueryModelArray() { + public @javax.annotation.Nullable List enumQueryModelArray() { return this.enumQueryModelArray; } - public TestEnumParametersRequest enumQueryModelArray(List enumQueryModelArray) { + public TestEnumParametersRequest enumQueryModelArray(@javax.annotation.Nullable List enumQueryModelArray) { this.enumQueryModelArray = enumQueryModelArray; return this; } - public List enumFormStringArray() { + public @javax.annotation.Nullable List enumFormStringArray() { return this.enumFormStringArray; } - public TestEnumParametersRequest enumFormStringArray(List enumFormStringArray) { + public TestEnumParametersRequest enumFormStringArray(@javax.annotation.Nullable List enumFormStringArray) { this.enumFormStringArray = enumFormStringArray; return this; } - public String enumFormString() { + public @javax.annotation.Nullable String enumFormString() { return this.enumFormString; } - public TestEnumParametersRequest enumFormString(String enumFormString) { + public TestEnumParametersRequest enumFormString(@javax.annotation.Nullable String enumFormString) { this.enumFormString = enumFormString; return this; } @@ -1643,7 +1643,7 @@ public class FakeApi { * @param enumFormString Form parameter enum test (string) * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testEnumParametersRequestCreation(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws WebClientResponseException { + private ResponseSpec testEnumParametersRequestCreation(@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 WebClientResponseException { Object postBody = null; // create path and map variables final Map pathParams = new HashMap(); @@ -1698,7 +1698,7 @@ public class FakeApi { * @param enumFormString Form parameter enum test (string) * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws WebClientResponseException { + public Mono 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 WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString).bodyToMono(localVarReturnType); } @@ -1719,7 +1719,7 @@ public class FakeApi { * @param enumFormString Form parameter enum test (string) * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testEnumParametersWithHttpInfo(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws WebClientResponseException { + public Mono> 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 WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString).toEntity(localVarReturnType); } @@ -1741,21 +1741,21 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testEnumParametersWithResponseSpec(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws WebClientResponseException { + public ResponseSpec testEnumParametersWithResponseSpec(@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 WebClientResponseException { return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString); } public class TestGroupParametersRequest { - private Integer requiredStringGroup; - private Boolean requiredBooleanGroup; - private Long requiredInt64Group; - private Integer stringGroup; - private Boolean booleanGroup; - private Long int64Group; + private @javax.annotation.Nonnull Integer requiredStringGroup; + private @javax.annotation.Nonnull Boolean requiredBooleanGroup; + private @javax.annotation.Nonnull Long requiredInt64Group; + private @javax.annotation.Nullable Integer stringGroup; + private @javax.annotation.Nullable Boolean booleanGroup; + private @javax.annotation.Nullable Long int64Group; public TestGroupParametersRequest() {} - public TestGroupParametersRequest(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) { + public TestGroupParametersRequest(@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) { this.requiredStringGroup = requiredStringGroup; this.requiredBooleanGroup = requiredBooleanGroup; this.requiredInt64Group = requiredInt64Group; @@ -1764,50 +1764,50 @@ public class FakeApi { this.int64Group = int64Group; } - public Integer requiredStringGroup() { + public @javax.annotation.Nonnull Integer requiredStringGroup() { return this.requiredStringGroup; } - public TestGroupParametersRequest requiredStringGroup(Integer requiredStringGroup) { + public TestGroupParametersRequest requiredStringGroup(@javax.annotation.Nonnull Integer requiredStringGroup) { this.requiredStringGroup = requiredStringGroup; return this; } - public Boolean requiredBooleanGroup() { + public @javax.annotation.Nonnull Boolean requiredBooleanGroup() { return this.requiredBooleanGroup; } - public TestGroupParametersRequest requiredBooleanGroup(Boolean requiredBooleanGroup) { + public TestGroupParametersRequest requiredBooleanGroup(@javax.annotation.Nonnull Boolean requiredBooleanGroup) { this.requiredBooleanGroup = requiredBooleanGroup; return this; } - public Long requiredInt64Group() { + public @javax.annotation.Nonnull Long requiredInt64Group() { return this.requiredInt64Group; } - public TestGroupParametersRequest requiredInt64Group(Long requiredInt64Group) { + public TestGroupParametersRequest requiredInt64Group(@javax.annotation.Nonnull Long requiredInt64Group) { this.requiredInt64Group = requiredInt64Group; return this; } - public Integer stringGroup() { + public @javax.annotation.Nullable Integer stringGroup() { return this.stringGroup; } - public TestGroupParametersRequest stringGroup(Integer stringGroup) { + public TestGroupParametersRequest stringGroup(@javax.annotation.Nullable Integer stringGroup) { this.stringGroup = stringGroup; return this; } - public Boolean booleanGroup() { + public @javax.annotation.Nullable Boolean booleanGroup() { return this.booleanGroup; } - public TestGroupParametersRequest booleanGroup(Boolean booleanGroup) { + public TestGroupParametersRequest booleanGroup(@javax.annotation.Nullable Boolean booleanGroup) { this.booleanGroup = booleanGroup; return this; } - public Long int64Group() { + public @javax.annotation.Nullable Long int64Group() { return this.int64Group; } - public TestGroupParametersRequest int64Group(Long int64Group) { + public TestGroupParametersRequest int64Group(@javax.annotation.Nullable Long int64Group) { this.int64Group = int64Group; return this; } @@ -1861,7 +1861,7 @@ public class FakeApi { * @param int64Group Integer in group parameters * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testGroupParametersRequestCreation(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws WebClientResponseException { + private ResponseSpec testGroupParametersRequestCreation(@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 WebClientResponseException { Object postBody = null; // verify the required parameter 'requiredStringGroup' is set if (requiredStringGroup == null) { @@ -1916,7 +1916,7 @@ public class FakeApi { * @param int64Group Integer in group parameters * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws WebClientResponseException { + public Mono 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 WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group).bodyToMono(localVarReturnType); } @@ -1933,7 +1933,7 @@ public class FakeApi { * @param int64Group Integer in group parameters * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws WebClientResponseException { + public Mono> 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 WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group).toEntity(localVarReturnType); } @@ -1951,7 +1951,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testGroupParametersWithResponseSpec(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws WebClientResponseException { + public ResponseSpec testGroupParametersWithResponseSpec(@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 WebClientResponseException { return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -1962,7 +1962,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testInlineAdditionalPropertiesRequestCreation(Map requestBody) throws WebClientResponseException { + private ResponseSpec testInlineAdditionalPropertiesRequestCreation(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { Object postBody = requestBody; // verify the required parameter 'requestBody' is set if (requestBody == null) { @@ -1996,7 +1996,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testInlineAdditionalProperties(Map requestBody) throws WebClientResponseException { + public Mono testInlineAdditionalProperties(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testInlineAdditionalPropertiesRequestCreation(requestBody).bodyToMono(localVarReturnType); } @@ -2008,7 +2008,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testInlineAdditionalPropertiesWithHttpInfo(Map requestBody) throws WebClientResponseException { + public Mono> testInlineAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testInlineAdditionalPropertiesRequestCreation(requestBody).toEntity(localVarReturnType); } @@ -2021,7 +2021,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(Map requestBody) throws WebClientResponseException { + public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { return testInlineAdditionalPropertiesRequestCreation(requestBody); } @@ -2032,7 +2032,7 @@ public class FakeApi { * @param testInlineFreeformAdditionalPropertiesRequest request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testInlineFreeformAdditionalPropertiesRequestCreation(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { + private ResponseSpec testInlineFreeformAdditionalPropertiesRequestCreation(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { Object postBody = testInlineFreeformAdditionalPropertiesRequest; // verify the required parameter 'testInlineFreeformAdditionalPropertiesRequest' is set if (testInlineFreeformAdditionalPropertiesRequest == null) { @@ -2066,7 +2066,7 @@ public class FakeApi { * @param testInlineFreeformAdditionalPropertiesRequest request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { + public Mono testInlineFreeformAdditionalProperties(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest).bodyToMono(localVarReturnType); } @@ -2078,7 +2078,7 @@ public class FakeApi { * @param testInlineFreeformAdditionalPropertiesRequest request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testInlineFreeformAdditionalPropertiesWithHttpInfo(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { + public Mono> testInlineFreeformAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest).toEntity(localVarReturnType); } @@ -2091,33 +2091,33 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testInlineFreeformAdditionalPropertiesWithResponseSpec(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { + public ResponseSpec testInlineFreeformAdditionalPropertiesWithResponseSpec(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest); } public class TestJsonFormDataRequest { - private String param; - private String param2; + private @javax.annotation.Nonnull String param; + private @javax.annotation.Nonnull String param2; public TestJsonFormDataRequest() {} - public TestJsonFormDataRequest(String param, String param2) { + public TestJsonFormDataRequest(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) { this.param = param; this.param2 = param2; } - public String param() { + public @javax.annotation.Nonnull String param() { return this.param; } - public TestJsonFormDataRequest param(String param) { + public TestJsonFormDataRequest param(@javax.annotation.Nonnull String param) { this.param = param; return this; } - public String param2() { + public @javax.annotation.Nonnull String param2() { return this.param2; } - public TestJsonFormDataRequest param2(String param2) { + public TestJsonFormDataRequest param2(@javax.annotation.Nonnull String param2) { this.param2 = param2; return this; } @@ -2167,7 +2167,7 @@ public class FakeApi { * @param param2 field2 * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testJsonFormDataRequestCreation(String param, String param2) throws WebClientResponseException { + private ResponseSpec testJsonFormDataRequestCreation(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'param' is set if (param == null) { @@ -2211,7 +2211,7 @@ public class FakeApi { * @param param2 field2 * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testJsonFormData(String param, String param2) throws WebClientResponseException { + public Mono testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testJsonFormDataRequestCreation(param, param2).bodyToMono(localVarReturnType); } @@ -2224,7 +2224,7 @@ public class FakeApi { * @param param2 field2 * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testJsonFormDataWithHttpInfo(String param, String param2) throws WebClientResponseException { + public Mono> testJsonFormDataWithHttpInfo(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testJsonFormDataRequestCreation(param, param2).toEntity(localVarReturnType); } @@ -2238,7 +2238,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testJsonFormDataWithResponseSpec(String param, String param2) throws WebClientResponseException { + public ResponseSpec testJsonFormDataWithResponseSpec(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws WebClientResponseException { return testJsonFormDataRequestCreation(param, param2); } @@ -2249,7 +2249,7 @@ public class FakeApi { * @param childWithNullable request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testNullableRequestCreation(ChildWithNullable childWithNullable) throws WebClientResponseException { + private ResponseSpec testNullableRequestCreation(@javax.annotation.Nonnull ChildWithNullable childWithNullable) throws WebClientResponseException { Object postBody = childWithNullable; // verify the required parameter 'childWithNullable' is set if (childWithNullable == null) { @@ -2283,7 +2283,7 @@ public class FakeApi { * @param childWithNullable request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testNullable(ChildWithNullable childWithNullable) throws WebClientResponseException { + public Mono testNullable(@javax.annotation.Nonnull ChildWithNullable childWithNullable) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testNullableRequestCreation(childWithNullable).bodyToMono(localVarReturnType); } @@ -2295,7 +2295,7 @@ public class FakeApi { * @param childWithNullable request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testNullableWithHttpInfo(ChildWithNullable childWithNullable) throws WebClientResponseException { + public Mono> testNullableWithHttpInfo(@javax.annotation.Nonnull ChildWithNullable childWithNullable) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testNullableRequestCreation(childWithNullable).toEntity(localVarReturnType); } @@ -2308,22 +2308,22 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testNullableWithResponseSpec(ChildWithNullable childWithNullable) throws WebClientResponseException { + public ResponseSpec testNullableWithResponseSpec(@javax.annotation.Nonnull ChildWithNullable childWithNullable) throws WebClientResponseException { return testNullableRequestCreation(childWithNullable); } public class TestQueryParameterCollectionFormatRequest { - private List pipe; - private List ioutil; - private List http; - private List url; - private List context; - private String allowEmpty; - private Map language; + private @javax.annotation.Nonnull List pipe; + private @javax.annotation.Nonnull List ioutil; + private @javax.annotation.Nonnull List http; + private @javax.annotation.Nonnull List url; + private @javax.annotation.Nonnull List context; + private @javax.annotation.Nonnull String allowEmpty; + private @javax.annotation.Nullable Map language; public TestQueryParameterCollectionFormatRequest() {} - public TestQueryParameterCollectionFormatRequest(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) { + public TestQueryParameterCollectionFormatRequest(@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) { this.pipe = pipe; this.ioutil = ioutil; this.http = http; @@ -2333,58 +2333,58 @@ public class FakeApi { this.language = language; } - public List pipe() { + public @javax.annotation.Nonnull List pipe() { return this.pipe; } - public TestQueryParameterCollectionFormatRequest pipe(List pipe) { + public TestQueryParameterCollectionFormatRequest pipe(@javax.annotation.Nonnull List pipe) { this.pipe = pipe; return this; } - public List ioutil() { + public @javax.annotation.Nonnull List ioutil() { return this.ioutil; } - public TestQueryParameterCollectionFormatRequest ioutil(List ioutil) { + public TestQueryParameterCollectionFormatRequest ioutil(@javax.annotation.Nonnull List ioutil) { this.ioutil = ioutil; return this; } - public List http() { + public @javax.annotation.Nonnull List http() { return this.http; } - public TestQueryParameterCollectionFormatRequest http(List http) { + public TestQueryParameterCollectionFormatRequest http(@javax.annotation.Nonnull List http) { this.http = http; return this; } - public List url() { + public @javax.annotation.Nonnull List url() { return this.url; } - public TestQueryParameterCollectionFormatRequest url(List url) { + public TestQueryParameterCollectionFormatRequest url(@javax.annotation.Nonnull List url) { this.url = url; return this; } - public List context() { + public @javax.annotation.Nonnull List context() { return this.context; } - public TestQueryParameterCollectionFormatRequest context(List context) { + public TestQueryParameterCollectionFormatRequest context(@javax.annotation.Nonnull List context) { this.context = context; return this; } - public String allowEmpty() { + public @javax.annotation.Nonnull String allowEmpty() { return this.allowEmpty; } - public TestQueryParameterCollectionFormatRequest allowEmpty(String allowEmpty) { + public TestQueryParameterCollectionFormatRequest allowEmpty(@javax.annotation.Nonnull String allowEmpty) { this.allowEmpty = allowEmpty; return this; } - public Map language() { + public @javax.annotation.Nullable Map language() { return this.language; } - public TestQueryParameterCollectionFormatRequest language(Map language) { + public TestQueryParameterCollectionFormatRequest language(@javax.annotation.Nullable Map language) { this.language = language; return this; } @@ -2439,7 +2439,7 @@ public class FakeApi { * @param language The language parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testQueryParameterCollectionFormatRequestCreation(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws WebClientResponseException { + private ResponseSpec testQueryParameterCollectionFormatRequestCreation(@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 WebClientResponseException { Object postBody = null; // verify the required parameter 'pipe' is set if (pipe == null) { @@ -2505,7 +2505,7 @@ public class FakeApi { * @param language The language parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws WebClientResponseException { + public Mono 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 WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language).bodyToMono(localVarReturnType); } @@ -2523,7 +2523,7 @@ public class FakeApi { * @param language The language parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws WebClientResponseException { + public Mono> 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 WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language).toEntity(localVarReturnType); } @@ -2542,7 +2542,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws WebClientResponseException { + public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(@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 WebClientResponseException { return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language); } @@ -2553,7 +2553,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testStringMapReferenceRequestCreation(Map requestBody) throws WebClientResponseException { + private ResponseSpec testStringMapReferenceRequestCreation(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { Object postBody = requestBody; // verify the required parameter 'requestBody' is set if (requestBody == null) { @@ -2587,7 +2587,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testStringMapReference(Map requestBody) throws WebClientResponseException { + public Mono testStringMapReference(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testStringMapReferenceRequestCreation(requestBody).bodyToMono(localVarReturnType); } @@ -2599,7 +2599,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testStringMapReferenceWithHttpInfo(Map requestBody) throws WebClientResponseException { + public Mono> testStringMapReferenceWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testStringMapReferenceRequestCreation(requestBody).toEntity(localVarReturnType); } @@ -2612,7 +2612,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testStringMapReferenceWithResponseSpec(Map requestBody) throws WebClientResponseException { + public ResponseSpec testStringMapReferenceWithResponseSpec(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { return testStringMapReferenceRequestCreation(requestBody); } } diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index bd7f7d9c833..e93df15c7a4 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -55,7 +55,7 @@ public class FakeClassnameTags123Api { * @return Client * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testClassnameRequestCreation(Client client) throws WebClientResponseException { + private ResponseSpec testClassnameRequestCreation(@javax.annotation.Nonnull Client client) throws WebClientResponseException { Object postBody = client; // verify the required parameter 'client' is set if (client == null) { @@ -92,7 +92,7 @@ public class FakeClassnameTags123Api { * @return Client * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testClassname(Client client) throws WebClientResponseException { + public Mono testClassname(@javax.annotation.Nonnull Client client) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testClassnameRequestCreation(client).bodyToMono(localVarReturnType); } @@ -105,7 +105,7 @@ public class FakeClassnameTags123Api { * @return ResponseEntity<Client> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testClassnameWithHttpInfo(Client client) throws WebClientResponseException { + public Mono> testClassnameWithHttpInfo(@javax.annotation.Nonnull Client client) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testClassnameRequestCreation(client).toEntity(localVarReturnType); } @@ -118,7 +118,7 @@ public class FakeClassnameTags123Api { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testClassnameWithResponseSpec(Client client) throws WebClientResponseException { + public ResponseSpec testClassnameWithResponseSpec(@javax.annotation.Nonnull Client client) throws WebClientResponseException { return testClassnameRequestCreation(client); } } diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/PetApi.java index 760c0f12ce5..9b8de0fad7f 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/PetApi.java @@ -58,7 +58,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec addPetRequestCreation(Pet pet) throws WebClientResponseException { + private ResponseSpec addPetRequestCreation(@javax.annotation.Nonnull Pet pet) throws WebClientResponseException { Object postBody = pet; // verify the required parameter 'pet' is set if (pet == null) { @@ -93,7 +93,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono addPet(Pet pet) throws WebClientResponseException { + public Mono addPet(@javax.annotation.Nonnull Pet pet) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return addPetRequestCreation(pet).bodyToMono(localVarReturnType); } @@ -106,7 +106,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> addPetWithHttpInfo(Pet pet) throws WebClientResponseException { + public Mono> addPetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return addPetRequestCreation(pet).toEntity(localVarReturnType); } @@ -120,33 +120,33 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec addPetWithResponseSpec(Pet pet) throws WebClientResponseException { + public ResponseSpec addPetWithResponseSpec(@javax.annotation.Nonnull Pet pet) throws WebClientResponseException { return addPetRequestCreation(pet); } public class DeletePetRequest { - private Long petId; - private String apiKey; + private @javax.annotation.Nonnull Long petId; + private @javax.annotation.Nullable String apiKey; public DeletePetRequest() {} - public DeletePetRequest(Long petId, String apiKey) { + public DeletePetRequest(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) { this.petId = petId; this.apiKey = apiKey; } - public Long petId() { + public @javax.annotation.Nonnull Long petId() { return this.petId; } - public DeletePetRequest petId(Long petId) { + public DeletePetRequest petId(@javax.annotation.Nonnull Long petId) { this.petId = petId; return this; } - public String apiKey() { + public @javax.annotation.Nullable String apiKey() { return this.apiKey; } - public DeletePetRequest apiKey(String apiKey) { + public DeletePetRequest apiKey(@javax.annotation.Nullable String apiKey) { this.apiKey = apiKey; return this; } @@ -200,7 +200,7 @@ public class PetApi { * @param apiKey The apiKey parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec deletePetRequestCreation(Long petId, String apiKey) throws WebClientResponseException { + private ResponseSpec deletePetRequestCreation(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -239,7 +239,7 @@ public class PetApi { * @param apiKey The apiKey parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono deletePet(Long petId, String apiKey) throws WebClientResponseException { + public Mono deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return deletePetRequestCreation(petId, apiKey).bodyToMono(localVarReturnType); } @@ -253,7 +253,7 @@ public class PetApi { * @param apiKey The apiKey parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> deletePetWithHttpInfo(Long petId, String apiKey) throws WebClientResponseException { + public Mono> deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return deletePetRequestCreation(petId, apiKey).toEntity(localVarReturnType); } @@ -268,7 +268,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec deletePetWithResponseSpec(Long petId, String apiKey) throws WebClientResponseException { + public ResponseSpec deletePetWithResponseSpec(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws WebClientResponseException { return deletePetRequestCreation(petId, apiKey); } @@ -281,7 +281,7 @@ public class PetApi { * @return List<Pet> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec findPetsByStatusRequestCreation(List status) throws WebClientResponseException { + private ResponseSpec findPetsByStatusRequestCreation(@javax.annotation.Nonnull List status) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'status' is set if (status == null) { @@ -319,7 +319,7 @@ public class PetApi { * @return List<Pet> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public List findPetsByStatus(List status) throws WebClientResponseException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return findPetsByStatusRequestCreation(status).bodyToFlux(localVarReturnType).collectList().block(); } @@ -333,7 +333,7 @@ public class PetApi { * @return ResponseEntity<List<Pet>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity> findPetsByStatusWithHttpInfo(List status) throws WebClientResponseException { + public ResponseEntity> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return findPetsByStatusRequestCreation(status).toEntityList(localVarReturnType).block(); } @@ -347,7 +347,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec findPetsByStatusWithResponseSpec(List status) throws WebClientResponseException { + public ResponseSpec findPetsByStatusWithResponseSpec(@javax.annotation.Nonnull List status) throws WebClientResponseException { return findPetsByStatusRequestCreation(status); } @@ -362,7 +362,7 @@ public class PetApi { * @deprecated */ @Deprecated - private ResponseSpec findPetsByTagsRequestCreation(Set tags) throws WebClientResponseException { + private ResponseSpec findPetsByTagsRequestCreation(@javax.annotation.Nonnull Set tags) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'tags' is set if (tags == null) { @@ -400,7 +400,7 @@ public class PetApi { * @return Set<Pet> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Set findPetsByTags(Set tags) throws WebClientResponseException { + public Set findPetsByTags(@javax.annotation.Nonnull Set tags) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return findPetsByTagsRequestCreation(tags).bodyToFlux(localVarReturnType).collect(Collectors.toSet()).block(); } @@ -414,7 +414,7 @@ public class PetApi { * @return ResponseEntity<Set<Pet>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity> findPetsByTagsWithHttpInfo(Set tags) throws WebClientResponseException { + public ResponseEntity> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull Set tags) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return findPetsByTagsRequestCreation(tags).toEntityList(localVarReturnType).block(); } @@ -428,7 +428,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec findPetsByTagsWithResponseSpec(Set tags) throws WebClientResponseException { + public ResponseSpec findPetsByTagsWithResponseSpec(@javax.annotation.Nonnull Set tags) throws WebClientResponseException { return findPetsByTagsRequestCreation(tags); } @@ -442,7 +442,7 @@ public class PetApi { * @return Pet * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec getPetByIdRequestCreation(Long petId) throws WebClientResponseException { + private ResponseSpec getPetByIdRequestCreation(@javax.annotation.Nonnull Long petId) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -481,7 +481,7 @@ public class PetApi { * @return Pet * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Pet getPetById(Long petId) throws WebClientResponseException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return getPetByIdRequestCreation(petId).bodyToMono(localVarReturnType).block(); } @@ -496,7 +496,7 @@ public class PetApi { * @return ResponseEntity<Pet> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws WebClientResponseException { + public ResponseEntity getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return getPetByIdRequestCreation(petId).toEntity(localVarReturnType).block(); } @@ -511,7 +511,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec getPetByIdWithResponseSpec(Long petId) throws WebClientResponseException { + public ResponseSpec getPetByIdWithResponseSpec(@javax.annotation.Nonnull Long petId) throws WebClientResponseException { return getPetByIdRequestCreation(petId); } @@ -525,7 +525,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec updatePetRequestCreation(Pet pet) throws WebClientResponseException { + private ResponseSpec updatePetRequestCreation(@javax.annotation.Nonnull Pet pet) throws WebClientResponseException { Object postBody = pet; // verify the required parameter 'pet' is set if (pet == null) { @@ -562,7 +562,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public void updatePet(Pet pet) throws WebClientResponseException { + public void updatePet(@javax.annotation.Nonnull Pet pet) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; updatePetRequestCreation(pet).bodyToMono(localVarReturnType).block(); } @@ -577,7 +577,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity updatePetWithHttpInfo(Pet pet) throws WebClientResponseException { + public ResponseEntity updatePetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updatePetRequestCreation(pet).toEntity(localVarReturnType).block(); } @@ -593,43 +593,43 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec updatePetWithResponseSpec(Pet pet) throws WebClientResponseException { + public ResponseSpec updatePetWithResponseSpec(@javax.annotation.Nonnull Pet pet) throws WebClientResponseException { return updatePetRequestCreation(pet); } public class UpdatePetWithFormRequest { - private Long petId; - private String name; - private String status; + private @javax.annotation.Nonnull Long petId; + private @javax.annotation.Nullable String name; + private @javax.annotation.Nullable String status; public UpdatePetWithFormRequest() {} - public UpdatePetWithFormRequest(Long petId, String name, String status) { + public UpdatePetWithFormRequest(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) { this.petId = petId; this.name = name; this.status = status; } - public Long petId() { + public @javax.annotation.Nonnull Long petId() { return this.petId; } - public UpdatePetWithFormRequest petId(Long petId) { + public UpdatePetWithFormRequest petId(@javax.annotation.Nonnull Long petId) { this.petId = petId; return this; } - public String name() { + public @javax.annotation.Nullable String name() { return this.name; } - public UpdatePetWithFormRequest name(String name) { + public UpdatePetWithFormRequest name(@javax.annotation.Nullable String name) { this.name = name; return this; } - public String status() { + public @javax.annotation.Nullable String status() { return this.status; } - public UpdatePetWithFormRequest status(String status) { + public UpdatePetWithFormRequest status(@javax.annotation.Nullable String status) { this.status = status; return this; } @@ -684,7 +684,7 @@ public class PetApi { * @param status Updated status of the pet * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec updatePetWithFormRequestCreation(Long petId, String name, String status) throws WebClientResponseException { + private ResponseSpec updatePetWithFormRequestCreation(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -728,7 +728,7 @@ public class PetApi { * @param status Updated status of the pet * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono updatePetWithForm(Long petId, String name, String status) throws WebClientResponseException { + public Mono updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updatePetWithFormRequestCreation(petId, name, status).bodyToMono(localVarReturnType); } @@ -743,7 +743,7 @@ public class PetApi { * @param status Updated status of the pet * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws WebClientResponseException { + public Mono> updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updatePetWithFormRequestCreation(petId, name, status).toEntity(localVarReturnType); } @@ -759,43 +759,43 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec updatePetWithFormWithResponseSpec(Long petId, String name, String status) throws WebClientResponseException { + public ResponseSpec updatePetWithFormWithResponseSpec(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws WebClientResponseException { return updatePetWithFormRequestCreation(petId, name, status); } public class UploadFileRequest { - private Long petId; - private String additionalMetadata; - private File _file; + private @javax.annotation.Nonnull Long petId; + private @javax.annotation.Nullable String additionalMetadata; + private @javax.annotation.Nullable File _file; public UploadFileRequest() {} - public UploadFileRequest(Long petId, String additionalMetadata, File _file) { + public UploadFileRequest(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) { this.petId = petId; this.additionalMetadata = additionalMetadata; this._file = _file; } - public Long petId() { + public @javax.annotation.Nonnull Long petId() { return this.petId; } - public UploadFileRequest petId(Long petId) { + public UploadFileRequest petId(@javax.annotation.Nonnull Long petId) { this.petId = petId; return this; } - public String additionalMetadata() { + public @javax.annotation.Nullable String additionalMetadata() { return this.additionalMetadata; } - public UploadFileRequest additionalMetadata(String additionalMetadata) { + public UploadFileRequest additionalMetadata(@javax.annotation.Nullable String additionalMetadata) { this.additionalMetadata = additionalMetadata; return this; } - public File _file() { + public @javax.annotation.Nullable File _file() { return this._file; } - public UploadFileRequest _file(File _file) { + public UploadFileRequest _file(@javax.annotation.Nullable File _file) { this._file = _file; return this; } @@ -849,7 +849,7 @@ public class PetApi { * @return ModelApiResponse * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec uploadFileRequestCreation(Long petId, String additionalMetadata, File _file) throws WebClientResponseException { + private ResponseSpec uploadFileRequestCreation(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -895,7 +895,7 @@ public class PetApi { * @return ModelApiResponse * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono uploadFile(Long petId, String additionalMetadata, File _file) throws WebClientResponseException { + public Mono uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return uploadFileRequestCreation(petId, additionalMetadata, _file).bodyToMono(localVarReturnType); } @@ -910,7 +910,7 @@ public class PetApi { * @return ResponseEntity<ModelApiResponse> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws WebClientResponseException { + public Mono> uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return uploadFileRequestCreation(petId, additionalMetadata, _file).toEntity(localVarReturnType); } @@ -925,43 +925,43 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec uploadFileWithResponseSpec(Long petId, String additionalMetadata, File _file) throws WebClientResponseException { + public ResponseSpec uploadFileWithResponseSpec(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws WebClientResponseException { return uploadFileRequestCreation(petId, additionalMetadata, _file); } public class UploadFileWithRequiredFileRequest { - private Long petId; - private File requiredFile; - private String additionalMetadata; + private @javax.annotation.Nonnull Long petId; + private @javax.annotation.Nonnull File requiredFile; + private @javax.annotation.Nullable String additionalMetadata; public UploadFileWithRequiredFileRequest() {} - public UploadFileWithRequiredFileRequest(Long petId, File requiredFile, String additionalMetadata) { + public UploadFileWithRequiredFileRequest(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) { this.petId = petId; this.requiredFile = requiredFile; this.additionalMetadata = additionalMetadata; } - public Long petId() { + public @javax.annotation.Nonnull Long petId() { return this.petId; } - public UploadFileWithRequiredFileRequest petId(Long petId) { + public UploadFileWithRequiredFileRequest petId(@javax.annotation.Nonnull Long petId) { this.petId = petId; return this; } - public File requiredFile() { + public @javax.annotation.Nonnull File requiredFile() { return this.requiredFile; } - public UploadFileWithRequiredFileRequest requiredFile(File requiredFile) { + public UploadFileWithRequiredFileRequest requiredFile(@javax.annotation.Nonnull File requiredFile) { this.requiredFile = requiredFile; return this; } - public String additionalMetadata() { + public @javax.annotation.Nullable String additionalMetadata() { return this.additionalMetadata; } - public UploadFileWithRequiredFileRequest additionalMetadata(String additionalMetadata) { + public UploadFileWithRequiredFileRequest additionalMetadata(@javax.annotation.Nullable String additionalMetadata) { this.additionalMetadata = additionalMetadata; return this; } @@ -1015,7 +1015,7 @@ public class PetApi { * @return ModelApiResponse * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec uploadFileWithRequiredFileRequestCreation(Long petId, File requiredFile, String additionalMetadata) throws WebClientResponseException { + private ResponseSpec uploadFileWithRequiredFileRequestCreation(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -1065,7 +1065,7 @@ public class PetApi { * @return ModelApiResponse * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws WebClientResponseException { + public Mono uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return uploadFileWithRequiredFileRequestCreation(petId, requiredFile, additionalMetadata).bodyToMono(localVarReturnType); } @@ -1080,7 +1080,7 @@ public class PetApi { * @return ResponseEntity<ModelApiResponse> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws WebClientResponseException { + public Mono> uploadFileWithRequiredFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return uploadFileWithRequiredFileRequestCreation(petId, requiredFile, additionalMetadata).toEntity(localVarReturnType); } @@ -1095,7 +1095,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec uploadFileWithRequiredFileWithResponseSpec(Long petId, File requiredFile, String additionalMetadata) throws WebClientResponseException { + public ResponseSpec uploadFileWithRequiredFileWithResponseSpec(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws WebClientResponseException { return uploadFileWithRequiredFileRequestCreation(petId, requiredFile, additionalMetadata); } } diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/StoreApi.java index 173f62da73f..e43bd4f9f03 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/StoreApi.java @@ -55,7 +55,7 @@ public class StoreApi { * @param orderId ID of the order that needs to be deleted * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec deleteOrderRequestCreation(String orderId) throws WebClientResponseException { + private ResponseSpec deleteOrderRequestCreation(@javax.annotation.Nonnull String orderId) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'orderId' is set if (orderId == null) { @@ -90,7 +90,7 @@ public class StoreApi { * @param orderId ID of the order that needs to be deleted * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono deleteOrder(String orderId) throws WebClientResponseException { + public Mono deleteOrder(@javax.annotation.Nonnull String orderId) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return deleteOrderRequestCreation(orderId).bodyToMono(localVarReturnType); } @@ -103,7 +103,7 @@ public class StoreApi { * @param orderId ID of the order that needs to be deleted * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> deleteOrderWithHttpInfo(String orderId) throws WebClientResponseException { + public Mono> deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return deleteOrderRequestCreation(orderId).toEntity(localVarReturnType); } @@ -117,7 +117,7 @@ public class StoreApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec deleteOrderWithResponseSpec(String orderId) throws WebClientResponseException { + public ResponseSpec deleteOrderWithResponseSpec(@javax.annotation.Nonnull String orderId) throws WebClientResponseException { return deleteOrderRequestCreation(orderId); } @@ -196,7 +196,7 @@ public class StoreApi { * @return Order * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec getOrderByIdRequestCreation(Long orderId) throws WebClientResponseException { + private ResponseSpec getOrderByIdRequestCreation(@javax.annotation.Nonnull Long orderId) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'orderId' is set if (orderId == null) { @@ -235,7 +235,7 @@ public class StoreApi { * @return Order * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono getOrderById(Long orderId) throws WebClientResponseException { + public Mono getOrderById(@javax.annotation.Nonnull Long orderId) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return getOrderByIdRequestCreation(orderId).bodyToMono(localVarReturnType); } @@ -250,7 +250,7 @@ public class StoreApi { * @return ResponseEntity<Order> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> getOrderByIdWithHttpInfo(Long orderId) throws WebClientResponseException { + public Mono> getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return getOrderByIdRequestCreation(orderId).toEntity(localVarReturnType); } @@ -265,7 +265,7 @@ public class StoreApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec getOrderByIdWithResponseSpec(Long orderId) throws WebClientResponseException { + public ResponseSpec getOrderByIdWithResponseSpec(@javax.annotation.Nonnull Long orderId) throws WebClientResponseException { return getOrderByIdRequestCreation(orderId); } @@ -278,7 +278,7 @@ public class StoreApi { * @return Order * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec placeOrderRequestCreation(Order order) throws WebClientResponseException { + private ResponseSpec placeOrderRequestCreation(@javax.annotation.Nonnull Order order) throws WebClientResponseException { Object postBody = order; // verify the required parameter 'order' is set if (order == null) { @@ -316,7 +316,7 @@ public class StoreApi { * @return Order * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono placeOrder(Order order) throws WebClientResponseException { + public Mono placeOrder(@javax.annotation.Nonnull Order order) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return placeOrderRequestCreation(order).bodyToMono(localVarReturnType); } @@ -330,7 +330,7 @@ public class StoreApi { * @return ResponseEntity<Order> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> placeOrderWithHttpInfo(Order order) throws WebClientResponseException { + public Mono> placeOrderWithHttpInfo(@javax.annotation.Nonnull Order order) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return placeOrderRequestCreation(order).toEntity(localVarReturnType); } @@ -344,7 +344,7 @@ public class StoreApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec placeOrderWithResponseSpec(Order order) throws WebClientResponseException { + public ResponseSpec placeOrderWithResponseSpec(@javax.annotation.Nonnull Order order) throws WebClientResponseException { return placeOrderRequestCreation(order); } } diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/UserApi.java index 81b1939a595..d1b9fd1be80 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/UserApi.java @@ -55,7 +55,7 @@ public class UserApi { * @param user Created user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec createUserRequestCreation(User user) throws WebClientResponseException { + private ResponseSpec createUserRequestCreation(@javax.annotation.Nonnull User user) throws WebClientResponseException { Object postBody = user; // verify the required parameter 'user' is set if (user == null) { @@ -89,7 +89,7 @@ public class UserApi { * @param user Created user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono createUser(User user) throws WebClientResponseException { + public Mono createUser(@javax.annotation.Nonnull User user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createUserRequestCreation(user).bodyToMono(localVarReturnType); } @@ -101,7 +101,7 @@ public class UserApi { * @param user Created user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> createUserWithHttpInfo(User user) throws WebClientResponseException { + public Mono> createUserWithHttpInfo(@javax.annotation.Nonnull User user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createUserRequestCreation(user).toEntity(localVarReturnType); } @@ -114,7 +114,7 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec createUserWithResponseSpec(User user) throws WebClientResponseException { + public ResponseSpec createUserWithResponseSpec(@javax.annotation.Nonnull User user) throws WebClientResponseException { return createUserRequestCreation(user); } @@ -125,7 +125,7 @@ public class UserApi { * @param user List of user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec createUsersWithArrayInputRequestCreation(List user) throws WebClientResponseException { + private ResponseSpec createUsersWithArrayInputRequestCreation(@javax.annotation.Nonnull List user) throws WebClientResponseException { Object postBody = user; // verify the required parameter 'user' is set if (user == null) { @@ -159,7 +159,7 @@ public class UserApi { * @param user List of user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono createUsersWithArrayInput(List user) throws WebClientResponseException { + public Mono createUsersWithArrayInput(@javax.annotation.Nonnull List user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createUsersWithArrayInputRequestCreation(user).bodyToMono(localVarReturnType); } @@ -171,7 +171,7 @@ public class UserApi { * @param user List of user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> createUsersWithArrayInputWithHttpInfo(List user) throws WebClientResponseException { + public Mono> createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createUsersWithArrayInputRequestCreation(user).toEntity(localVarReturnType); } @@ -184,7 +184,7 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec createUsersWithArrayInputWithResponseSpec(List user) throws WebClientResponseException { + public ResponseSpec createUsersWithArrayInputWithResponseSpec(@javax.annotation.Nonnull List user) throws WebClientResponseException { return createUsersWithArrayInputRequestCreation(user); } @@ -195,7 +195,7 @@ public class UserApi { * @param user List of user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec createUsersWithListInputRequestCreation(List user) throws WebClientResponseException { + private ResponseSpec createUsersWithListInputRequestCreation(@javax.annotation.Nonnull List user) throws WebClientResponseException { Object postBody = user; // verify the required parameter 'user' is set if (user == null) { @@ -229,7 +229,7 @@ public class UserApi { * @param user List of user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono createUsersWithListInput(List user) throws WebClientResponseException { + public Mono createUsersWithListInput(@javax.annotation.Nonnull List user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createUsersWithListInputRequestCreation(user).bodyToMono(localVarReturnType); } @@ -241,7 +241,7 @@ public class UserApi { * @param user List of user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> createUsersWithListInputWithHttpInfo(List user) throws WebClientResponseException { + public Mono> createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createUsersWithListInputRequestCreation(user).toEntity(localVarReturnType); } @@ -254,7 +254,7 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec createUsersWithListInputWithResponseSpec(List user) throws WebClientResponseException { + public ResponseSpec createUsersWithListInputWithResponseSpec(@javax.annotation.Nonnull List user) throws WebClientResponseException { return createUsersWithListInputRequestCreation(user); } @@ -266,7 +266,7 @@ public class UserApi { * @param username The name that needs to be deleted * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec deleteUserRequestCreation(String username) throws WebClientResponseException { + private ResponseSpec deleteUserRequestCreation(@javax.annotation.Nonnull String username) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'username' is set if (username == null) { @@ -301,7 +301,7 @@ public class UserApi { * @param username The name that needs to be deleted * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono deleteUser(String username) throws WebClientResponseException { + public Mono deleteUser(@javax.annotation.Nonnull String username) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return deleteUserRequestCreation(username).bodyToMono(localVarReturnType); } @@ -314,7 +314,7 @@ public class UserApi { * @param username The name that needs to be deleted * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> deleteUserWithHttpInfo(String username) throws WebClientResponseException { + public Mono> deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return deleteUserRequestCreation(username).toEntity(localVarReturnType); } @@ -328,7 +328,7 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec deleteUserWithResponseSpec(String username) throws WebClientResponseException { + public ResponseSpec deleteUserWithResponseSpec(@javax.annotation.Nonnull String username) throws WebClientResponseException { return deleteUserRequestCreation(username); } @@ -342,7 +342,7 @@ public class UserApi { * @return User * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec getUserByNameRequestCreation(String username) throws WebClientResponseException { + private ResponseSpec getUserByNameRequestCreation(@javax.annotation.Nonnull String username) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'username' is set if (username == null) { @@ -381,7 +381,7 @@ public class UserApi { * @return User * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono getUserByName(String username) throws WebClientResponseException { + public Mono getUserByName(@javax.annotation.Nonnull String username) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return getUserByNameRequestCreation(username).bodyToMono(localVarReturnType); } @@ -396,7 +396,7 @@ public class UserApi { * @return ResponseEntity<User> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> getUserByNameWithHttpInfo(String username) throws WebClientResponseException { + public Mono> getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return getUserByNameRequestCreation(username).toEntity(localVarReturnType); } @@ -411,33 +411,33 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec getUserByNameWithResponseSpec(String username) throws WebClientResponseException { + public ResponseSpec getUserByNameWithResponseSpec(@javax.annotation.Nonnull String username) throws WebClientResponseException { return getUserByNameRequestCreation(username); } public class LoginUserRequest { - private String username; - private String password; + private @javax.annotation.Nonnull String username; + private @javax.annotation.Nonnull String password; public LoginUserRequest() {} - public LoginUserRequest(String username, String password) { + public LoginUserRequest(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) { this.username = username; this.password = password; } - public String username() { + public @javax.annotation.Nonnull String username() { return this.username; } - public LoginUserRequest username(String username) { + public LoginUserRequest username(@javax.annotation.Nonnull String username) { this.username = username; return this; } - public String password() { + public @javax.annotation.Nonnull String password() { return this.password; } - public LoginUserRequest password(String password) { + public LoginUserRequest password(@javax.annotation.Nonnull String password) { this.password = password; return this; } @@ -494,7 +494,7 @@ public class UserApi { * @return String * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec loginUserRequestCreation(String username, String password) throws WebClientResponseException { + private ResponseSpec loginUserRequestCreation(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'username' is set if (username == null) { @@ -538,7 +538,7 @@ public class UserApi { * @return String * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono loginUser(String username, String password) throws WebClientResponseException { + public Mono loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return loginUserRequestCreation(username, password).bodyToMono(localVarReturnType); } @@ -553,7 +553,7 @@ public class UserApi { * @return ResponseEntity<String> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> loginUserWithHttpInfo(String username, String password) throws WebClientResponseException { + public Mono> loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return loginUserRequestCreation(username, password).toEntity(localVarReturnType); } @@ -568,7 +568,7 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec loginUserWithResponseSpec(String username, String password) throws WebClientResponseException { + public ResponseSpec loginUserWithResponseSpec(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws WebClientResponseException { return loginUserRequestCreation(username, password); } @@ -633,28 +633,28 @@ public class UserApi { } public class UpdateUserRequest { - private String username; - private User user; + private @javax.annotation.Nonnull String username; + private @javax.annotation.Nonnull User user; public UpdateUserRequest() {} - public UpdateUserRequest(String username, User user) { + public UpdateUserRequest(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) { this.username = username; this.user = user; } - public String username() { + public @javax.annotation.Nonnull String username() { return this.username; } - public UpdateUserRequest username(String username) { + public UpdateUserRequest username(@javax.annotation.Nonnull String username) { this.username = username; return this; } - public User user() { + public @javax.annotation.Nonnull User user() { return this.user; } - public UpdateUserRequest user(User user) { + public UpdateUserRequest user(@javax.annotation.Nonnull User user) { this.user = user; return this; } @@ -708,7 +708,7 @@ public class UserApi { * @param user Updated user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec updateUserRequestCreation(String username, User user) throws WebClientResponseException { + private ResponseSpec updateUserRequestCreation(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws WebClientResponseException { Object postBody = user; // verify the required parameter 'username' is set if (username == null) { @@ -750,7 +750,7 @@ public class UserApi { * @param user Updated user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono updateUser(String username, User user) throws WebClientResponseException { + public Mono updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updateUserRequestCreation(username, user).bodyToMono(localVarReturnType); } @@ -764,7 +764,7 @@ public class UserApi { * @param user Updated user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> updateUserWithHttpInfo(String username, User user) throws WebClientResponseException { + public Mono> updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updateUserRequestCreation(username, user).toEntity(localVarReturnType); } @@ -779,7 +779,7 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec updateUserWithResponseSpec(String username, User user) throws WebClientResponseException { + public ResponseSpec updateUserWithResponseSpec(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws WebClientResponseException { return updateUserRequestCreation(username, user); } } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 1912ed42e94..3a72c67be3f 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -55,7 +55,7 @@ public class AnotherFakeApi { * @return Client * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec call123testSpecialTagsRequestCreation(Client client) throws WebClientResponseException { + private ResponseSpec call123testSpecialTagsRequestCreation(@javax.annotation.Nonnull Client client) throws WebClientResponseException { Object postBody = client; // verify the required parameter 'client' is set if (client == null) { @@ -92,7 +92,7 @@ public class AnotherFakeApi { * @return Client * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono call123testSpecialTags(Client client) throws WebClientResponseException { + public Mono call123testSpecialTags(@javax.annotation.Nonnull Client client) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return call123testSpecialTagsRequestCreation(client).bodyToMono(localVarReturnType); } @@ -105,7 +105,7 @@ public class AnotherFakeApi { * @return ResponseEntity<Client> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> call123testSpecialTagsWithHttpInfo(Client client) throws WebClientResponseException { + public Mono> call123testSpecialTagsWithHttpInfo(@javax.annotation.Nonnull Client client) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return call123testSpecialTagsRequestCreation(client).toEntity(localVarReturnType); } @@ -118,7 +118,7 @@ public class AnotherFakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec call123testSpecialTagsWithResponseSpec(Client client) throws WebClientResponseException { + public ResponseSpec call123testSpecialTagsWithResponseSpec(@javax.annotation.Nonnull Client client) throws WebClientResponseException { return call123testSpecialTagsRequestCreation(client); } } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeApi.java index a1b6637bc73..fba5e2a3e14 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeApi.java @@ -200,7 +200,7 @@ public class FakeApi { * @param header1 header parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeHttpSignatureTestRequestCreation(Pet pet, String query1, String header1) throws WebClientResponseException { + private ResponseSpec fakeHttpSignatureTestRequestCreation(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1) throws WebClientResponseException { Object postBody = pet; // verify the required parameter 'pet' is set if (pet == null) { @@ -241,7 +241,7 @@ public class FakeApi { * @param header1 header parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakeHttpSignatureTest(Pet pet, String query1, String header1) throws WebClientResponseException { + public Mono fakeHttpSignatureTest(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeHttpSignatureTestRequestCreation(pet, query1, header1).bodyToMono(localVarReturnType); } @@ -255,7 +255,7 @@ public class FakeApi { * @param header1 header parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakeHttpSignatureTestWithHttpInfo(Pet pet, String query1, String header1) throws WebClientResponseException { + public Mono> fakeHttpSignatureTestWithHttpInfo(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeHttpSignatureTestRequestCreation(pet, query1, header1).toEntity(localVarReturnType); } @@ -270,7 +270,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeHttpSignatureTestWithResponseSpec(Pet pet, String query1, String header1) throws WebClientResponseException { + public ResponseSpec fakeHttpSignatureTestWithResponseSpec(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1) throws WebClientResponseException { return fakeHttpSignatureTestRequestCreation(pet, query1, header1); } @@ -282,7 +282,7 @@ public class FakeApi { * @return Boolean * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterBooleanSerializeRequestCreation(Boolean body) throws WebClientResponseException { + private ResponseSpec fakeOuterBooleanSerializeRequestCreation(@javax.annotation.Nullable Boolean body) throws WebClientResponseException { Object postBody = body; // create path and map variables final Map pathParams = new HashMap(); @@ -315,7 +315,7 @@ public class FakeApi { * @return Boolean * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakeOuterBooleanSerialize(Boolean body) throws WebClientResponseException { + public Mono fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterBooleanSerializeRequestCreation(body).bodyToMono(localVarReturnType); } @@ -328,7 +328,7 @@ public class FakeApi { * @return ResponseEntity<Boolean> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws WebClientResponseException { + public Mono> fakeOuterBooleanSerializeWithHttpInfo(@javax.annotation.Nullable Boolean body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterBooleanSerializeRequestCreation(body).toEntity(localVarReturnType); } @@ -341,7 +341,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(Boolean body) throws WebClientResponseException { + public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(@javax.annotation.Nullable Boolean body) throws WebClientResponseException { return fakeOuterBooleanSerializeRequestCreation(body); } @@ -353,7 +353,7 @@ public class FakeApi { * @return OuterComposite * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterCompositeSerializeRequestCreation(OuterComposite outerComposite) throws WebClientResponseException { + private ResponseSpec fakeOuterCompositeSerializeRequestCreation(@javax.annotation.Nullable OuterComposite outerComposite) throws WebClientResponseException { Object postBody = outerComposite; // create path and map variables final Map pathParams = new HashMap(); @@ -386,7 +386,7 @@ public class FakeApi { * @return OuterComposite * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakeOuterCompositeSerialize(OuterComposite outerComposite) throws WebClientResponseException { + public Mono fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite outerComposite) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterCompositeSerializeRequestCreation(outerComposite).bodyToMono(localVarReturnType); } @@ -399,7 +399,7 @@ public class FakeApi { * @return ResponseEntity<OuterComposite> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws WebClientResponseException { + public Mono> fakeOuterCompositeSerializeWithHttpInfo(@javax.annotation.Nullable OuterComposite outerComposite) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterCompositeSerializeRequestCreation(outerComposite).toEntity(localVarReturnType); } @@ -412,7 +412,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(OuterComposite outerComposite) throws WebClientResponseException { + public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(@javax.annotation.Nullable OuterComposite outerComposite) throws WebClientResponseException { return fakeOuterCompositeSerializeRequestCreation(outerComposite); } @@ -424,7 +424,7 @@ public class FakeApi { * @return BigDecimal * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterNumberSerializeRequestCreation(BigDecimal body) throws WebClientResponseException { + private ResponseSpec fakeOuterNumberSerializeRequestCreation(@javax.annotation.Nullable BigDecimal body) throws WebClientResponseException { Object postBody = body; // create path and map variables final Map pathParams = new HashMap(); @@ -457,7 +457,7 @@ public class FakeApi { * @return BigDecimal * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakeOuterNumberSerialize(BigDecimal body) throws WebClientResponseException { + public Mono fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterNumberSerializeRequestCreation(body).bodyToMono(localVarReturnType); } @@ -470,7 +470,7 @@ public class FakeApi { * @return ResponseEntity<BigDecimal> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws WebClientResponseException { + public Mono> fakeOuterNumberSerializeWithHttpInfo(@javax.annotation.Nullable BigDecimal body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterNumberSerializeRequestCreation(body).toEntity(localVarReturnType); } @@ -483,7 +483,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(BigDecimal body) throws WebClientResponseException { + public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(@javax.annotation.Nullable BigDecimal body) throws WebClientResponseException { return fakeOuterNumberSerializeRequestCreation(body); } @@ -495,7 +495,7 @@ public class FakeApi { * @return String * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterStringSerializeRequestCreation(String body) throws WebClientResponseException { + private ResponseSpec fakeOuterStringSerializeRequestCreation(@javax.annotation.Nullable String body) throws WebClientResponseException { Object postBody = body; // create path and map variables final Map pathParams = new HashMap(); @@ -528,7 +528,7 @@ public class FakeApi { * @return String * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakeOuterStringSerialize(String body) throws WebClientResponseException { + public Mono fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterStringSerializeRequestCreation(body).bodyToMono(localVarReturnType); } @@ -541,7 +541,7 @@ public class FakeApi { * @return ResponseEntity<String> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakeOuterStringSerializeWithHttpInfo(String body) throws WebClientResponseException { + public Mono> fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakeOuterStringSerializeRequestCreation(body).toEntity(localVarReturnType); } @@ -554,7 +554,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterStringSerializeWithResponseSpec(String body) throws WebClientResponseException { + public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@javax.annotation.Nullable String body) throws WebClientResponseException { return fakeOuterStringSerializeRequestCreation(body); } @@ -566,7 +566,7 @@ public class FakeApi { * @return OuterObjectWithEnumProperty * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakePropertyEnumIntegerSerializeRequestCreation(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { + private ResponseSpec fakePropertyEnumIntegerSerializeRequestCreation(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { Object postBody = outerObjectWithEnumProperty; // verify the required parameter 'outerObjectWithEnumProperty' is set if (outerObjectWithEnumProperty == null) { @@ -603,7 +603,7 @@ public class FakeApi { * @return OuterObjectWithEnumProperty * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { + public Mono fakePropertyEnumIntegerSerialize(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty).bodyToMono(localVarReturnType); } @@ -616,7 +616,7 @@ public class FakeApi { * @return ResponseEntity<OuterObjectWithEnumProperty> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakePropertyEnumIntegerSerializeWithHttpInfo(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { + public Mono> fakePropertyEnumIntegerSerializeWithHttpInfo(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty).toEntity(localVarReturnType); } @@ -629,7 +629,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { + public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty); } @@ -640,7 +640,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testAdditionalPropertiesReferenceRequestCreation(Map requestBody) throws WebClientResponseException { + private ResponseSpec testAdditionalPropertiesReferenceRequestCreation(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { Object postBody = requestBody; // verify the required parameter 'requestBody' is set if (requestBody == null) { @@ -674,7 +674,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testAdditionalPropertiesReference(Map requestBody) throws WebClientResponseException { + public Mono testAdditionalPropertiesReference(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testAdditionalPropertiesReferenceRequestCreation(requestBody).bodyToMono(localVarReturnType); } @@ -686,7 +686,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testAdditionalPropertiesReferenceWithHttpInfo(Map requestBody) throws WebClientResponseException { + public Mono> testAdditionalPropertiesReferenceWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testAdditionalPropertiesReferenceRequestCreation(requestBody).toEntity(localVarReturnType); } @@ -699,7 +699,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(Map requestBody) throws WebClientResponseException { + public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { return testAdditionalPropertiesReferenceRequestCreation(requestBody); } @@ -710,7 +710,7 @@ public class FakeApi { * @param body image to upload * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testBodyWithBinaryRequestCreation(File body) throws WebClientResponseException { + private ResponseSpec testBodyWithBinaryRequestCreation(@javax.annotation.Nullable File body) throws WebClientResponseException { Object postBody = body; // verify the required parameter 'body' is set if (body == null) { @@ -744,7 +744,7 @@ public class FakeApi { * @param body image to upload * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testBodyWithBinary(File body) throws WebClientResponseException { + public Mono testBodyWithBinary(@javax.annotation.Nullable File body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testBodyWithBinaryRequestCreation(body).bodyToMono(localVarReturnType); } @@ -756,7 +756,7 @@ public class FakeApi { * @param body image to upload * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testBodyWithBinaryWithHttpInfo(File body) throws WebClientResponseException { + public Mono> testBodyWithBinaryWithHttpInfo(@javax.annotation.Nullable File body) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testBodyWithBinaryRequestCreation(body).toEntity(localVarReturnType); } @@ -769,7 +769,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testBodyWithBinaryWithResponseSpec(File body) throws WebClientResponseException { + public ResponseSpec testBodyWithBinaryWithResponseSpec(@javax.annotation.Nullable File body) throws WebClientResponseException { return testBodyWithBinaryRequestCreation(body); } @@ -780,7 +780,7 @@ public class FakeApi { * @param fileSchemaTestClass The fileSchemaTestClass parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testBodyWithFileSchemaRequestCreation(FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { + private ResponseSpec testBodyWithFileSchemaRequestCreation(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { Object postBody = fileSchemaTestClass; // verify the required parameter 'fileSchemaTestClass' is set if (fileSchemaTestClass == null) { @@ -814,7 +814,7 @@ public class FakeApi { * @param fileSchemaTestClass The fileSchemaTestClass parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { + public Mono testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass).bodyToMono(localVarReturnType); } @@ -826,7 +826,7 @@ public class FakeApi { * @param fileSchemaTestClass The fileSchemaTestClass parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { + public Mono> testBodyWithFileSchemaWithHttpInfo(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass).toEntity(localVarReturnType); } @@ -839,7 +839,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testBodyWithFileSchemaWithResponseSpec(FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { + public ResponseSpec testBodyWithFileSchemaWithResponseSpec(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass); } @@ -851,7 +851,7 @@ public class FakeApi { * @param user The user parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testBodyWithQueryParamsRequestCreation(String query, User user) throws WebClientResponseException { + private ResponseSpec testBodyWithQueryParamsRequestCreation(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws WebClientResponseException { Object postBody = user; // verify the required parameter 'query' is set if (query == null) { @@ -892,7 +892,7 @@ public class FakeApi { * @param user The user parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testBodyWithQueryParams(String query, User user) throws WebClientResponseException { + public Mono testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testBodyWithQueryParamsRequestCreation(query, user).bodyToMono(localVarReturnType); } @@ -905,7 +905,7 @@ public class FakeApi { * @param user The user parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testBodyWithQueryParamsWithHttpInfo(String query, User user) throws WebClientResponseException { + public Mono> testBodyWithQueryParamsWithHttpInfo(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testBodyWithQueryParamsRequestCreation(query, user).toEntity(localVarReturnType); } @@ -919,7 +919,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testBodyWithQueryParamsWithResponseSpec(String query, User user) throws WebClientResponseException { + public ResponseSpec testBodyWithQueryParamsWithResponseSpec(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws WebClientResponseException { return testBodyWithQueryParamsRequestCreation(query, user); } @@ -931,7 +931,7 @@ public class FakeApi { * @return Client * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testClientModelRequestCreation(Client client) throws WebClientResponseException { + private ResponseSpec testClientModelRequestCreation(@javax.annotation.Nonnull Client client) throws WebClientResponseException { Object postBody = client; // verify the required parameter 'client' is set if (client == null) { @@ -968,7 +968,7 @@ public class FakeApi { * @return Client * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testClientModel(Client client) throws WebClientResponseException { + public Mono testClientModel(@javax.annotation.Nonnull Client client) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testClientModelRequestCreation(client).bodyToMono(localVarReturnType); } @@ -981,7 +981,7 @@ public class FakeApi { * @return ResponseEntity<Client> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testClientModelWithHttpInfo(Client client) throws WebClientResponseException { + public Mono> testClientModelWithHttpInfo(@javax.annotation.Nonnull Client client) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testClientModelRequestCreation(client).toEntity(localVarReturnType); } @@ -994,7 +994,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testClientModelWithResponseSpec(Client client) throws WebClientResponseException { + public ResponseSpec testClientModelWithResponseSpec(@javax.annotation.Nonnull Client client) throws WebClientResponseException { return testClientModelRequestCreation(client); } @@ -1019,7 +1019,7 @@ public class FakeApi { * @param paramCallback None * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testEndpointParametersRequestCreation(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 WebClientResponseException { + private ResponseSpec testEndpointParametersRequestCreation(@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 WebClientResponseException { Object postBody = null; // verify the required parameter 'number' is set if (number == null) { @@ -1108,7 +1108,7 @@ public class FakeApi { * @param paramCallback None * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono 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 WebClientResponseException { + public Mono 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 WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback).bodyToMono(localVarReturnType); } @@ -1134,7 +1134,7 @@ public class FakeApi { * @param paramCallback None * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> 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 WebClientResponseException { + public Mono> 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 WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback).toEntity(localVarReturnType); } @@ -1161,7 +1161,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testEndpointParametersWithResponseSpec(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 WebClientResponseException { + public ResponseSpec testEndpointParametersWithResponseSpec(@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 WebClientResponseException { return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -1181,7 +1181,7 @@ public class FakeApi { * @param enumFormString Form parameter enum test (string) * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testEnumParametersRequestCreation(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws WebClientResponseException { + private ResponseSpec testEnumParametersRequestCreation(@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 WebClientResponseException { Object postBody = null; // create path and map variables final Map pathParams = new HashMap(); @@ -1236,7 +1236,7 @@ public class FakeApi { * @param enumFormString Form parameter enum test (string) * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws WebClientResponseException { + public Mono 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 WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString).bodyToMono(localVarReturnType); } @@ -1257,7 +1257,7 @@ public class FakeApi { * @param enumFormString Form parameter enum test (string) * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testEnumParametersWithHttpInfo(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws WebClientResponseException { + public Mono> 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 WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString).toEntity(localVarReturnType); } @@ -1279,7 +1279,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testEnumParametersWithResponseSpec(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws WebClientResponseException { + public ResponseSpec testEnumParametersWithResponseSpec(@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 WebClientResponseException { return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString); } @@ -1295,7 +1295,7 @@ public class FakeApi { * @param int64Group Integer in group parameters * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testGroupParametersRequestCreation(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws WebClientResponseException { + private ResponseSpec testGroupParametersRequestCreation(@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 WebClientResponseException { Object postBody = null; // verify the required parameter 'requiredStringGroup' is set if (requiredStringGroup == null) { @@ -1350,7 +1350,7 @@ public class FakeApi { * @param int64Group Integer in group parameters * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws WebClientResponseException { + public Mono 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 WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group).bodyToMono(localVarReturnType); } @@ -1367,7 +1367,7 @@ public class FakeApi { * @param int64Group Integer in group parameters * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws WebClientResponseException { + public Mono> 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 WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group).toEntity(localVarReturnType); } @@ -1385,7 +1385,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testGroupParametersWithResponseSpec(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws WebClientResponseException { + public ResponseSpec testGroupParametersWithResponseSpec(@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 WebClientResponseException { return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -1396,7 +1396,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testInlineAdditionalPropertiesRequestCreation(Map requestBody) throws WebClientResponseException { + private ResponseSpec testInlineAdditionalPropertiesRequestCreation(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { Object postBody = requestBody; // verify the required parameter 'requestBody' is set if (requestBody == null) { @@ -1430,7 +1430,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testInlineAdditionalProperties(Map requestBody) throws WebClientResponseException { + public Mono testInlineAdditionalProperties(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testInlineAdditionalPropertiesRequestCreation(requestBody).bodyToMono(localVarReturnType); } @@ -1442,7 +1442,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testInlineAdditionalPropertiesWithHttpInfo(Map requestBody) throws WebClientResponseException { + public Mono> testInlineAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testInlineAdditionalPropertiesRequestCreation(requestBody).toEntity(localVarReturnType); } @@ -1455,7 +1455,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(Map requestBody) throws WebClientResponseException { + public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { return testInlineAdditionalPropertiesRequestCreation(requestBody); } @@ -1466,7 +1466,7 @@ public class FakeApi { * @param testInlineFreeformAdditionalPropertiesRequest request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testInlineFreeformAdditionalPropertiesRequestCreation(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { + private ResponseSpec testInlineFreeformAdditionalPropertiesRequestCreation(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { Object postBody = testInlineFreeformAdditionalPropertiesRequest; // verify the required parameter 'testInlineFreeformAdditionalPropertiesRequest' is set if (testInlineFreeformAdditionalPropertiesRequest == null) { @@ -1500,7 +1500,7 @@ public class FakeApi { * @param testInlineFreeformAdditionalPropertiesRequest request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { + public Mono testInlineFreeformAdditionalProperties(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest).bodyToMono(localVarReturnType); } @@ -1512,7 +1512,7 @@ public class FakeApi { * @param testInlineFreeformAdditionalPropertiesRequest request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testInlineFreeformAdditionalPropertiesWithHttpInfo(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { + public Mono> testInlineFreeformAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest).toEntity(localVarReturnType); } @@ -1525,7 +1525,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testInlineFreeformAdditionalPropertiesWithResponseSpec(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { + public ResponseSpec testInlineFreeformAdditionalPropertiesWithResponseSpec(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest); } @@ -1537,7 +1537,7 @@ public class FakeApi { * @param param2 field2 * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testJsonFormDataRequestCreation(String param, String param2) throws WebClientResponseException { + private ResponseSpec testJsonFormDataRequestCreation(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'param' is set if (param == null) { @@ -1581,7 +1581,7 @@ public class FakeApi { * @param param2 field2 * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testJsonFormData(String param, String param2) throws WebClientResponseException { + public Mono testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testJsonFormDataRequestCreation(param, param2).bodyToMono(localVarReturnType); } @@ -1594,7 +1594,7 @@ public class FakeApi { * @param param2 field2 * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testJsonFormDataWithHttpInfo(String param, String param2) throws WebClientResponseException { + public Mono> testJsonFormDataWithHttpInfo(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testJsonFormDataRequestCreation(param, param2).toEntity(localVarReturnType); } @@ -1608,7 +1608,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testJsonFormDataWithResponseSpec(String param, String param2) throws WebClientResponseException { + public ResponseSpec testJsonFormDataWithResponseSpec(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws WebClientResponseException { return testJsonFormDataRequestCreation(param, param2); } @@ -1619,7 +1619,7 @@ public class FakeApi { * @param childWithNullable request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testNullableRequestCreation(ChildWithNullable childWithNullable) throws WebClientResponseException { + private ResponseSpec testNullableRequestCreation(@javax.annotation.Nonnull ChildWithNullable childWithNullable) throws WebClientResponseException { Object postBody = childWithNullable; // verify the required parameter 'childWithNullable' is set if (childWithNullable == null) { @@ -1653,7 +1653,7 @@ public class FakeApi { * @param childWithNullable request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testNullable(ChildWithNullable childWithNullable) throws WebClientResponseException { + public Mono testNullable(@javax.annotation.Nonnull ChildWithNullable childWithNullable) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testNullableRequestCreation(childWithNullable).bodyToMono(localVarReturnType); } @@ -1665,7 +1665,7 @@ public class FakeApi { * @param childWithNullable request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testNullableWithHttpInfo(ChildWithNullable childWithNullable) throws WebClientResponseException { + public Mono> testNullableWithHttpInfo(@javax.annotation.Nonnull ChildWithNullable childWithNullable) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testNullableRequestCreation(childWithNullable).toEntity(localVarReturnType); } @@ -1678,7 +1678,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testNullableWithResponseSpec(ChildWithNullable childWithNullable) throws WebClientResponseException { + public ResponseSpec testNullableWithResponseSpec(@javax.annotation.Nonnull ChildWithNullable childWithNullable) throws WebClientResponseException { return testNullableRequestCreation(childWithNullable); } @@ -1695,7 +1695,7 @@ public class FakeApi { * @param language The language parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testQueryParameterCollectionFormatRequestCreation(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws WebClientResponseException { + private ResponseSpec testQueryParameterCollectionFormatRequestCreation(@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 WebClientResponseException { Object postBody = null; // verify the required parameter 'pipe' is set if (pipe == null) { @@ -1761,7 +1761,7 @@ public class FakeApi { * @param language The language parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws WebClientResponseException { + public Mono 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 WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language).bodyToMono(localVarReturnType); } @@ -1779,7 +1779,7 @@ public class FakeApi { * @param language The language parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws WebClientResponseException { + public Mono> 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 WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language).toEntity(localVarReturnType); } @@ -1798,7 +1798,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws WebClientResponseException { + public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(@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 WebClientResponseException { return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language); } @@ -1809,7 +1809,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testStringMapReferenceRequestCreation(Map requestBody) throws WebClientResponseException { + private ResponseSpec testStringMapReferenceRequestCreation(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { Object postBody = requestBody; // verify the required parameter 'requestBody' is set if (requestBody == null) { @@ -1843,7 +1843,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testStringMapReference(Map requestBody) throws WebClientResponseException { + public Mono testStringMapReference(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testStringMapReferenceRequestCreation(requestBody).bodyToMono(localVarReturnType); } @@ -1855,7 +1855,7 @@ public class FakeApi { * @param requestBody request body * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testStringMapReferenceWithHttpInfo(Map requestBody) throws WebClientResponseException { + public Mono> testStringMapReferenceWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testStringMapReferenceRequestCreation(requestBody).toEntity(localVarReturnType); } @@ -1868,7 +1868,7 @@ public class FakeApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testStringMapReferenceWithResponseSpec(Map requestBody) throws WebClientResponseException { + public ResponseSpec testStringMapReferenceWithResponseSpec(@javax.annotation.Nonnull Map requestBody) throws WebClientResponseException { return testStringMapReferenceRequestCreation(requestBody); } } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index bd7f7d9c833..e93df15c7a4 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -55,7 +55,7 @@ public class FakeClassnameTags123Api { * @return Client * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testClassnameRequestCreation(Client client) throws WebClientResponseException { + private ResponseSpec testClassnameRequestCreation(@javax.annotation.Nonnull Client client) throws WebClientResponseException { Object postBody = client; // verify the required parameter 'client' is set if (client == null) { @@ -92,7 +92,7 @@ public class FakeClassnameTags123Api { * @return Client * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono testClassname(Client client) throws WebClientResponseException { + public Mono testClassname(@javax.annotation.Nonnull Client client) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testClassnameRequestCreation(client).bodyToMono(localVarReturnType); } @@ -105,7 +105,7 @@ public class FakeClassnameTags123Api { * @return ResponseEntity<Client> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> testClassnameWithHttpInfo(Client client) throws WebClientResponseException { + public Mono> testClassnameWithHttpInfo(@javax.annotation.Nonnull Client client) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return testClassnameRequestCreation(client).toEntity(localVarReturnType); } @@ -118,7 +118,7 @@ public class FakeClassnameTags123Api { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testClassnameWithResponseSpec(Client client) throws WebClientResponseException { + public ResponseSpec testClassnameWithResponseSpec(@javax.annotation.Nonnull Client client) throws WebClientResponseException { return testClassnameRequestCreation(client); } } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/PetApi.java index 0450ce58561..b750808cdd6 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/PetApi.java @@ -58,7 +58,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec addPetRequestCreation(Pet pet) throws WebClientResponseException { + private ResponseSpec addPetRequestCreation(@javax.annotation.Nonnull Pet pet) throws WebClientResponseException { Object postBody = pet; // verify the required parameter 'pet' is set if (pet == null) { @@ -93,7 +93,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono addPet(Pet pet) throws WebClientResponseException { + public Mono addPet(@javax.annotation.Nonnull Pet pet) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return addPetRequestCreation(pet).bodyToMono(localVarReturnType); } @@ -106,7 +106,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> addPetWithHttpInfo(Pet pet) throws WebClientResponseException { + public Mono> addPetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return addPetRequestCreation(pet).toEntity(localVarReturnType); } @@ -120,7 +120,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec addPetWithResponseSpec(Pet pet) throws WebClientResponseException { + public ResponseSpec addPetWithResponseSpec(@javax.annotation.Nonnull Pet pet) throws WebClientResponseException { return addPetRequestCreation(pet); } @@ -133,7 +133,7 @@ public class PetApi { * @param apiKey The apiKey parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec deletePetRequestCreation(Long petId, String apiKey) throws WebClientResponseException { + private ResponseSpec deletePetRequestCreation(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -172,7 +172,7 @@ public class PetApi { * @param apiKey The apiKey parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono deletePet(Long petId, String apiKey) throws WebClientResponseException { + public Mono deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return deletePetRequestCreation(petId, apiKey).bodyToMono(localVarReturnType); } @@ -186,7 +186,7 @@ public class PetApi { * @param apiKey The apiKey parameter * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> deletePetWithHttpInfo(Long petId, String apiKey) throws WebClientResponseException { + public Mono> deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return deletePetRequestCreation(petId, apiKey).toEntity(localVarReturnType); } @@ -201,7 +201,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec deletePetWithResponseSpec(Long petId, String apiKey) throws WebClientResponseException { + public ResponseSpec deletePetWithResponseSpec(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws WebClientResponseException { return deletePetRequestCreation(petId, apiKey); } @@ -214,7 +214,7 @@ public class PetApi { * @return List<Pet> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec findPetsByStatusRequestCreation(List status) throws WebClientResponseException { + private ResponseSpec findPetsByStatusRequestCreation(@javax.annotation.Nonnull List status) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'status' is set if (status == null) { @@ -252,7 +252,7 @@ public class PetApi { * @return List<Pet> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public List findPetsByStatus(List status) throws WebClientResponseException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return findPetsByStatusRequestCreation(status).bodyToFlux(localVarReturnType).collectList().block(); } @@ -266,7 +266,7 @@ public class PetApi { * @return ResponseEntity<List<Pet>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity> findPetsByStatusWithHttpInfo(List status) throws WebClientResponseException { + public ResponseEntity> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return findPetsByStatusRequestCreation(status).toEntityList(localVarReturnType).block(); } @@ -280,7 +280,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec findPetsByStatusWithResponseSpec(List status) throws WebClientResponseException { + public ResponseSpec findPetsByStatusWithResponseSpec(@javax.annotation.Nonnull List status) throws WebClientResponseException { return findPetsByStatusRequestCreation(status); } @@ -295,7 +295,7 @@ public class PetApi { * @deprecated */ @Deprecated - private ResponseSpec findPetsByTagsRequestCreation(Set tags) throws WebClientResponseException { + private ResponseSpec findPetsByTagsRequestCreation(@javax.annotation.Nonnull Set tags) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'tags' is set if (tags == null) { @@ -333,7 +333,7 @@ public class PetApi { * @return Set<Pet> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Set findPetsByTags(Set tags) throws WebClientResponseException { + public Set findPetsByTags(@javax.annotation.Nonnull Set tags) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return findPetsByTagsRequestCreation(tags).bodyToFlux(localVarReturnType).collect(Collectors.toSet()).block(); } @@ -347,7 +347,7 @@ public class PetApi { * @return ResponseEntity<Set<Pet>> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity> findPetsByTagsWithHttpInfo(Set tags) throws WebClientResponseException { + public ResponseEntity> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull Set tags) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return findPetsByTagsRequestCreation(tags).toEntityList(localVarReturnType).block(); } @@ -361,7 +361,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec findPetsByTagsWithResponseSpec(Set tags) throws WebClientResponseException { + public ResponseSpec findPetsByTagsWithResponseSpec(@javax.annotation.Nonnull Set tags) throws WebClientResponseException { return findPetsByTagsRequestCreation(tags); } @@ -375,7 +375,7 @@ public class PetApi { * @return Pet * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec getPetByIdRequestCreation(Long petId) throws WebClientResponseException { + private ResponseSpec getPetByIdRequestCreation(@javax.annotation.Nonnull Long petId) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -414,7 +414,7 @@ public class PetApi { * @return Pet * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Pet getPetById(Long petId) throws WebClientResponseException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return getPetByIdRequestCreation(petId).bodyToMono(localVarReturnType).block(); } @@ -429,7 +429,7 @@ public class PetApi { * @return ResponseEntity<Pet> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws WebClientResponseException { + public ResponseEntity getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return getPetByIdRequestCreation(petId).toEntity(localVarReturnType).block(); } @@ -444,7 +444,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec getPetByIdWithResponseSpec(Long petId) throws WebClientResponseException { + public ResponseSpec getPetByIdWithResponseSpec(@javax.annotation.Nonnull Long petId) throws WebClientResponseException { return getPetByIdRequestCreation(petId); } @@ -458,7 +458,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec updatePetRequestCreation(Pet pet) throws WebClientResponseException { + private ResponseSpec updatePetRequestCreation(@javax.annotation.Nonnull Pet pet) throws WebClientResponseException { Object postBody = pet; // verify the required parameter 'pet' is set if (pet == null) { @@ -495,7 +495,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public void updatePet(Pet pet) throws WebClientResponseException { + public void updatePet(@javax.annotation.Nonnull Pet pet) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; updatePetRequestCreation(pet).bodyToMono(localVarReturnType).block(); } @@ -510,7 +510,7 @@ public class PetApi { * @param pet Pet object that needs to be added to the store * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity updatePetWithHttpInfo(Pet pet) throws WebClientResponseException { + public ResponseEntity updatePetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updatePetRequestCreation(pet).toEntity(localVarReturnType).block(); } @@ -526,7 +526,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec updatePetWithResponseSpec(Pet pet) throws WebClientResponseException { + public ResponseSpec updatePetWithResponseSpec(@javax.annotation.Nonnull Pet pet) throws WebClientResponseException { return updatePetRequestCreation(pet); } @@ -540,7 +540,7 @@ public class PetApi { * @param status Updated status of the pet * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec updatePetWithFormRequestCreation(Long petId, String name, String status) throws WebClientResponseException { + private ResponseSpec updatePetWithFormRequestCreation(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -584,7 +584,7 @@ public class PetApi { * @param status Updated status of the pet * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono updatePetWithForm(Long petId, String name, String status) throws WebClientResponseException { + public Mono updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updatePetWithFormRequestCreation(petId, name, status).bodyToMono(localVarReturnType); } @@ -599,7 +599,7 @@ public class PetApi { * @param status Updated status of the pet * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws WebClientResponseException { + public Mono> updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updatePetWithFormRequestCreation(petId, name, status).toEntity(localVarReturnType); } @@ -615,7 +615,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec updatePetWithFormWithResponseSpec(Long petId, String name, String status) throws WebClientResponseException { + public ResponseSpec updatePetWithFormWithResponseSpec(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws WebClientResponseException { return updatePetWithFormRequestCreation(petId, name, status); } @@ -629,7 +629,7 @@ public class PetApi { * @return ModelApiResponse * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec uploadFileRequestCreation(Long petId, String additionalMetadata, File _file) throws WebClientResponseException { + private ResponseSpec uploadFileRequestCreation(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -675,7 +675,7 @@ public class PetApi { * @return ModelApiResponse * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono uploadFile(Long petId, String additionalMetadata, File _file) throws WebClientResponseException { + public Mono uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return uploadFileRequestCreation(petId, additionalMetadata, _file).bodyToMono(localVarReturnType); } @@ -690,7 +690,7 @@ public class PetApi { * @return ResponseEntity<ModelApiResponse> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws WebClientResponseException { + public Mono> uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return uploadFileRequestCreation(petId, additionalMetadata, _file).toEntity(localVarReturnType); } @@ -705,7 +705,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec uploadFileWithResponseSpec(Long petId, String additionalMetadata, File _file) throws WebClientResponseException { + public ResponseSpec uploadFileWithResponseSpec(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws WebClientResponseException { return uploadFileRequestCreation(petId, additionalMetadata, _file); } @@ -719,7 +719,7 @@ public class PetApi { * @return ModelApiResponse * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec uploadFileWithRequiredFileRequestCreation(Long petId, File requiredFile, String additionalMetadata) throws WebClientResponseException { + private ResponseSpec uploadFileWithRequiredFileRequestCreation(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'petId' is set if (petId == null) { @@ -769,7 +769,7 @@ public class PetApi { * @return ModelApiResponse * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws WebClientResponseException { + public Mono uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return uploadFileWithRequiredFileRequestCreation(petId, requiredFile, additionalMetadata).bodyToMono(localVarReturnType); } @@ -784,7 +784,7 @@ public class PetApi { * @return ResponseEntity<ModelApiResponse> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws WebClientResponseException { + public Mono> uploadFileWithRequiredFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return uploadFileWithRequiredFileRequestCreation(petId, requiredFile, additionalMetadata).toEntity(localVarReturnType); } @@ -799,7 +799,7 @@ public class PetApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec uploadFileWithRequiredFileWithResponseSpec(Long petId, File requiredFile, String additionalMetadata) throws WebClientResponseException { + public ResponseSpec uploadFileWithRequiredFileWithResponseSpec(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws WebClientResponseException { return uploadFileWithRequiredFileRequestCreation(petId, requiredFile, additionalMetadata); } } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/StoreApi.java index 173f62da73f..e43bd4f9f03 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/StoreApi.java @@ -55,7 +55,7 @@ public class StoreApi { * @param orderId ID of the order that needs to be deleted * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec deleteOrderRequestCreation(String orderId) throws WebClientResponseException { + private ResponseSpec deleteOrderRequestCreation(@javax.annotation.Nonnull String orderId) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'orderId' is set if (orderId == null) { @@ -90,7 +90,7 @@ public class StoreApi { * @param orderId ID of the order that needs to be deleted * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono deleteOrder(String orderId) throws WebClientResponseException { + public Mono deleteOrder(@javax.annotation.Nonnull String orderId) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return deleteOrderRequestCreation(orderId).bodyToMono(localVarReturnType); } @@ -103,7 +103,7 @@ public class StoreApi { * @param orderId ID of the order that needs to be deleted * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> deleteOrderWithHttpInfo(String orderId) throws WebClientResponseException { + public Mono> deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return deleteOrderRequestCreation(orderId).toEntity(localVarReturnType); } @@ -117,7 +117,7 @@ public class StoreApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec deleteOrderWithResponseSpec(String orderId) throws WebClientResponseException { + public ResponseSpec deleteOrderWithResponseSpec(@javax.annotation.Nonnull String orderId) throws WebClientResponseException { return deleteOrderRequestCreation(orderId); } @@ -196,7 +196,7 @@ public class StoreApi { * @return Order * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec getOrderByIdRequestCreation(Long orderId) throws WebClientResponseException { + private ResponseSpec getOrderByIdRequestCreation(@javax.annotation.Nonnull Long orderId) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'orderId' is set if (orderId == null) { @@ -235,7 +235,7 @@ public class StoreApi { * @return Order * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono getOrderById(Long orderId) throws WebClientResponseException { + public Mono getOrderById(@javax.annotation.Nonnull Long orderId) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return getOrderByIdRequestCreation(orderId).bodyToMono(localVarReturnType); } @@ -250,7 +250,7 @@ public class StoreApi { * @return ResponseEntity<Order> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> getOrderByIdWithHttpInfo(Long orderId) throws WebClientResponseException { + public Mono> getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return getOrderByIdRequestCreation(orderId).toEntity(localVarReturnType); } @@ -265,7 +265,7 @@ public class StoreApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec getOrderByIdWithResponseSpec(Long orderId) throws WebClientResponseException { + public ResponseSpec getOrderByIdWithResponseSpec(@javax.annotation.Nonnull Long orderId) throws WebClientResponseException { return getOrderByIdRequestCreation(orderId); } @@ -278,7 +278,7 @@ public class StoreApi { * @return Order * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec placeOrderRequestCreation(Order order) throws WebClientResponseException { + private ResponseSpec placeOrderRequestCreation(@javax.annotation.Nonnull Order order) throws WebClientResponseException { Object postBody = order; // verify the required parameter 'order' is set if (order == null) { @@ -316,7 +316,7 @@ public class StoreApi { * @return Order * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono placeOrder(Order order) throws WebClientResponseException { + public Mono placeOrder(@javax.annotation.Nonnull Order order) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return placeOrderRequestCreation(order).bodyToMono(localVarReturnType); } @@ -330,7 +330,7 @@ public class StoreApi { * @return ResponseEntity<Order> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> placeOrderWithHttpInfo(Order order) throws WebClientResponseException { + public Mono> placeOrderWithHttpInfo(@javax.annotation.Nonnull Order order) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return placeOrderRequestCreation(order).toEntity(localVarReturnType); } @@ -344,7 +344,7 @@ public class StoreApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec placeOrderWithResponseSpec(Order order) throws WebClientResponseException { + public ResponseSpec placeOrderWithResponseSpec(@javax.annotation.Nonnull Order order) throws WebClientResponseException { return placeOrderRequestCreation(order); } } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/UserApi.java index 105229ec922..1f3eabf59ab 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/UserApi.java @@ -55,7 +55,7 @@ public class UserApi { * @param user Created user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec createUserRequestCreation(User user) throws WebClientResponseException { + private ResponseSpec createUserRequestCreation(@javax.annotation.Nonnull User user) throws WebClientResponseException { Object postBody = user; // verify the required parameter 'user' is set if (user == null) { @@ -89,7 +89,7 @@ public class UserApi { * @param user Created user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono createUser(User user) throws WebClientResponseException { + public Mono createUser(@javax.annotation.Nonnull User user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createUserRequestCreation(user).bodyToMono(localVarReturnType); } @@ -101,7 +101,7 @@ public class UserApi { * @param user Created user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> createUserWithHttpInfo(User user) throws WebClientResponseException { + public Mono> createUserWithHttpInfo(@javax.annotation.Nonnull User user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createUserRequestCreation(user).toEntity(localVarReturnType); } @@ -114,7 +114,7 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec createUserWithResponseSpec(User user) throws WebClientResponseException { + public ResponseSpec createUserWithResponseSpec(@javax.annotation.Nonnull User user) throws WebClientResponseException { return createUserRequestCreation(user); } @@ -125,7 +125,7 @@ public class UserApi { * @param user List of user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec createUsersWithArrayInputRequestCreation(List user) throws WebClientResponseException { + private ResponseSpec createUsersWithArrayInputRequestCreation(@javax.annotation.Nonnull List user) throws WebClientResponseException { Object postBody = user; // verify the required parameter 'user' is set if (user == null) { @@ -159,7 +159,7 @@ public class UserApi { * @param user List of user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono createUsersWithArrayInput(List user) throws WebClientResponseException { + public Mono createUsersWithArrayInput(@javax.annotation.Nonnull List user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createUsersWithArrayInputRequestCreation(user).bodyToMono(localVarReturnType); } @@ -171,7 +171,7 @@ public class UserApi { * @param user List of user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> createUsersWithArrayInputWithHttpInfo(List user) throws WebClientResponseException { + public Mono> createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createUsersWithArrayInputRequestCreation(user).toEntity(localVarReturnType); } @@ -184,7 +184,7 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec createUsersWithArrayInputWithResponseSpec(List user) throws WebClientResponseException { + public ResponseSpec createUsersWithArrayInputWithResponseSpec(@javax.annotation.Nonnull List user) throws WebClientResponseException { return createUsersWithArrayInputRequestCreation(user); } @@ -195,7 +195,7 @@ public class UserApi { * @param user List of user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec createUsersWithListInputRequestCreation(List user) throws WebClientResponseException { + private ResponseSpec createUsersWithListInputRequestCreation(@javax.annotation.Nonnull List user) throws WebClientResponseException { Object postBody = user; // verify the required parameter 'user' is set if (user == null) { @@ -229,7 +229,7 @@ public class UserApi { * @param user List of user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono createUsersWithListInput(List user) throws WebClientResponseException { + public Mono createUsersWithListInput(@javax.annotation.Nonnull List user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createUsersWithListInputRequestCreation(user).bodyToMono(localVarReturnType); } @@ -241,7 +241,7 @@ public class UserApi { * @param user List of user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> createUsersWithListInputWithHttpInfo(List user) throws WebClientResponseException { + public Mono> createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return createUsersWithListInputRequestCreation(user).toEntity(localVarReturnType); } @@ -254,7 +254,7 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec createUsersWithListInputWithResponseSpec(List user) throws WebClientResponseException { + public ResponseSpec createUsersWithListInputWithResponseSpec(@javax.annotation.Nonnull List user) throws WebClientResponseException { return createUsersWithListInputRequestCreation(user); } @@ -266,7 +266,7 @@ public class UserApi { * @param username The name that needs to be deleted * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec deleteUserRequestCreation(String username) throws WebClientResponseException { + private ResponseSpec deleteUserRequestCreation(@javax.annotation.Nonnull String username) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'username' is set if (username == null) { @@ -301,7 +301,7 @@ public class UserApi { * @param username The name that needs to be deleted * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono deleteUser(String username) throws WebClientResponseException { + public Mono deleteUser(@javax.annotation.Nonnull String username) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return deleteUserRequestCreation(username).bodyToMono(localVarReturnType); } @@ -314,7 +314,7 @@ public class UserApi { * @param username The name that needs to be deleted * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> deleteUserWithHttpInfo(String username) throws WebClientResponseException { + public Mono> deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return deleteUserRequestCreation(username).toEntity(localVarReturnType); } @@ -328,7 +328,7 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec deleteUserWithResponseSpec(String username) throws WebClientResponseException { + public ResponseSpec deleteUserWithResponseSpec(@javax.annotation.Nonnull String username) throws WebClientResponseException { return deleteUserRequestCreation(username); } @@ -342,7 +342,7 @@ public class UserApi { * @return User * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec getUserByNameRequestCreation(String username) throws WebClientResponseException { + private ResponseSpec getUserByNameRequestCreation(@javax.annotation.Nonnull String username) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'username' is set if (username == null) { @@ -381,7 +381,7 @@ public class UserApi { * @return User * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono getUserByName(String username) throws WebClientResponseException { + public Mono getUserByName(@javax.annotation.Nonnull String username) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return getUserByNameRequestCreation(username).bodyToMono(localVarReturnType); } @@ -396,7 +396,7 @@ public class UserApi { * @return ResponseEntity<User> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> getUserByNameWithHttpInfo(String username) throws WebClientResponseException { + public Mono> getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return getUserByNameRequestCreation(username).toEntity(localVarReturnType); } @@ -411,7 +411,7 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec getUserByNameWithResponseSpec(String username) throws WebClientResponseException { + public ResponseSpec getUserByNameWithResponseSpec(@javax.annotation.Nonnull String username) throws WebClientResponseException { return getUserByNameRequestCreation(username); } @@ -425,7 +425,7 @@ public class UserApi { * @return String * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec loginUserRequestCreation(String username, String password) throws WebClientResponseException { + private ResponseSpec loginUserRequestCreation(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws WebClientResponseException { Object postBody = null; // verify the required parameter 'username' is set if (username == null) { @@ -469,7 +469,7 @@ public class UserApi { * @return String * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono loginUser(String username, String password) throws WebClientResponseException { + public Mono loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return loginUserRequestCreation(username, password).bodyToMono(localVarReturnType); } @@ -484,7 +484,7 @@ public class UserApi { * @return ResponseEntity<String> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> loginUserWithHttpInfo(String username, String password) throws WebClientResponseException { + public Mono> loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return loginUserRequestCreation(username, password).toEntity(localVarReturnType); } @@ -499,7 +499,7 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec loginUserWithResponseSpec(String username, String password) throws WebClientResponseException { + public ResponseSpec loginUserWithResponseSpec(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws WebClientResponseException { return loginUserRequestCreation(username, password); } @@ -572,7 +572,7 @@ public class UserApi { * @param user Updated user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec updateUserRequestCreation(String username, User user) throws WebClientResponseException { + private ResponseSpec updateUserRequestCreation(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws WebClientResponseException { Object postBody = user; // verify the required parameter 'username' is set if (username == null) { @@ -614,7 +614,7 @@ public class UserApi { * @param user Updated user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono updateUser(String username, User user) throws WebClientResponseException { + public Mono updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updateUserRequestCreation(username, user).bodyToMono(localVarReturnType); } @@ -628,7 +628,7 @@ public class UserApi { * @param user Updated user object * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> updateUserWithHttpInfo(String username, User user) throws WebClientResponseException { + public Mono> updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; return updateUserRequestCreation(username, user).toEntity(localVarReturnType); } @@ -643,7 +643,7 @@ public class UserApi { * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec updateUserWithResponseSpec(String username, User user) throws WebClientResponseException { + public ResponseSpec updateUserWithResponseSpec(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws WebClientResponseException { return updateUserRequestCreation(username, user); } } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/api/DefaultApi.java b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/api/DefaultApi.java index 03870d3dc17..c8591a4ba99 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/api/DefaultApi.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/api/DefaultApi.java @@ -59,7 +59,7 @@ public class DefaultApi { 200 the response - */ - public MySchemaNameCharacters testPost(MySchemaNameCharacters mySchemaNameCharacters) throws ApiException { + public MySchemaNameCharacters testPost(@javax.annotation.Nullable MySchemaNameCharacters mySchemaNameCharacters) throws ApiException { return testPostWithHttpInfo(mySchemaNameCharacters).getData(); } @@ -76,7 +76,7 @@ public class DefaultApi { 200 the response - */ - public ApiResponse testPostWithHttpInfo(MySchemaNameCharacters mySchemaNameCharacters) throws ApiException { + public ApiResponse testPostWithHttpInfo(@javax.annotation.Nullable MySchemaNameCharacters mySchemaNameCharacters) throws ApiException { String localVarAccept = apiClient.selectHeaderAccept("application/json"); String localVarContentType = apiClient.selectHeaderContentType("application/json"); GenericType localVarReturnType = new GenericType() {}; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/api/PetApi.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/api/PetApi.java index afedb60c62c..24639c66132 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/api/PetApi.java @@ -62,7 +62,7 @@ public class PetApi { 405 Invalid input - */ - public Pet addPet(Pet pet) throws ApiException { + public Pet addPet(@javax.annotation.Nonnull Pet pet) throws ApiException { return addPetWithHttpInfo(pet).getData(); } @@ -80,7 +80,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse addPetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse addPetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException { // Check required parameters if (pet == null) { throw new ApiException(400, "Missing the required parameter 'pet' when calling addPet"); @@ -107,7 +107,7 @@ public class PetApi { 400 Invalid pet value - */ - public void deletePet(Long petId, String apiKey) throws ApiException { + public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { deletePetWithHttpInfo(petId, apiKey); } @@ -125,7 +125,7 @@ public class PetApi { 400 Invalid pet value - */ - public ApiResponse deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException { + public ApiResponse deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling deletePet"); @@ -162,7 +162,7 @@ public class PetApi { 400 Invalid status value - */ - public List findPetsByStatus(List status) throws ApiException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws ApiException { return findPetsByStatusWithHttpInfo(status).getData(); } @@ -180,7 +180,7 @@ public class PetApi { 400 Invalid status value - */ - public ApiResponse> findPetsByStatusWithHttpInfo(List status) throws ApiException { + public ApiResponse> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws ApiException { // Check required parameters if (status == null) { throw new ApiException(400, "Missing the required parameter 'status' when calling findPetsByStatus"); @@ -215,7 +215,7 @@ public class PetApi { * @deprecated */ @Deprecated - public List findPetsByTags(List tags) throws ApiException { + public List findPetsByTags(@javax.annotation.Nonnull List tags) throws ApiException { return findPetsByTagsWithHttpInfo(tags).getData(); } @@ -235,7 +235,7 @@ public class PetApi { * @deprecated */ @Deprecated - public ApiResponse> findPetsByTagsWithHttpInfo(List tags) throws ApiException { + public ApiResponse> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull List tags) throws ApiException { // Check required parameters if (tags == null) { throw new ApiException(400, "Missing the required parameter 'tags' when calling findPetsByTags"); @@ -269,7 +269,7 @@ public class PetApi { 404 Pet not found - */ - public Pet getPetById(Long petId) throws ApiException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws ApiException { return getPetByIdWithHttpInfo(petId).getData(); } @@ -288,7 +288,7 @@ public class PetApi { 404 Pet not found - */ - public ApiResponse getPetByIdWithHttpInfo(Long petId) throws ApiException { + public ApiResponse getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling getPetById"); @@ -324,7 +324,7 @@ public class PetApi { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public Pet updatePet(Pet pet) throws ApiException { + public Pet updatePet(@javax.annotation.Nonnull Pet pet) throws ApiException { return updatePetWithHttpInfo(pet).getData(); } @@ -346,7 +346,7 @@ public class PetApi { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public ApiResponse updatePetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse updatePetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException { // Check required parameters if (pet == null) { throw new ApiException(400, "Missing the required parameter 'pet' when calling updatePet"); @@ -374,7 +374,7 @@ public class PetApi { 405 Invalid input - */ - public void updatePetWithForm(Long petId, String name, String status) throws ApiException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -393,7 +393,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException { + public ApiResponse updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling updatePetWithForm"); @@ -434,7 +434,7 @@ public class PetApi { 200 successful operation - */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws ApiException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { return uploadFileWithHttpInfo(petId, additionalMetadata, _file).getData(); } @@ -453,7 +453,7 @@ public class PetApi { 200 successful operation - */ - public ApiResponse uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws ApiException { + public ApiResponse uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling uploadFile"); diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/api/StoreApi.java index 77d22b141e3..26e8ae19a7d 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/api/StoreApi.java @@ -59,7 +59,7 @@ public class StoreApi { 404 Order not found - */ - public void deleteOrder(String orderId) throws ApiException { + public void deleteOrder(@javax.annotation.Nonnull String orderId) throws ApiException { deleteOrderWithHttpInfo(orderId); } @@ -77,7 +77,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse deleteOrderWithHttpInfo(String orderId) throws ApiException { + public ApiResponse deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws ApiException { // Check required parameters if (orderId == null) { throw new ApiException(400, "Missing the required parameter 'orderId' when calling deleteOrder"); @@ -145,7 +145,7 @@ public class StoreApi { 404 Order not found - */ - public Order getOrderById(Long orderId) throws ApiException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws ApiException { return getOrderByIdWithHttpInfo(orderId).getData(); } @@ -164,7 +164,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse getOrderByIdWithHttpInfo(Long orderId) throws ApiException { + public ApiResponse getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws ApiException { // Check required parameters if (orderId == null) { throw new ApiException(400, "Missing the required parameter 'orderId' when calling getOrderById"); @@ -195,7 +195,7 @@ public class StoreApi { 400 Invalid Order - */ - public Order placeOrder(Order order) throws ApiException { + public Order placeOrder(@javax.annotation.Nonnull Order order) throws ApiException { return placeOrderWithHttpInfo(order).getData(); } @@ -213,7 +213,7 @@ public class StoreApi { 400 Invalid Order - */ - public ApiResponse placeOrderWithHttpInfo(Order order) throws ApiException { + public ApiResponse placeOrderWithHttpInfo(@javax.annotation.Nonnull Order order) throws ApiException { // Check required parameters if (order == null) { throw new ApiException(400, "Missing the required parameter 'order' when calling placeOrder"); diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/api/UserApi.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/api/UserApi.java index 55bf2bf39f6..5a6fa648c8a 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/api/UserApi.java @@ -59,7 +59,7 @@ public class UserApi { 0 successful operation - */ - public void createUser(User user) throws ApiException { + public void createUser(@javax.annotation.Nonnull User user) throws ApiException { createUserWithHttpInfo(user); } @@ -76,7 +76,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUserWithHttpInfo(User user) throws ApiException { + public ApiResponse createUserWithHttpInfo(@javax.annotation.Nonnull User user) throws ApiException { // Check required parameters if (user == null) { throw new ApiException(400, "Missing the required parameter 'user' when calling createUser"); @@ -101,7 +101,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithArrayInput(List user) throws ApiException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List user) throws ApiException { createUsersWithArrayInputWithHttpInfo(user); } @@ -118,7 +118,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithArrayInputWithHttpInfo(List user) throws ApiException { + public ApiResponse createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List user) throws ApiException { // Check required parameters if (user == null) { throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithArrayInput"); @@ -143,7 +143,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithListInput(List user) throws ApiException { + public void createUsersWithListInput(@javax.annotation.Nonnull List user) throws ApiException { createUsersWithListInputWithHttpInfo(user); } @@ -160,7 +160,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithListInputWithHttpInfo(List user) throws ApiException { + public ApiResponse createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List user) throws ApiException { // Check required parameters if (user == null) { throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithListInput"); @@ -186,7 +186,7 @@ public class UserApi { 404 User not found - */ - public void deleteUser(String username) throws ApiException { + public void deleteUser(@javax.annotation.Nonnull String username) throws ApiException { deleteUserWithHttpInfo(username); } @@ -204,7 +204,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse deleteUserWithHttpInfo(String username) throws ApiException { + public ApiResponse deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { // Check required parameters if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling deleteUser"); @@ -236,7 +236,7 @@ public class UserApi { 404 User not found - */ - public User getUserByName(String username) throws ApiException { + public User getUserByName(@javax.annotation.Nonnull String username) throws ApiException { return getUserByNameWithHttpInfo(username).getData(); } @@ -255,7 +255,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse getUserByNameWithHttpInfo(String username) throws ApiException { + public ApiResponse getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { // Check required parameters if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling getUserByName"); @@ -287,7 +287,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public String loginUser(String username, String password) throws ApiException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { return loginUserWithHttpInfo(username, password).getData(); } @@ -306,7 +306,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public ApiResponse loginUserWithHttpInfo(String username, String password) throws ApiException { + public ApiResponse loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { // Check required parameters if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling loginUser"); @@ -377,7 +377,7 @@ public class UserApi { 404 User not found - */ - public void updateUser(String username, User user) throws ApiException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { updateUserWithHttpInfo(username, user); } @@ -396,7 +396,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse updateUserWithHttpInfo(String username, User user) throws ApiException { + public ApiResponse updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { // Check required parameters if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser"); diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/api/PetApi.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/api/PetApi.java index afedb60c62c..24639c66132 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/api/PetApi.java @@ -62,7 +62,7 @@ public class PetApi { 405 Invalid input - */ - public Pet addPet(Pet pet) throws ApiException { + public Pet addPet(@javax.annotation.Nonnull Pet pet) throws ApiException { return addPetWithHttpInfo(pet).getData(); } @@ -80,7 +80,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse addPetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse addPetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException { // Check required parameters if (pet == null) { throw new ApiException(400, "Missing the required parameter 'pet' when calling addPet"); @@ -107,7 +107,7 @@ public class PetApi { 400 Invalid pet value - */ - public void deletePet(Long petId, String apiKey) throws ApiException { + public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { deletePetWithHttpInfo(petId, apiKey); } @@ -125,7 +125,7 @@ public class PetApi { 400 Invalid pet value - */ - public ApiResponse deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException { + public ApiResponse deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling deletePet"); @@ -162,7 +162,7 @@ public class PetApi { 400 Invalid status value - */ - public List findPetsByStatus(List status) throws ApiException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws ApiException { return findPetsByStatusWithHttpInfo(status).getData(); } @@ -180,7 +180,7 @@ public class PetApi { 400 Invalid status value - */ - public ApiResponse> findPetsByStatusWithHttpInfo(List status) throws ApiException { + public ApiResponse> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws ApiException { // Check required parameters if (status == null) { throw new ApiException(400, "Missing the required parameter 'status' when calling findPetsByStatus"); @@ -215,7 +215,7 @@ public class PetApi { * @deprecated */ @Deprecated - public List findPetsByTags(List tags) throws ApiException { + public List findPetsByTags(@javax.annotation.Nonnull List tags) throws ApiException { return findPetsByTagsWithHttpInfo(tags).getData(); } @@ -235,7 +235,7 @@ public class PetApi { * @deprecated */ @Deprecated - public ApiResponse> findPetsByTagsWithHttpInfo(List tags) throws ApiException { + public ApiResponse> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull List tags) throws ApiException { // Check required parameters if (tags == null) { throw new ApiException(400, "Missing the required parameter 'tags' when calling findPetsByTags"); @@ -269,7 +269,7 @@ public class PetApi { 404 Pet not found - */ - public Pet getPetById(Long petId) throws ApiException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws ApiException { return getPetByIdWithHttpInfo(petId).getData(); } @@ -288,7 +288,7 @@ public class PetApi { 404 Pet not found - */ - public ApiResponse getPetByIdWithHttpInfo(Long petId) throws ApiException { + public ApiResponse getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling getPetById"); @@ -324,7 +324,7 @@ public class PetApi { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public Pet updatePet(Pet pet) throws ApiException { + public Pet updatePet(@javax.annotation.Nonnull Pet pet) throws ApiException { return updatePetWithHttpInfo(pet).getData(); } @@ -346,7 +346,7 @@ public class PetApi { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public ApiResponse updatePetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse updatePetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException { // Check required parameters if (pet == null) { throw new ApiException(400, "Missing the required parameter 'pet' when calling updatePet"); @@ -374,7 +374,7 @@ public class PetApi { 405 Invalid input - */ - public void updatePetWithForm(Long petId, String name, String status) throws ApiException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -393,7 +393,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException { + public ApiResponse updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling updatePetWithForm"); @@ -434,7 +434,7 @@ public class PetApi { 200 successful operation - */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws ApiException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { return uploadFileWithHttpInfo(petId, additionalMetadata, _file).getData(); } @@ -453,7 +453,7 @@ public class PetApi { 200 successful operation - */ - public ApiResponse uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws ApiException { + public ApiResponse uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling uploadFile"); diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java index 77d22b141e3..26e8ae19a7d 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java @@ -59,7 +59,7 @@ public class StoreApi { 404 Order not found - */ - public void deleteOrder(String orderId) throws ApiException { + public void deleteOrder(@javax.annotation.Nonnull String orderId) throws ApiException { deleteOrderWithHttpInfo(orderId); } @@ -77,7 +77,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse deleteOrderWithHttpInfo(String orderId) throws ApiException { + public ApiResponse deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws ApiException { // Check required parameters if (orderId == null) { throw new ApiException(400, "Missing the required parameter 'orderId' when calling deleteOrder"); @@ -145,7 +145,7 @@ public class StoreApi { 404 Order not found - */ - public Order getOrderById(Long orderId) throws ApiException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws ApiException { return getOrderByIdWithHttpInfo(orderId).getData(); } @@ -164,7 +164,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse getOrderByIdWithHttpInfo(Long orderId) throws ApiException { + public ApiResponse getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws ApiException { // Check required parameters if (orderId == null) { throw new ApiException(400, "Missing the required parameter 'orderId' when calling getOrderById"); @@ -195,7 +195,7 @@ public class StoreApi { 400 Invalid Order - */ - public Order placeOrder(Order order) throws ApiException { + public Order placeOrder(@javax.annotation.Nonnull Order order) throws ApiException { return placeOrderWithHttpInfo(order).getData(); } @@ -213,7 +213,7 @@ public class StoreApi { 400 Invalid Order - */ - public ApiResponse placeOrderWithHttpInfo(Order order) throws ApiException { + public ApiResponse placeOrderWithHttpInfo(@javax.annotation.Nonnull Order order) throws ApiException { // Check required parameters if (order == null) { throw new ApiException(400, "Missing the required parameter 'order' when calling placeOrder"); diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/api/UserApi.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/api/UserApi.java index 55bf2bf39f6..5a6fa648c8a 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/api/UserApi.java @@ -59,7 +59,7 @@ public class UserApi { 0 successful operation - */ - public void createUser(User user) throws ApiException { + public void createUser(@javax.annotation.Nonnull User user) throws ApiException { createUserWithHttpInfo(user); } @@ -76,7 +76,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUserWithHttpInfo(User user) throws ApiException { + public ApiResponse createUserWithHttpInfo(@javax.annotation.Nonnull User user) throws ApiException { // Check required parameters if (user == null) { throw new ApiException(400, "Missing the required parameter 'user' when calling createUser"); @@ -101,7 +101,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithArrayInput(List user) throws ApiException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List user) throws ApiException { createUsersWithArrayInputWithHttpInfo(user); } @@ -118,7 +118,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithArrayInputWithHttpInfo(List user) throws ApiException { + public ApiResponse createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List user) throws ApiException { // Check required parameters if (user == null) { throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithArrayInput"); @@ -143,7 +143,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithListInput(List user) throws ApiException { + public void createUsersWithListInput(@javax.annotation.Nonnull List user) throws ApiException { createUsersWithListInputWithHttpInfo(user); } @@ -160,7 +160,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithListInputWithHttpInfo(List user) throws ApiException { + public ApiResponse createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List user) throws ApiException { // Check required parameters if (user == null) { throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithListInput"); @@ -186,7 +186,7 @@ public class UserApi { 404 User not found - */ - public void deleteUser(String username) throws ApiException { + public void deleteUser(@javax.annotation.Nonnull String username) throws ApiException { deleteUserWithHttpInfo(username); } @@ -204,7 +204,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse deleteUserWithHttpInfo(String username) throws ApiException { + public ApiResponse deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { // Check required parameters if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling deleteUser"); @@ -236,7 +236,7 @@ public class UserApi { 404 User not found - */ - public User getUserByName(String username) throws ApiException { + public User getUserByName(@javax.annotation.Nonnull String username) throws ApiException { return getUserByNameWithHttpInfo(username).getData(); } @@ -255,7 +255,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse getUserByNameWithHttpInfo(String username) throws ApiException { + public ApiResponse getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { // Check required parameters if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling getUserByName"); @@ -287,7 +287,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public String loginUser(String username, String password) throws ApiException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { return loginUserWithHttpInfo(username, password).getData(); } @@ -306,7 +306,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public ApiResponse loginUserWithHttpInfo(String username, String password) throws ApiException { + public ApiResponse loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { // Check required parameters if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling loginUser"); @@ -377,7 +377,7 @@ public class UserApi { 404 User not found - */ - public void updateUser(String username, User user) throws ApiException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { updateUserWithHttpInfo(username, user); } @@ -396,7 +396,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse updateUserWithHttpInfo(String username, User user) throws ApiException { + public ApiResponse updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { // Check required parameters if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser"); diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index e2c9607dcf6..0503b6f630e 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -59,7 +59,7 @@ public class AnotherFakeApi { 200 successful operation - */ - public Client call123testSpecialTags(Client client) throws ApiException { + public Client call123testSpecialTags(@javax.annotation.Nonnull Client client) throws ApiException { return call123testSpecialTagsWithHttpInfo(client).getData(); } @@ -76,7 +76,7 @@ public class AnotherFakeApi { 200 successful operation - */ - public ApiResponse call123testSpecialTagsWithHttpInfo(Client client) throws ApiException { + public ApiResponse call123testSpecialTagsWithHttpInfo(@javax.annotation.Nonnull Client client) throws ApiException { // Check required parameters if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags"); diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java index d42dfefdf25..6667219963f 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java @@ -105,7 +105,7 @@ public class FakeApi { 200 Output boolean - */ - public Boolean fakeOuterBooleanSerialize(Boolean body) throws ApiException { + public Boolean fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body) throws ApiException { return fakeOuterBooleanSerializeWithHttpInfo(body).getData(); } @@ -122,7 +122,7 @@ public class FakeApi { 200 Output boolean - */ - public ApiResponse fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws ApiException { + public ApiResponse fakeOuterBooleanSerializeWithHttpInfo(@javax.annotation.Nullable Boolean body) throws ApiException { String localVarAccept = apiClient.selectHeaderAccept("*/*"); String localVarContentType = apiClient.selectHeaderContentType("application/json"); GenericType localVarReturnType = new GenericType() {}; @@ -143,7 +143,7 @@ public class FakeApi { 200 Output composite - */ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException { + public OuterComposite fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite outerComposite) throws ApiException { return fakeOuterCompositeSerializeWithHttpInfo(outerComposite).getData(); } @@ -160,7 +160,7 @@ public class FakeApi { 200 Output composite - */ - public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws ApiException { + public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(@javax.annotation.Nullable OuterComposite outerComposite) throws ApiException { String localVarAccept = apiClient.selectHeaderAccept("*/*"); String localVarContentType = apiClient.selectHeaderContentType("application/json"); GenericType localVarReturnType = new GenericType() {}; @@ -181,7 +181,7 @@ public class FakeApi { 200 Output number - */ - public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws ApiException { + public BigDecimal fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body) throws ApiException { return fakeOuterNumberSerializeWithHttpInfo(body).getData(); } @@ -198,7 +198,7 @@ public class FakeApi { 200 Output number - */ - public ApiResponse fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws ApiException { + public ApiResponse fakeOuterNumberSerializeWithHttpInfo(@javax.annotation.Nullable BigDecimal body) throws ApiException { String localVarAccept = apiClient.selectHeaderAccept("*/*"); String localVarContentType = apiClient.selectHeaderContentType("application/json"); GenericType localVarReturnType = new GenericType() {}; @@ -219,7 +219,7 @@ public class FakeApi { 200 Output string - */ - public String fakeOuterStringSerialize(String body) throws ApiException { + public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws ApiException { return fakeOuterStringSerializeWithHttpInfo(body).getData(); } @@ -236,7 +236,7 @@ public class FakeApi { 200 Output string - */ - public ApiResponse fakeOuterStringSerializeWithHttpInfo(String body) throws ApiException { + public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws ApiException { String localVarAccept = apiClient.selectHeaderAccept("*/*"); String localVarContentType = apiClient.selectHeaderContentType("application/json"); GenericType localVarReturnType = new GenericType() {}; @@ -292,7 +292,7 @@ public class FakeApi { 200 ok - */ - public void postArrayOfString(List requestBody) throws ApiException { + public void postArrayOfString(@javax.annotation.Nullable List requestBody) throws ApiException { postArrayOfStringWithHttpInfo(requestBody); } @@ -309,7 +309,7 @@ public class FakeApi { 200 ok - */ - public ApiResponse postArrayOfStringWithHttpInfo(List requestBody) throws ApiException { + public ApiResponse postArrayOfStringWithHttpInfo(@javax.annotation.Nullable List requestBody) throws ApiException { String localVarAccept = apiClient.selectHeaderAccept(); String localVarContentType = apiClient.selectHeaderContentType("application/json"); return apiClient.invokeAPI("FakeApi.postArrayOfString", "/fake/request-array-string", "POST", new ArrayList<>(), requestBody, @@ -328,7 +328,7 @@ public class FakeApi { 200 successful operation - */ - public void testAdditionalPropertiesReference(Map requestBody) throws ApiException { + public void testAdditionalPropertiesReference(@javax.annotation.Nonnull Map requestBody) throws ApiException { testAdditionalPropertiesReferenceWithHttpInfo(requestBody); } @@ -345,7 +345,7 @@ public class FakeApi { 200 successful operation - */ - public ApiResponse testAdditionalPropertiesReferenceWithHttpInfo(Map requestBody) throws ApiException { + public ApiResponse testAdditionalPropertiesReferenceWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws ApiException { // Check required parameters if (requestBody == null) { throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testAdditionalPropertiesReference"); @@ -369,7 +369,7 @@ public class FakeApi { 200 Success - */ - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException { + public void testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws ApiException { testBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass); } @@ -386,7 +386,7 @@ public class FakeApi { 200 Success - */ - public ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws ApiException { + public ApiResponse testBodyWithFileSchemaWithHttpInfo(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws ApiException { // Check required parameters if (fileSchemaTestClass == null) { throw new ApiException(400, "Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema"); @@ -411,7 +411,7 @@ public class FakeApi { 200 Success - */ - public void testBodyWithQueryParams(String query, User user) throws ApiException { + public void testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws ApiException { testBodyWithQueryParamsWithHttpInfo(query, user); } @@ -429,7 +429,7 @@ public class FakeApi { 200 Success - */ - public ApiResponse testBodyWithQueryParamsWithHttpInfo(String query, User user) throws ApiException { + public ApiResponse testBodyWithQueryParamsWithHttpInfo(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws ApiException { // Check required parameters if (query == null) { throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams"); @@ -462,7 +462,7 @@ public class FakeApi { 200 successful operation - */ - public Client testClientModel(Client client) throws ApiException { + public Client testClientModel(@javax.annotation.Nonnull Client client) throws ApiException { return testClientModelWithHttpInfo(client).getData(); } @@ -479,7 +479,7 @@ public class FakeApi { 200 successful operation - */ - public ApiResponse testClientModelWithHttpInfo(Client client) throws ApiException { + public ApiResponse testClientModelWithHttpInfo(@javax.annotation.Nonnull Client client) throws ApiException { // Check required parameters if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling testClientModel"); @@ -518,7 +518,7 @@ public class FakeApi { 404 User not found - */ - 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 ApiException { + 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 ApiException { testEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -549,7 +549,7 @@ public class FakeApi { 404 User not found - */ - public ApiResponse 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 ApiException { + public ApiResponse 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 ApiException { // Check required parameters if (number == null) { throw new ApiException(400, "Missing the required parameter 'number' when calling testEndpointParameters"); @@ -628,7 +628,7 @@ public class FakeApi { 404 Not found - */ - public void testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { + 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 enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws ApiException { testEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -653,7 +653,7 @@ public class FakeApi { 404 Not found - */ - public ApiResponse testEnumParametersWithHttpInfo(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { + public ApiResponse 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 enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws ApiException { // Query parameters List localVarQueryParams = new ArrayList<>( apiClient.parameterToPairs("multi", "enum_query_string_array", enumQueryStringArray) @@ -687,7 +687,7 @@ public class FakeApi { null, null, false); } -private ApiResponse testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { +private ApiResponse 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 ApiException { // Check required parameters if (requiredStringGroup == null) { throw new ApiException(400, "Missing the required parameter 'requiredStringGroup' when calling testGroupParameters"); @@ -723,11 +723,17 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString } public class APItestGroupParametersRequest { + @javax.annotation.Nonnull private Integer requiredStringGroup; + @javax.annotation.Nonnull private Boolean requiredBooleanGroup; + @javax.annotation.Nonnull private Long requiredInt64Group; + @javax.annotation.Nullable private Integer stringGroup; + @javax.annotation.Nullable private Boolean booleanGroup; + @javax.annotation.Nullable private Long int64Group; private APItestGroupParametersRequest() { @@ -738,7 +744,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString * @param requiredStringGroup Required String in group parameters (required) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest requiredStringGroup(Integer requiredStringGroup) { + public APItestGroupParametersRequest requiredStringGroup(@javax.annotation.Nonnull Integer requiredStringGroup) { this.requiredStringGroup = requiredStringGroup; return this; } @@ -748,7 +754,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString * @param requiredBooleanGroup Required Boolean in group parameters (required) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest requiredBooleanGroup(Boolean requiredBooleanGroup) { + public APItestGroupParametersRequest requiredBooleanGroup(@javax.annotation.Nonnull Boolean requiredBooleanGroup) { this.requiredBooleanGroup = requiredBooleanGroup; return this; } @@ -758,7 +764,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString * @param requiredInt64Group Required Integer in group parameters (required) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest requiredInt64Group(Long requiredInt64Group) { + public APItestGroupParametersRequest requiredInt64Group(@javax.annotation.Nonnull Long requiredInt64Group) { this.requiredInt64Group = requiredInt64Group; return this; } @@ -768,7 +774,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString * @param stringGroup String in group parameters (optional) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest stringGroup(Integer stringGroup) { + public APItestGroupParametersRequest stringGroup(@javax.annotation.Nullable Integer stringGroup) { this.stringGroup = stringGroup; return this; } @@ -778,7 +784,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString * @param booleanGroup Boolean in group parameters (optional) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest booleanGroup(Boolean booleanGroup) { + public APItestGroupParametersRequest booleanGroup(@javax.annotation.Nullable Boolean booleanGroup) { this.booleanGroup = booleanGroup; return this; } @@ -788,7 +794,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString * @param int64Group Integer in group parameters (optional) * @return APItestGroupParametersRequest */ - public APItestGroupParametersRequest int64Group(Long int64Group) { + public APItestGroupParametersRequest int64Group(@javax.annotation.Nullable Long int64Group) { this.int64Group = int64Group; return this; } @@ -850,7 +856,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 successful operation - */ - public void testInlineAdditionalProperties(Map requestBody) throws ApiException { + public void testInlineAdditionalProperties(@javax.annotation.Nonnull Map requestBody) throws ApiException { testInlineAdditionalPropertiesWithHttpInfo(requestBody); } @@ -867,7 +873,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 successful operation - */ - public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map requestBody) throws ApiException { + public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws ApiException { // Check required parameters if (requestBody == null) { throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties"); @@ -891,7 +897,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 successful operation - */ - public void testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { + public void testInlineFreeformAdditionalProperties(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { testInlineFreeformAdditionalPropertiesWithHttpInfo(testInlineFreeformAdditionalPropertiesRequest); } @@ -908,7 +914,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 successful operation - */ - public ApiResponse testInlineFreeformAdditionalPropertiesWithHttpInfo(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { + public ApiResponse testInlineFreeformAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException { // Check required parameters if (testInlineFreeformAdditionalPropertiesRequest == null) { throw new ApiException(400, "Missing the required parameter 'testInlineFreeformAdditionalPropertiesRequest' when calling testInlineFreeformAdditionalProperties"); @@ -933,7 +939,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 successful operation - */ - public void testJsonFormData(String param, String param2) throws ApiException { + public void testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws ApiException { testJsonFormDataWithHttpInfo(param, param2); } @@ -951,7 +957,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 successful operation - */ - public ApiResponse testJsonFormDataWithHttpInfo(String param, String param2) throws ApiException { + public ApiResponse testJsonFormDataWithHttpInfo(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws ApiException { // Check required parameters if (param == null) { throw new ApiException(400, "Missing the required parameter 'param' when calling testJsonFormData"); @@ -987,7 +993,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 Success - */ - public void testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context) throws ApiException { + 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) throws ApiException { testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context); } @@ -1008,7 +1014,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 Success - */ - public ApiResponse testQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context) throws ApiException { + public ApiResponse 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) throws ApiException { // Check required parameters if (pipe == null) { throw new ApiException(400, "Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat"); @@ -1053,7 +1059,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 successful operation - */ - public void testStringMapReference(Map requestBody) throws ApiException { + public void testStringMapReference(@javax.annotation.Nonnull Map requestBody) throws ApiException { testStringMapReferenceWithHttpInfo(requestBody); } @@ -1070,7 +1076,7 @@ private ApiResponse testGroupParametersWithHttpInfo(Integer requiredString 200 successful operation - */ - public ApiResponse testStringMapReferenceWithHttpInfo(Map requestBody) throws ApiException { + public ApiResponse testStringMapReferenceWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws ApiException { // Check required parameters if (requestBody == null) { throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testStringMapReference"); diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index d1174179390..09ed26e1017 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -59,7 +59,7 @@ public class FakeClassnameTags123Api { 200 successful operation - */ - public Client testClassname(Client client) throws ApiException { + public Client testClassname(@javax.annotation.Nonnull Client client) throws ApiException { return testClassnameWithHttpInfo(client).getData(); } @@ -76,7 +76,7 @@ public class FakeClassnameTags123Api { 200 successful operation - */ - public ApiResponse testClassnameWithHttpInfo(Client client) throws ApiException { + public ApiResponse testClassnameWithHttpInfo(@javax.annotation.Nonnull Client client) throws ApiException { // Check required parameters if (client == null) { throw new ApiException(400, "Missing the required parameter 'client' when calling testClassname"); diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/PetApi.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/PetApi.java index d19c1acfb00..b3e972d5620 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/PetApi.java @@ -60,7 +60,7 @@ public class PetApi { 405 Invalid input - */ - public void addPet(Pet pet) throws ApiException { + public void addPet(@javax.annotation.Nonnull Pet pet) throws ApiException { addPetWithHttpInfo(pet); } @@ -77,7 +77,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse addPetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse addPetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException { // Check required parameters if (pet == null) { throw new ApiException(400, "Missing the required parameter 'pet' when calling addPet"); @@ -103,7 +103,7 @@ public class PetApi { 400 Invalid pet value - */ - public void deletePet(Long petId, String apiKey) throws ApiException { + public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { deletePetWithHttpInfo(petId, apiKey); } @@ -121,7 +121,7 @@ public class PetApi { 400 Invalid pet value - */ - public ApiResponse deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException { + public ApiResponse deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling deletePet"); @@ -158,7 +158,7 @@ public class PetApi { 400 Invalid status value - */ - public List findPetsByStatus(List status) throws ApiException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws ApiException { return findPetsByStatusWithHttpInfo(status).getData(); } @@ -176,7 +176,7 @@ public class PetApi { 400 Invalid status value - */ - public ApiResponse> findPetsByStatusWithHttpInfo(List status) throws ApiException { + public ApiResponse> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws ApiException { // Check required parameters if (status == null) { throw new ApiException(400, "Missing the required parameter 'status' when calling findPetsByStatus"); @@ -211,7 +211,7 @@ public class PetApi { * @deprecated */ @Deprecated - public List findPetsByTags(List tags) throws ApiException { + public List findPetsByTags(@javax.annotation.Nonnull List tags) throws ApiException { return findPetsByTagsWithHttpInfo(tags).getData(); } @@ -231,7 +231,7 @@ public class PetApi { * @deprecated */ @Deprecated - public ApiResponse> findPetsByTagsWithHttpInfo(List tags) throws ApiException { + public ApiResponse> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull List tags) throws ApiException { // Check required parameters if (tags == null) { throw new ApiException(400, "Missing the required parameter 'tags' when calling findPetsByTags"); @@ -265,7 +265,7 @@ public class PetApi { 404 Pet not found - */ - public Pet getPetById(Long petId) throws ApiException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws ApiException { return getPetByIdWithHttpInfo(petId).getData(); } @@ -284,7 +284,7 @@ public class PetApi { 404 Pet not found - */ - public ApiResponse getPetByIdWithHttpInfo(Long petId) throws ApiException { + public ApiResponse getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling getPetById"); @@ -316,7 +316,7 @@ public class PetApi { 405 Validation exception - */ - public void updatePet(Pet pet) throws ApiException { + public void updatePet(@javax.annotation.Nonnull Pet pet) throws ApiException { updatePetWithHttpInfo(pet); } @@ -335,7 +335,7 @@ public class PetApi { 405 Validation exception - */ - public ApiResponse updatePetWithHttpInfo(Pet pet) throws ApiException { + public ApiResponse updatePetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException { // Check required parameters if (pet == null) { throw new ApiException(400, "Missing the required parameter 'pet' when calling updatePet"); @@ -362,7 +362,7 @@ public class PetApi { 405 Invalid input - */ - public void updatePetWithForm(Long petId, String name, String status) throws ApiException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -381,7 +381,7 @@ public class PetApi { 405 Invalid input - */ - public ApiResponse updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException { + public ApiResponse updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling updatePetWithForm"); @@ -422,7 +422,7 @@ public class PetApi { 200 successful operation - */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws ApiException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { return uploadFileWithHttpInfo(petId, additionalMetadata, _file).getData(); } @@ -441,7 +441,7 @@ public class PetApi { 200 successful operation - */ - public ApiResponse uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws ApiException { + public ApiResponse uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling uploadFile"); @@ -483,7 +483,7 @@ public class PetApi { 200 successful operation - */ - public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws ApiException { + public ModelApiResponse uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws ApiException { return uploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata).getData(); } @@ -502,7 +502,7 @@ public class PetApi { 200 successful operation - */ - public ApiResponse uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws ApiException { + public ApiResponse uploadFileWithRequiredFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws ApiException { // Check required parameters if (petId == null) { throw new ApiException(400, "Missing the required parameter 'petId' when calling uploadFileWithRequiredFile"); diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/StoreApi.java index bcdd06fe006..eb1f761b96e 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/StoreApi.java @@ -59,7 +59,7 @@ public class StoreApi { 404 Order not found - */ - public void deleteOrder(String orderId) throws ApiException { + public void deleteOrder(@javax.annotation.Nonnull String orderId) throws ApiException { deleteOrderWithHttpInfo(orderId); } @@ -77,7 +77,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse deleteOrderWithHttpInfo(String orderId) throws ApiException { + public ApiResponse deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws ApiException { // Check required parameters if (orderId == null) { throw new ApiException(400, "Missing the required parameter 'orderId' when calling deleteOrder"); @@ -145,7 +145,7 @@ public class StoreApi { 404 Order not found - */ - public Order getOrderById(Long orderId) throws ApiException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws ApiException { return getOrderByIdWithHttpInfo(orderId).getData(); } @@ -164,7 +164,7 @@ public class StoreApi { 404 Order not found - */ - public ApiResponse getOrderByIdWithHttpInfo(Long orderId) throws ApiException { + public ApiResponse getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws ApiException { // Check required parameters if (orderId == null) { throw new ApiException(400, "Missing the required parameter 'orderId' when calling getOrderById"); @@ -195,7 +195,7 @@ public class StoreApi { 400 Invalid Order - */ - public Order placeOrder(Order order) throws ApiException { + public Order placeOrder(@javax.annotation.Nonnull Order order) throws ApiException { return placeOrderWithHttpInfo(order).getData(); } @@ -213,7 +213,7 @@ public class StoreApi { 400 Invalid Order - */ - public ApiResponse placeOrderWithHttpInfo(Order order) throws ApiException { + public ApiResponse placeOrderWithHttpInfo(@javax.annotation.Nonnull Order order) throws ApiException { // Check required parameters if (order == null) { throw new ApiException(400, "Missing the required parameter 'order' when calling placeOrder"); diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/UserApi.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/UserApi.java index f6faf3d0288..e412f4aed6a 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/UserApi.java @@ -59,7 +59,7 @@ public class UserApi { 0 successful operation - */ - public void createUser(User user) throws ApiException { + public void createUser(@javax.annotation.Nonnull User user) throws ApiException { createUserWithHttpInfo(user); } @@ -76,7 +76,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUserWithHttpInfo(User user) throws ApiException { + public ApiResponse createUserWithHttpInfo(@javax.annotation.Nonnull User user) throws ApiException { // Check required parameters if (user == null) { throw new ApiException(400, "Missing the required parameter 'user' when calling createUser"); @@ -100,7 +100,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithArrayInput(List user) throws ApiException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List user) throws ApiException { createUsersWithArrayInputWithHttpInfo(user); } @@ -117,7 +117,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithArrayInputWithHttpInfo(List user) throws ApiException { + public ApiResponse createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List user) throws ApiException { // Check required parameters if (user == null) { throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithArrayInput"); @@ -141,7 +141,7 @@ public class UserApi { 0 successful operation - */ - public void createUsersWithListInput(List user) throws ApiException { + public void createUsersWithListInput(@javax.annotation.Nonnull List user) throws ApiException { createUsersWithListInputWithHttpInfo(user); } @@ -158,7 +158,7 @@ public class UserApi { 0 successful operation - */ - public ApiResponse createUsersWithListInputWithHttpInfo(List user) throws ApiException { + public ApiResponse createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List user) throws ApiException { // Check required parameters if (user == null) { throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithListInput"); @@ -183,7 +183,7 @@ public class UserApi { 404 User not found - */ - public void deleteUser(String username) throws ApiException { + public void deleteUser(@javax.annotation.Nonnull String username) throws ApiException { deleteUserWithHttpInfo(username); } @@ -201,7 +201,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse deleteUserWithHttpInfo(String username) throws ApiException { + public ApiResponse deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { // Check required parameters if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling deleteUser"); @@ -232,7 +232,7 @@ public class UserApi { 404 User not found - */ - public User getUserByName(String username) throws ApiException { + public User getUserByName(@javax.annotation.Nonnull String username) throws ApiException { return getUserByNameWithHttpInfo(username).getData(); } @@ -251,7 +251,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse getUserByNameWithHttpInfo(String username) throws ApiException { + public ApiResponse getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { // Check required parameters if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling getUserByName"); @@ -283,7 +283,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public String loginUser(String username, String password) throws ApiException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { return loginUserWithHttpInfo(username, password).getData(); } @@ -302,7 +302,7 @@ public class UserApi { 400 Invalid username/password supplied - */ - public ApiResponse loginUserWithHttpInfo(String username, String password) throws ApiException { + public ApiResponse loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException { // Check required parameters if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling loginUser"); @@ -372,7 +372,7 @@ public class UserApi { 404 User not found - */ - public void updateUser(String username, User user) throws ApiException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { updateUserWithHttpInfo(username, user); } @@ -391,7 +391,7 @@ public class UserApi { 404 User not found - */ - public ApiResponse updateUserWithHttpInfo(String username, User user) throws ApiException { + public ApiResponse updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException { // Check required parameters if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser");