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 f3e27a079c2..3950d7a2af3 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 @@ -38,8 +38,8 @@ public class {{classname}} { public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - {{#operation}} + {{^vendorExtensions.x-group-parameters}} /** * {{summary}} * {{notes}} @@ -53,10 +53,10 @@ public class {{classname}} { {{#responses.0}} * @http.response.details - - {{#responses}} - - {{/responses}} + + {{#responses}} + + {{/responses}}
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
{{/responses.0}} {{#isDeprecated}} @@ -71,13 +71,11 @@ public class {{classname}} { @Deprecated {{/isDeprecated}} public {{#returnType}}{{{returnType}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) throws ApiException { - {{#returnType}} - return {{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}).getData(); - {{/returnType}}{{^returnType}} - {{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}); - {{/returnType}} + {{#returnType}}return {{/returnType}}{{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}){{#returnType}}.getData(){{/returnType}}; } + {{/vendorExtensions.x-group-parameters}} + {{^vendorExtensions.x-group-parameters}} /** * {{summary}} * {{notes}} @@ -89,10 +87,10 @@ public class {{classname}} { {{#responses.0}} * @http.response.details - - {{#responses}} - - {{/responses}} + + {{#responses}} + + {{/responses}}
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
{{/responses.0}} {{#isDeprecated}} @@ -106,7 +104,7 @@ public class {{classname}} { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}> {{operationId}}WithHttpInfo({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) throws ApiException { + public{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}private{{/vendorExtensions.x-group-parameters}} ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}> {{operationId}}WithHttpInfo({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) throws ApiException { Object localVarPostBody = {{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}}; {{#allParams}}{{#required}} // verify the required parameter '{{paramName}}' is set @@ -152,13 +150,90 @@ public class {{classname}} { String[] localVarAuthNames = new String[] { {{#authMethods}}"{{name}}"{{#hasMore}}, {{/hasMore}}{{/authMethods}} }; - {{#returnType}} - GenericType<{{{returnType}}}> localVarReturnType = new GenericType<{{{returnType}}}>() {}; - return apiClient.invokeAPI(localVarPath, "{{httpMethod}}", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - {{/returnType}}{{^returnType}} - return apiClient.invokeAPI(localVarPath, "{{httpMethod}}", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); - {{/returnType}} + {{#returnType}}GenericType<{{{returnType}}}> localVarReturnType = new GenericType<{{{returnType}}}>() {};{{/returnType}} + return apiClient.invokeAPI(localVarPath, "{{httpMethod}}", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, {{#returnType}}localVarReturnType{{/returnType}}{{^returnType}}null{{/returnType}}); } + {{#vendorExtensions.x-group-parameters}} + + public class API{{operationId}}Request { + {{#allParams}} + private {{#isRequired}}final {{/isRequired}}{{{dataType}}} {{localVariablePrefix}}{{paramName}}; + {{/allParams}} + + private API{{operationId}}Request({{#pathParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/pathParams}}) { + {{#pathParams}} + this.{{localVariablePrefix}}{{paramName}} = {{paramName}}; + {{/pathParams}} + } + {{#allParams}}{{^isPathParam}} + + /** + * Set {{paramName}} + * @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}}) { + this.{{localVariablePrefix}}{{paramName}} = {{paramName}}; + return this; + } + {{/isPathParam}}{{/allParams}} + + /** + * Execute {{operationId}} request + {{#returnType}}* @return {{.}}{{/returnType}} + * @throws ApiException if fails to make API call + {{#responses.0}} + * @http.response.details + + + {{#responses}} + + {{/responses}} +
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+ {{/responses.0}} + {{#isDeprecated}}* @deprecated{{/isDeprecated}} + */ + {{#isDeprecated}}@Deprecated{{/isDeprecated}} + public {{#returnType}}{{{.}}}{{/returnType}}{{^returnType}}void{{/returnType}} execute() throws ApiException { + {{#returnType}}return {{/returnType}}this.executeWithHttpInfo().getData(); + } + + /** + * Execute {{operationId}} request with HTTP info returned + * @return ApiResponse<{{#returnType}}{{.}}{{/returnType}}{{^returnType}}Void{{/returnType}}> + * @throws ApiException if fails to make API call + {{#responses.0}} + * @http.response.details + + + {{#responses}} + + {{/responses}} +
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+ {{/responses.0}} + {{#isDeprecated}}* @deprecated{{/isDeprecated}} + */ + {{#isDeprecated}}@Deprecated{{/isDeprecated}} + public ApiResponse<{{#returnType}}{{{.}}}{{/returnType}}{{^returnType}}Void{{/returnType}}> executeWithHttpInfo() throws ApiException { + return {{operationId}}WithHttpInfo({{#allParams}}{{localVariablePrefix}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}); + } + } + + /** + * {{summary}} + * {{notes}}{{#pathParams}} + * @param {{paramName}} {{description}} (required){{/pathParams}} + * @return {{operationId}}Request + * @throws ApiException if fails to make API call + {{#isDeprecated}}* @deprecated{{/isDeprecated}} + {{#externalDocs}}* {{description}} + * @see {{summary}} Documentation{{/externalDocs}} + */ + {{#isDeprecated}}@Deprecated{{/isDeprecated}} + public API{{operationId}}Request {{operationId}}({{#pathParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/pathParams}}) throws ApiException { + return new API{{operationId}}Request({{#pathParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/pathParams}}); + } + {{/vendorExtensions.x-group-parameters}} {{/operation}} } {{/operations}} diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/api_doc.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/api_doc.mustache new file mode 100644 index 00000000000..7e62976258b --- /dev/null +++ b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/api_doc.mustache @@ -0,0 +1,111 @@ +# {{classname}}{{#description}} + +{{description}}{{/description}} + +All URIs are relative to *{{basePath}}* + +Method | HTTP request | Description +------------- | ------------- | ------------- +{{#operations}}{{#operation}}[**{{operationId}}**]({{classname}}.md#{{operationId}}) | **{{httpMethod}}** {{path}} | {{#summary}}{{summary}}{{/summary}} +{{/operation}}{{/operations}} + +{{#operations}} +{{#operation}} + +## {{operationId}} + +{{^vendorExtensions.x-group-parameters}}> {{#returnType}}{{returnType}} {{/returnType}}{{operationId}}({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}){{/vendorExtensions.x-group-parameters}} +{{#vendorExtensions.x-group-parameters}}> {{#returnType}}{{returnType}} {{/returnType}}{{operationId}}({{#pathParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/pathParams}}){{#allParams}}{{^isPathParam}}.{{paramName}}({{paramName}}){{/isPathParam}}{{/allParams}}.execute();{{/vendorExtensions.x-group-parameters}} + +{{summary}}{{#notes}} + +{{{unescapedNotes}}}{{/notes}} + +### Example + +```java +// Import classes: +import {{{invokerPackage}}}.ApiClient; +import {{{invokerPackage}}}.ApiException; +import {{{invokerPackage}}}.Configuration;{{#hasAuthMethods}} +import {{{invokerPackage}}}.auth.*;{{/hasAuthMethods}} +import {{{invokerPackage}}}.models.*; +import {{{package}}}.{{{classname}}}; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("{{{basePath}}}"); + {{#hasAuthMethods}} + {{#authMethods}}{{#isBasic}}{{#isBasicBasic}} + // Configure HTTP basic authorization: {{{name}}} + HttpBasicAuth {{{name}}} = (HttpBasicAuth) defaultClient.getAuthentication("{{{name}}}"); + {{{name}}}.setUsername("YOUR USERNAME"); + {{{name}}}.setPassword("YOUR PASSWORD");{{/isBasicBasic}}{{#isBasicBearer}} + // Configure HTTP bearer authorization: {{{name}}} + HttpBearerAuth {{{name}}} = (HttpBearerAuth) defaultClient.getAuthentication("{{{name}}}"); + {{{name}}}.setBearerToken("BEARER TOKEN");{{/isBasicBearer}}{{/isBasic}}{{#isApiKey}} + // Configure API key authorization: {{{name}}} + ApiKeyAuth {{{name}}} = (ApiKeyAuth) defaultClient.getAuthentication("{{{name}}}"); + {{{name}}}.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //{{{name}}}.setApiKeyPrefix("Token");{{/isApiKey}}{{#isOAuth}} + // Configure OAuth2 access token for authorization: {{{name}}} + OAuth {{{name}}} = (OAuth) defaultClient.getAuthentication("{{{name}}}"); + {{{name}}}.setAccessToken("YOUR ACCESS TOKEN");{{/isOAuth}} + {{/authMethods}} + {{/hasAuthMethods}} + + {{{classname}}} apiInstance = new {{{classname}}}(defaultClient); + {{#allParams}} + {{{dataType}}} {{{paramName}}} = {{{example}}}; // {{{dataType}}} | {{{description}}} + {{/allParams}} + try { {{^vendorExtensions.x-group-parameters}} + {{#returnType}}{{{returnType}}} result = {{/returnType}}apiInstance.{{{operationId}}}({{#allParams}}{{{paramName}}}{{#hasMore}}, {{/hasMore}}{{/allParams}});{{/vendorExtensions.x-group-parameters}} + {{#vendorExtensions.x-group-parameters}}{{#returnType}}{{{returnType}}} result = {{/returnType}}api.{{operationId}}({{#pathParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/pathParams}}){{#allParams}}{{^isPathParam}} + .{{paramName}}({{paramName}}){{/isPathParam}}{{/allParams}} + .execute();{{/vendorExtensions.x-group-parameters}} + {{#returnType}}System.out.println(result);{{/returnType}} + } catch (ApiException e) { + System.err.println("Exception when calling {{{classname}}}#{{{operationId}}}"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +{{^allParams}}This endpoint does not need any parameter.{{/allParams}}{{#allParams}}{{#-last}} +Name | Type | Description | Notes +------------- | ------------- | ------------- | -------------{{/-last}}{{/allParams}} +{{#allParams}} **{{paramName}}** | {{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}{{#isFile}}**{{dataType}}**{{/isFile}}{{^isFile}}[**{{dataType}}**]({{baseType}}.md){{/isFile}}{{/isPrimitiveType}}| {{description}} |{{^required}} [optional]{{/required}}{{^isContainer}}{{#defaultValue}} [default to {{defaultValue}}]{{/defaultValue}}{{/isContainer}}{{#allowableValues}} [enum: {{#values}}{{{.}}}{{^-last}}, {{/-last}}{{/values}}]{{/allowableValues}} +{{/allParams}} + +### Return type + +{{#returnType}}{{#returnTypeIsPrimitive}}**{{returnType}}**{{/returnTypeIsPrimitive}}{{^returnTypeIsPrimitive}}[**{{returnType}}**]({{returnBaseType}}.md){{/returnTypeIsPrimitive}}{{/returnType}}{{^returnType}}null (empty response body){{/returnType}} + +### Authorization + +{{^authMethods}}No authorization required{{/authMethods}}{{#authMethods}}[{{name}}](../README.md#{{name}}){{^-last}}, {{/-last}}{{/authMethods}} + +### HTTP request headers + +- **Content-Type**: {{#consumes}}{{{mediaType}}}{{#hasMore}}, {{/hasMore}}{{/consumes}}{{^consumes}}Not defined{{/consumes}} +- **Accept**: {{#produces}}{{{mediaType}}}{{#hasMore}}, {{/hasMore}}{{/produces}}{{^produces}}Not defined{{/produces}} + +{{#responses.0}} +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +{{#responses}} +| **{{code}}** | {{message}} | {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}} | +{{/responses}} +{{/responses.0}} + +{{/operation}} +{{/operations}} diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/api_test.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/api_test.mustache new file mode 100644 index 00000000000..21e0f97d639 --- /dev/null +++ b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/api_test.mustache @@ -0,0 +1,51 @@ +{{>licenseInfo}} + +package {{package}}; + +import {{invokerPackage}}.ApiException; +{{#imports}}import {{import}}; +{{/imports}} +import org.junit.Test; +import org.junit.Ignore; + +{{^fullJavaUtil}} +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +{{/fullJavaUtil}} + +/** + * API tests for {{classname}} + */ +@Ignore +public class {{classname}}Test { + + private final {{classname}} api = new {{classname}}(); + + {{#operations}}{{#operation}} + /** + * {{summary}} + * + * {{notes}} + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void {{operationId}}Test() throws ApiException { + {{#allParams}} + {{{dataType}}} {{paramName}} = null; + {{/allParams}} + {{^vendorExtensions.x-group-parameters}} + {{#returnType}}{{{returnType}}} response = {{/returnType}}api.{{operationId}}({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}); + {{/vendorExtensions.x-group-parameters}} + {{#vendorExtensions.x-group-parameters}} + {{#returnType}}{{{returnType}}} response = {{/returnType}}api.{{operationId}}({{#pathParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/pathParams}}){{#allParams}}{{^isPathParam}} + .{{paramName}}({{paramName}}){{/isPathParam}}{{/allParams}} + .execute(); + {{/vendorExtensions.x-group-parameters}} + // TODO: test validations + } + {{/operation}}{{/operations}} +} diff --git a/samples/client/petstore/java/jersey2-java6/docs/AnotherFakeApi.md b/samples/client/petstore/java/jersey2-java6/docs/AnotherFakeApi.md index 059616ec6ba..6b6f08a5d81 100644 --- a/samples/client/petstore/java/jersey2-java6/docs/AnotherFakeApi.md +++ b/samples/client/petstore/java/jersey2-java6/docs/AnotherFakeApi.md @@ -12,6 +12,7 @@ Method | HTTP request | Description > Client call123testSpecialTags(body) + To test special tags To test special tags and operation ID starting with number @@ -33,8 +34,9 @@ public class Example { AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient); Client body = new Client(); // Client | client model - try { + try { Client result = apiInstance.call123testSpecialTags(body); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); diff --git a/samples/client/petstore/java/jersey2-java6/docs/FakeApi.md b/samples/client/petstore/java/jersey2-java6/docs/FakeApi.md index 1ce9c124e91..7d866f17431 100644 --- a/samples/client/petstore/java/jersey2-java6/docs/FakeApi.md +++ b/samples/client/petstore/java/jersey2-java6/docs/FakeApi.md @@ -25,6 +25,7 @@ Method | HTTP request | Description > createXmlItem(xmlItem) + creates an XmlItem this route creates an XmlItem @@ -46,8 +47,10 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); XmlItem xmlItem = new XmlItem(); // XmlItem | XmlItem Body - try { + try { apiInstance.createXmlItem(xmlItem); + + } catch (ApiException e) { System.err.println("Exception when calling FakeApi#createXmlItem"); System.err.println("Status code: " + e.getCode()); @@ -91,6 +94,7 @@ No authorization required + Test serialization of outer boolean types ### Example @@ -110,8 +114,9 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); Boolean body = true; // Boolean | Input boolean as post body - try { + try { Boolean result = apiInstance.fakeOuterBooleanSerialize(body); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterBooleanSerialize"); @@ -156,6 +161,7 @@ No authorization required + Test serialization of object with outer number type ### Example @@ -175,8 +181,9 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body - try { + try { OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); @@ -221,6 +228,7 @@ No authorization required + Test serialization of outer number types ### Example @@ -240,8 +248,9 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); BigDecimal body = new BigDecimal(); // BigDecimal | Input number as post body - try { + try { BigDecimal result = apiInstance.fakeOuterNumberSerialize(body); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterNumberSerialize"); @@ -286,6 +295,7 @@ No authorization required + Test serialization of outer string types ### Example @@ -305,8 +315,9 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); String body = "body_example"; // String | Input string as post body - try { + try { String result = apiInstance.fakeOuterStringSerialize(body); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); @@ -351,7 +362,8 @@ No authorization required -For this test, the body for this request much reference a schema named `File`. + +For this test, the body for this request much reference a schema named `File`. ### Example @@ -370,8 +382,10 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass | - try { + try { apiInstance.testBodyWithFileSchema(body); + + } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); System.err.println("Status code: " + e.getCode()); @@ -415,6 +429,7 @@ No authorization required + ### Example ```java @@ -433,8 +448,10 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); String query = "query_example"; // String | User body = new User(); // User | - try { + try { apiInstance.testBodyWithQueryParams(query, body); + + } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); System.err.println("Status code: " + e.getCode()); @@ -477,10 +494,11 @@ No authorization required > Client testClientModel(body) -To test \"client\" model To test \"client\" model +To test "client" model + ### Example ```java @@ -498,8 +516,9 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); Client body = new Client(); // Client | client model - try { + try { Client result = apiInstance.testClientModel(body); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testClientModel"); @@ -542,10 +561,14 @@ No authorization required > testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback) -Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 +Fake endpoint for testing various parameters + 假端點 + 偽のエンドポイント + 가짜 엔드 포인트 + ### Example ```java @@ -582,8 +605,10 @@ public class Example { OffsetDateTime dateTime = new OffsetDateTime(); // OffsetDateTime | None String password = "password_example"; // String | None String paramCallback = "paramCallback_example"; // String | None - try { + try { apiInstance.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); + + } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testEndpointParameters"); System.err.println("Status code: " + e.getCode()); @@ -639,6 +664,7 @@ null (empty response body) > testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString) + To test enum parameters To test enum parameters @@ -667,8 +693,10 @@ public class Example { Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double) List enumFormStringArray = "$"; // List | Form parameter enum test (string array) String enumFormString = "-efg"; // String | Form parameter enum test (string) - try { + try { apiInstance.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); + + } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testEnumParameters"); System.err.println("Status code: " + e.getCode()); @@ -716,7 +744,8 @@ No authorization required ## testGroupParameters -> testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group) + +> testGroupParameters().requiredStringGroup(requiredStringGroup).requiredBooleanGroup(requiredBooleanGroup).requiredInt64Group(requiredInt64Group).stringGroup(stringGroup).booleanGroup(booleanGroup).int64Group(int64Group).execute(); Fake endpoint to test group parameters (optional) @@ -744,8 +773,16 @@ public class Example { Integer stringGroup = 56; // Integer | String in group parameters Boolean booleanGroup = true; // Boolean | Boolean in group parameters Long int64Group = 56L; // Long | Integer in group parameters - try { - apiInstance.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); + try { + api.testGroupParameters() + .requiredStringGroup(requiredStringGroup) + .requiredBooleanGroup(requiredBooleanGroup) + .requiredInt64Group(requiredInt64Group) + .stringGroup(stringGroup) + .booleanGroup(booleanGroup) + .int64Group(int64Group) + .execute(); + } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testGroupParameters"); System.err.println("Status code: " + e.getCode()); @@ -792,6 +829,7 @@ No authorization required > testInlineAdditionalProperties(param) + test inline additionalProperties ### Example @@ -811,8 +849,10 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); Map param = new HashMap(); // Map | request body - try { + try { apiInstance.testInlineAdditionalProperties(param); + + } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); System.err.println("Status code: " + e.getCode()); @@ -854,6 +894,7 @@ No authorization required > testJsonFormData(param, param2) + test json serialization of form data ### Example @@ -874,8 +915,10 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); String param = "param_example"; // String | field1 String param2 = "param2_example"; // String | field2 - try { + try { apiInstance.testJsonFormData(param, param2); + + } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testJsonFormData"); System.err.println("Status code: " + e.getCode()); @@ -920,6 +963,7 @@ No authorization required + To test the collection format in query parameters ### Example @@ -943,8 +987,10 @@ public class Example { List http = Arrays.asList(); // List | List url = Arrays.asList(); // List | List context = Arrays.asList(); // List | - try { + try { apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); + + } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat"); System.err.println("Status code: " + e.getCode()); diff --git a/samples/client/petstore/java/jersey2-java6/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/jersey2-java6/docs/FakeClassnameTags123Api.md index 14a74a37a4e..1d683e302fa 100644 --- a/samples/client/petstore/java/jersey2-java6/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/java/jersey2-java6/docs/FakeClassnameTags123Api.md @@ -12,6 +12,7 @@ Method | HTTP request | Description > Client testClassname(body) + To test class name in snake case To test class name in snake case @@ -40,8 +41,9 @@ public class Example { FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(defaultClient); Client body = new Client(); // Client | client model - try { + try { Client result = apiInstance.testClassname(body); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); diff --git a/samples/client/petstore/java/jersey2-java6/docs/PetApi.md b/samples/client/petstore/java/jersey2-java6/docs/PetApi.md index 875a8e6783e..00452d3fec5 100644 --- a/samples/client/petstore/java/jersey2-java6/docs/PetApi.md +++ b/samples/client/petstore/java/jersey2-java6/docs/PetApi.md @@ -20,6 +20,7 @@ Method | HTTP request | Description > addPet(body) + Add a new pet to the store ### Example @@ -44,8 +45,10 @@ public class Example { PetApi apiInstance = new PetApi(defaultClient); Pet body = new Pet(); // Pet | Pet object that needs to be added to the store - try { + try { apiInstance.addPet(body); + + } catch (ApiException e) { System.err.println("Exception when calling PetApi#addPet"); System.err.println("Status code: " + e.getCode()); @@ -88,6 +91,7 @@ null (empty response body) > deletePet(petId, apiKey) + Deletes a pet ### Example @@ -113,8 +117,10 @@ public class Example { PetApi apiInstance = new PetApi(defaultClient); Long petId = 56L; // Long | Pet id to delete String apiKey = "apiKey_example"; // String | - try { + try { apiInstance.deletePet(petId, apiKey); + + } catch (ApiException e) { System.err.println("Exception when calling PetApi#deletePet"); System.err.println("Status code: " + e.getCode()); @@ -158,6 +164,7 @@ null (empty response body) > List<Pet> findPetsByStatus(status) + Finds Pets by status Multiple status values can be provided with comma separated strings @@ -184,8 +191,9 @@ public class Example { PetApi apiInstance = new PetApi(defaultClient); List status = Arrays.asList("available"); // List | Status values that need to be considered for filter - try { + try { List result = apiInstance.findPetsByStatus(status); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PetApi#findPetsByStatus"); @@ -229,6 +237,7 @@ Name | Type | Description | Notes > List<Pet> findPetsByTags(tags) + Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -255,8 +264,9 @@ public class Example { PetApi apiInstance = new PetApi(defaultClient); List tags = Arrays.asList(); // List | Tags to filter by - try { + try { List result = apiInstance.findPetsByTags(tags); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PetApi#findPetsByTags"); @@ -300,6 +310,7 @@ Name | Type | Description | Notes > Pet getPetById(petId) + Find pet by ID Returns a single pet @@ -328,8 +339,9 @@ public class Example { PetApi apiInstance = new PetApi(defaultClient); Long petId = 56L; // Long | ID of pet to return - try { + try { Pet result = apiInstance.getPetById(petId); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PetApi#getPetById"); @@ -374,6 +386,7 @@ Name | Type | Description | Notes > updatePet(body) + Update an existing pet ### Example @@ -398,8 +411,10 @@ public class Example { PetApi apiInstance = new PetApi(defaultClient); Pet body = new Pet(); // Pet | Pet object that needs to be added to the store - try { + try { apiInstance.updatePet(body); + + } catch (ApiException e) { System.err.println("Exception when calling PetApi#updatePet"); System.err.println("Status code: " + e.getCode()); @@ -444,6 +459,7 @@ null (empty response body) > updatePetWithForm(petId, name, status) + Updates a pet in the store with form data ### Example @@ -470,8 +486,10 @@ public class Example { Long petId = 56L; // Long | ID of pet that needs to be updated String name = "name_example"; // String | Updated name of the pet String status = "status_example"; // String | Updated status of the pet - try { + try { apiInstance.updatePetWithForm(petId, name, status); + + } catch (ApiException e) { System.err.println("Exception when calling PetApi#updatePetWithForm"); System.err.println("Status code: " + e.getCode()); @@ -515,6 +533,7 @@ null (empty response body) > ModelApiResponse uploadFile(petId, additionalMetadata, file) + uploads an image ### Example @@ -541,8 +560,9 @@ public class Example { Long petId = 56L; // Long | ID of pet to update String additionalMetadata = "additionalMetadata_example"; // String | Additional data to pass to server File file = new File("/path/to/file"); // File | file to upload - try { + try { ModelApiResponse result = apiInstance.uploadFile(petId, additionalMetadata, file); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PetApi#uploadFile"); @@ -587,6 +607,7 @@ Name | Type | Description | Notes > ModelApiResponse uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata) + uploads an image (required) ### Example @@ -613,8 +634,9 @@ public class Example { Long petId = 56L; // Long | ID of pet to update File requiredFile = new File("/path/to/file"); // File | file to upload String additionalMetadata = "additionalMetadata_example"; // String | Additional data to pass to server - try { + try { ModelApiResponse result = apiInstance.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PetApi#uploadFileWithRequiredFile"); diff --git a/samples/client/petstore/java/jersey2-java6/docs/StoreApi.md b/samples/client/petstore/java/jersey2-java6/docs/StoreApi.md index 352399ea515..f3a9b2320cb 100644 --- a/samples/client/petstore/java/jersey2-java6/docs/StoreApi.md +++ b/samples/client/petstore/java/jersey2-java6/docs/StoreApi.md @@ -15,9 +15,10 @@ Method | HTTP request | Description > deleteOrder(orderId) + Delete purchase order by ID -For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors +For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors ### Example @@ -36,8 +37,10 @@ public class Example { StoreApi apiInstance = new StoreApi(defaultClient); String orderId = "orderId_example"; // String | ID of the order that needs to be deleted - try { + try { apiInstance.deleteOrder(orderId); + + } catch (ApiException e) { System.err.println("Exception when calling StoreApi#deleteOrder"); System.err.println("Status code: " + e.getCode()); @@ -80,6 +83,7 @@ No authorization required > Map<String, Integer> getInventory() + Returns pet inventories by status Returns a map of status codes to quantities @@ -107,8 +111,9 @@ public class Example { //api_key.setApiKeyPrefix("Token"); StoreApi apiInstance = new StoreApi(defaultClient); - try { + try { Map result = apiInstance.getInventory(); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StoreApi#getInventory"); @@ -148,9 +153,10 @@ This endpoint does not need any parameter. > Order getOrderById(orderId) + Find purchase order by ID -For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions +For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions ### Example @@ -169,8 +175,9 @@ public class Example { StoreApi apiInstance = new StoreApi(defaultClient); Long orderId = 56L; // Long | ID of pet that needs to be fetched - try { + try { Order result = apiInstance.getOrderById(orderId); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StoreApi#getOrderById"); @@ -215,6 +222,7 @@ No authorization required > Order placeOrder(body) + Place an order for a pet ### Example @@ -234,8 +242,9 @@ public class Example { StoreApi apiInstance = new StoreApi(defaultClient); Order body = new Order(); // Order | order placed for purchasing the pet - try { + try { Order result = apiInstance.placeOrder(body); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StoreApi#placeOrder"); diff --git a/samples/client/petstore/java/jersey2-java6/docs/UserApi.md b/samples/client/petstore/java/jersey2-java6/docs/UserApi.md index ca9f550c316..9bd97f69694 100644 --- a/samples/client/petstore/java/jersey2-java6/docs/UserApi.md +++ b/samples/client/petstore/java/jersey2-java6/docs/UserApi.md @@ -19,6 +19,7 @@ Method | HTTP request | Description > createUser(body) + Create user This can only be done by the logged in user. @@ -40,8 +41,10 @@ public class Example { UserApi apiInstance = new UserApi(defaultClient); User body = new User(); // User | Created user object - try { + try { apiInstance.createUser(body); + + } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUser"); System.err.println("Status code: " + e.getCode()); @@ -83,6 +86,7 @@ No authorization required > createUsersWithArrayInput(body) + Creates list of users with given input array ### Example @@ -102,8 +106,10 @@ public class Example { UserApi apiInstance = new UserApi(defaultClient); List body = Arrays.asList(); // List | List of user object - try { + try { apiInstance.createUsersWithArrayInput(body); + + } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); System.err.println("Status code: " + e.getCode()); @@ -145,6 +151,7 @@ No authorization required > createUsersWithListInput(body) + Creates list of users with given input array ### Example @@ -164,8 +171,10 @@ public class Example { UserApi apiInstance = new UserApi(defaultClient); List body = Arrays.asList(); // List | List of user object - try { + try { apiInstance.createUsersWithListInput(body); + + } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithListInput"); System.err.println("Status code: " + e.getCode()); @@ -207,6 +216,7 @@ No authorization required > deleteUser(username) + Delete user This can only be done by the logged in user. @@ -228,8 +238,10 @@ public class Example { UserApi apiInstance = new UserApi(defaultClient); String username = "username_example"; // String | The name that needs to be deleted - try { + try { apiInstance.deleteUser(username); + + } catch (ApiException e) { System.err.println("Exception when calling UserApi#deleteUser"); System.err.println("Status code: " + e.getCode()); @@ -272,6 +284,7 @@ No authorization required > User getUserByName(username) + Get user by user name ### Example @@ -291,8 +304,9 @@ public class Example { UserApi apiInstance = new UserApi(defaultClient); String username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing. - try { + try { User result = apiInstance.getUserByName(username); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#getUserByName"); @@ -337,6 +351,7 @@ No authorization required > String loginUser(username, password) + Logs user into the system ### Example @@ -357,8 +372,9 @@ public class Example { UserApi apiInstance = new UserApi(defaultClient); String username = "username_example"; // String | The user name for login String password = "password_example"; // String | The password for login in clear text - try { + try { String result = apiInstance.loginUser(username, password); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#loginUser"); @@ -403,6 +419,7 @@ No authorization required > logoutUser() + Logs out current logged in user session ### Example @@ -421,8 +438,10 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - try { + try { apiInstance.logoutUser(); + + } catch (ApiException e) { System.err.println("Exception when calling UserApi#logoutUser"); System.err.println("Status code: " + e.getCode()); @@ -461,6 +480,7 @@ No authorization required > updateUser(username, body) + Updated user This can only be done by the logged in user. @@ -483,8 +503,10 @@ public class Example { UserApi apiInstance = new UserApi(defaultClient); String username = "username_example"; // String | name that need to be deleted User body = new User(); // User | Updated user object - try { + try { apiInstance.updateUser(username, body); + + } catch (ApiException e) { System.err.println("Exception when calling UserApi#updateUser"); System.err.println("Status code: " + e.getCode()); diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 9d0776bb227..351b3182902 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -34,7 +34,6 @@ public class AnotherFakeApi { public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** * To test special tags * To test special tags and operation ID starting with number @@ -43,13 +42,13 @@ public class AnotherFakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public Client call123testSpecialTags(Client body) throws ApiException { return call123testSpecialTagsWithHttpInfo(body).getData(); - } + } /** * To test special tags @@ -59,8 +58,8 @@ public class AnotherFakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ApiResponse call123testSpecialTagsWithHttpInfo(Client body) throws ApiException { @@ -98,5 +97,5 @@ public class AnotherFakeApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/FakeApi.java index 28099fcab83..fc2bb8b4367 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/FakeApi.java @@ -42,7 +42,6 @@ public class FakeApi { public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** * creates an XmlItem * this route creates an XmlItem @@ -50,12 +49,11 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public void createXmlItem(XmlItem xmlItem) throws ApiException { - createXmlItemWithHttpInfo(xmlItem); } @@ -67,8 +65,8 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ApiResponse createXmlItemWithHttpInfo(XmlItem xmlItem) throws ApiException { @@ -104,7 +102,7 @@ public class FakeApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -115,13 +113,13 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Output boolean -
Status Code Description Response Headers
200 Output boolean -
*/ public Boolean fakeOuterBooleanSerialize(Boolean body) throws ApiException { return fakeOuterBooleanSerializeWithHttpInfo(body).getData(); - } + } /** * @@ -131,8 +129,8 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Output boolean -
Status Code Description Response Headers
200 Output boolean -
*/ public ApiResponse fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws ApiException { @@ -165,7 +163,7 @@ public class FakeApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * * Test serialization of object with outer number type @@ -174,13 +172,13 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Output composite -
Status Code Description Response Headers
200 Output composite -
*/ public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException { return fakeOuterCompositeSerializeWithHttpInfo(body).getData(); - } + } /** * @@ -190,8 +188,8 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Output composite -
Status Code Description Response Headers
200 Output composite -
*/ public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(OuterComposite body) throws ApiException { @@ -224,7 +222,7 @@ public class FakeApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * * Test serialization of outer number types @@ -233,13 +231,13 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Output number -
Status Code Description Response Headers
200 Output number -
*/ public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws ApiException { return fakeOuterNumberSerializeWithHttpInfo(body).getData(); - } + } /** * @@ -249,8 +247,8 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Output number -
Status Code Description Response Headers
200 Output number -
*/ public ApiResponse fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws ApiException { @@ -283,7 +281,7 @@ public class FakeApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * * Test serialization of outer string types @@ -292,13 +290,13 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Output string -
Status Code Description Response Headers
200 Output string -
*/ public String fakeOuterStringSerialize(String body) throws ApiException { return fakeOuterStringSerializeWithHttpInfo(body).getData(); - } + } /** * @@ -308,8 +306,8 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Output string -
Status Code Description Response Headers
200 Output string -
*/ public ApiResponse fakeOuterStringSerializeWithHttpInfo(String body) throws ApiException { @@ -342,7 +340,7 @@ public class FakeApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * * For this test, the body for this request much reference a schema named `File`. @@ -350,12 +348,11 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Success -
Status Code Description Response Headers
200 Success -
*/ public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException { - testBodyWithFileSchemaWithHttpInfo(body); } @@ -367,8 +364,8 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Success -
Status Code Description Response Headers
200 Success -
*/ public ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws ApiException { @@ -404,7 +401,7 @@ public class FakeApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -415,12 +412,11 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Success -
Status Code Description Response Headers
200 Success -
*/ public void testBodyWithQueryParams(String query, User body) throws ApiException { - testBodyWithQueryParamsWithHttpInfo(query, body); } @@ -433,8 +429,8 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Success -
Status Code Description Response Headers
200 Success -
*/ public ApiResponse testBodyWithQueryParamsWithHttpInfo(String query, User body) throws ApiException { @@ -476,7 +472,7 @@ public class FakeApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -487,13 +483,13 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public Client testClientModel(Client body) throws ApiException { return testClientModelWithHttpInfo(body).getData(); - } + } /** * To test \"client\" model @@ -503,8 +499,8 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ApiResponse testClientModelWithHttpInfo(Client body) throws ApiException { @@ -542,7 +538,7 @@ public class FakeApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -563,13 +559,12 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid username supplied -
404 User not found -
Status Code Description Response Headers
400 Invalid username supplied -
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 { - testEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -594,9 +589,9 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid username supplied -
404 User not found -
Status Code Description Response Headers
400 Invalid username supplied -
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 { @@ -675,7 +670,7 @@ if (paramCallback != null) String[] localVarAuthNames = new String[] { "http_basic_test" }; - + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -692,13 +687,12 @@ if (paramCallback != null) * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid request -
404 Not found -
Status Code Description Response Headers
400 Invalid request -
404 Not found -
*/ public void testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { - testEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -717,9 +711,9 @@ if (paramCallback != null) * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid request -
404 Not found -
Status Code Description Response Headers
400 Invalid request -
404 Not found -
*/ public ApiResponse testEnumParametersWithHttpInfo(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { @@ -762,48 +756,11 @@ if (enumFormString != null) String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } - /** - * Fake endpoint to test group parameters (optional) - * Fake endpoint to test group parameters (optional) - * @param requiredStringGroup Required String in group parameters (required) - * @param requiredBooleanGroup Required Boolean in group parameters (required) - * @param requiredInt64Group Required Integer in group parameters (required) - * @param stringGroup String in group parameters (optional) - * @param booleanGroup Boolean in group parameters (optional) - * @param int64Group Integer in group parameters (optional) - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
400 Someting wrong -
- */ - public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { - testGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); - } - - /** - * Fake endpoint to test group parameters (optional) - * Fake endpoint to test group parameters (optional) - * @param requiredStringGroup Required String in group parameters (required) - * @param requiredBooleanGroup Required Boolean in group parameters (required) - * @param requiredInt64Group Required Integer in group parameters (required) - * @param stringGroup String in group parameters (optional) - * @param booleanGroup Boolean in group parameters (optional) - * @param int64Group Integer in group parameters (optional) - * @return ApiResponse<Void> - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
400 Someting wrong -
- */ - public ApiResponse testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { +private ApiResponse testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'requiredStringGroup' is set @@ -854,9 +811,133 @@ if (booleanGroup != null) String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } + + public class APItestGroupParametersRequest { + private Integer requiredStringGroup; + private Boolean requiredBooleanGroup; + private Long requiredInt64Group; + private Integer stringGroup; + private Boolean booleanGroup; + private Long int64Group; + + private APItestGroupParametersRequest() { + } + + + /** + * Set requiredStringGroup + * @param requiredStringGroup Required String in group parameters (required) + * @return APItestGroupParametersRequest + */ + public APItestGroupParametersRequest requiredStringGroup(Integer requiredStringGroup) { + this.requiredStringGroup = requiredStringGroup; + return this; + } + + + /** + * Set requiredBooleanGroup + * @param requiredBooleanGroup Required Boolean in group parameters (required) + * @return APItestGroupParametersRequest + */ + public APItestGroupParametersRequest requiredBooleanGroup(Boolean requiredBooleanGroup) { + this.requiredBooleanGroup = requiredBooleanGroup; + return this; + } + + + /** + * Set requiredInt64Group + * @param requiredInt64Group Required Integer in group parameters (required) + * @return APItestGroupParametersRequest + */ + public APItestGroupParametersRequest requiredInt64Group(Long requiredInt64Group) { + this.requiredInt64Group = requiredInt64Group; + return this; + } + + + /** + * Set stringGroup + * @param stringGroup String in group parameters (optional) + * @return APItestGroupParametersRequest + */ + public APItestGroupParametersRequest stringGroup(Integer stringGroup) { + this.stringGroup = stringGroup; + return this; + } + + + /** + * Set booleanGroup + * @param booleanGroup Boolean in group parameters (optional) + * @return APItestGroupParametersRequest + */ + public APItestGroupParametersRequest booleanGroup(Boolean booleanGroup) { + this.booleanGroup = booleanGroup; + return this; + } + + + /** + * Set int64Group + * @param int64Group Integer in group parameters (optional) + * @return APItestGroupParametersRequest + */ + public APItestGroupParametersRequest int64Group(Long int64Group) { + this.int64Group = int64Group; + return this; + } + + + /** + * Execute testGroupParameters request + + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
400 Someting wrong -
+ + */ + + public void execute() throws ApiException { + this.executeWithHttpInfo().getData(); + } + + /** + * Execute testGroupParameters request with HTTP info returned + * @return ApiResponse<Void> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
400 Someting wrong -
+ + */ + + public ApiResponse executeWithHttpInfo() throws ApiException { + return testGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); + } + } + + /** + * Fake endpoint to test group parameters (optional) + * Fake endpoint to test group parameters (optional) + * @return testGroupParametersRequest + * @throws ApiException if fails to make API call + + + */ + + public APItestGroupParametersRequest testGroupParameters() throws ApiException { + return new APItestGroupParametersRequest(); + } /** * test inline additionalProperties * @@ -864,12 +945,11 @@ if (booleanGroup != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public void testInlineAdditionalProperties(Map param) throws ApiException { - testInlineAdditionalPropertiesWithHttpInfo(param); } @@ -881,8 +961,8 @@ if (booleanGroup != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map param) throws ApiException { @@ -918,7 +998,7 @@ if (booleanGroup != null) String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -929,12 +1009,11 @@ if (booleanGroup != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public void testJsonFormData(String param, String param2) throws ApiException { - testJsonFormDataWithHttpInfo(param, param2); } @@ -947,8 +1026,8 @@ if (booleanGroup != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ApiResponse testJsonFormDataWithHttpInfo(String param, String param2) throws ApiException { @@ -993,7 +1072,7 @@ if (param2 != null) String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -1007,12 +1086,11 @@ if (param2 != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Success -
Status Code Description Response Headers
200 Success -
*/ public void testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context) throws ApiException { - testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context); } @@ -1028,8 +1106,8 @@ if (param2 != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Success -
Status Code Description Response Headers
200 Success -
*/ public ApiResponse testQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context) throws ApiException { @@ -1090,7 +1168,7 @@ if (param2 != null) String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index e4f033f2a10..b683fb3d19a 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -34,7 +34,6 @@ public class FakeClassnameTags123Api { public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** * To test class name in snake case * To test class name in snake case @@ -43,13 +42,13 @@ public class FakeClassnameTags123Api { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public Client testClassname(Client body) throws ApiException { return testClassnameWithHttpInfo(body).getData(); - } + } /** * To test class name in snake case @@ -59,8 +58,8 @@ public class FakeClassnameTags123Api { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ApiResponse testClassnameWithHttpInfo(Client body) throws ApiException { @@ -98,5 +97,5 @@ public class FakeClassnameTags123Api { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/PetApi.java index 11467f78a10..3a6881beecf 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/PetApi.java @@ -36,7 +36,6 @@ public class PetApi { public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** * Add a new pet to the store * @@ -44,13 +43,12 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
405 Invalid input -
Status Code Description Response Headers
200 successful operation -
405 Invalid input -
*/ public void addPet(Pet body) throws ApiException { - addPetWithHttpInfo(body); } @@ -62,9 +60,9 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
405 Invalid input -
Status Code Description Response Headers
200 successful operation -
405 Invalid input -
*/ public ApiResponse addPetWithHttpInfo(Pet body) throws ApiException { @@ -100,7 +98,7 @@ public class PetApi { String[] localVarAuthNames = new String[] { "petstore_auth" }; - + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -111,13 +109,12 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid pet value -
Status Code Description Response Headers
200 successful operation -
400 Invalid pet value -
*/ public void deletePet(Long petId, String apiKey) throws ApiException { - deletePetWithHttpInfo(petId, apiKey); } @@ -130,9 +127,9 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid pet value -
Status Code Description Response Headers
200 successful operation -
400 Invalid pet value -
*/ public ApiResponse deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException { @@ -171,7 +168,7 @@ public class PetApi { String[] localVarAuthNames = new String[] { "petstore_auth" }; - + return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -182,14 +179,14 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid status value -
Status Code Description Response Headers
200 successful operation -
400 Invalid status value -
*/ public List findPetsByStatus(List status) throws ApiException { return findPetsByStatusWithHttpInfo(status).getData(); - } + } /** * Finds Pets by status @@ -199,9 +196,9 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid status value -
Status Code Description Response Headers
200 successful operation -
400 Invalid status value -
*/ public ApiResponse> findPetsByStatusWithHttpInfo(List status) throws ApiException { @@ -240,7 +237,7 @@ public class PetApi { GenericType> localVarReturnType = new GenericType>() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * Finds Pets by tags * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -249,16 +246,16 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid tag value -
Status Code Description Response Headers
200 successful operation -
400 Invalid tag value -
* @deprecated */ @Deprecated public List findPetsByTags(List tags) throws ApiException { return findPetsByTagsWithHttpInfo(tags).getData(); - } + } /** * Finds Pets by tags @@ -268,9 +265,9 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid tag value -
Status Code Description Response Headers
200 successful operation -
400 Invalid tag value -
* @deprecated */ @@ -311,7 +308,7 @@ public class PetApi { GenericType> localVarReturnType = new GenericType>() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * Find pet by ID * Returns a single pet @@ -320,15 +317,15 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - - + + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Pet not found -
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Pet not found -
*/ public Pet getPetById(Long petId) throws ApiException { return getPetByIdWithHttpInfo(petId).getData(); - } + } /** * Find pet by ID @@ -338,10 +335,10 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - - + + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Pet not found -
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Pet not found -
*/ public ApiResponse getPetByIdWithHttpInfo(Long petId) throws ApiException { @@ -380,7 +377,7 @@ public class PetApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * Update an existing pet * @@ -388,15 +385,14 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - - - + + + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Pet not found -
405 Validation exception -
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Pet not found -
405 Validation exception -
*/ public void updatePet(Pet body) throws ApiException { - updatePetWithHttpInfo(body); } @@ -408,11 +404,11 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - - - + + + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Pet not found -
405 Validation exception -
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Pet not found -
405 Validation exception -
*/ public ApiResponse updatePetWithHttpInfo(Pet body) throws ApiException { @@ -448,7 +444,7 @@ public class PetApi { String[] localVarAuthNames = new String[] { "petstore_auth" }; - + return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -460,12 +456,11 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
405 Invalid input -
Status Code Description Response Headers
405 Invalid input -
*/ public void updatePetWithForm(Long petId, String name, String status) throws ApiException { - updatePetWithFormWithHttpInfo(petId, name, status); } @@ -479,8 +474,8 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
405 Invalid input -
Status Code Description Response Headers
405 Invalid input -
*/ public ApiResponse updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException { @@ -521,7 +516,7 @@ if (status != null) String[] localVarAuthNames = new String[] { "petstore_auth" }; - + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -534,13 +529,13 @@ if (status != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File file) throws ApiException { return uploadFileWithHttpInfo(petId, additionalMetadata, file).getData(); - } + } /** * uploads an image @@ -552,8 +547,8 @@ if (status != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ApiResponse uploadFileWithHttpInfo(Long petId, String additionalMetadata, File file) throws ApiException { @@ -596,7 +591,7 @@ if (file != null) GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * uploads an image (required) * @@ -607,13 +602,13 @@ if (file != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws ApiException { return uploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata).getData(); - } + } /** * uploads an image (required) @@ -625,8 +620,8 @@ if (file != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ApiResponse uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws ApiException { @@ -674,5 +669,5 @@ if (requiredFile != null) GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/StoreApi.java index 42734da7a61..1d91724c7e8 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/StoreApi.java @@ -34,7 +34,6 @@ public class StoreApi { public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** * Delete purchase order by ID * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors @@ -42,13 +41,12 @@ public class StoreApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid ID supplied -
404 Order not found -
Status Code Description Response Headers
400 Invalid ID supplied -
404 Order not found -
*/ public void deleteOrder(String orderId) throws ApiException { - deleteOrderWithHttpInfo(orderId); } @@ -60,9 +58,9 @@ public class StoreApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid ID supplied -
404 Order not found -
Status Code Description Response Headers
400 Invalid ID supplied -
404 Order not found -
*/ public ApiResponse deleteOrderWithHttpInfo(String orderId) throws ApiException { @@ -99,7 +97,7 @@ public class StoreApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -109,13 +107,13 @@ public class StoreApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public Map getInventory() throws ApiException { return getInventoryWithHttpInfo().getData(); - } + } /** * Returns pet inventories by status @@ -124,8 +122,8 @@ public class StoreApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ApiResponse> getInventoryWithHttpInfo() throws ApiException { @@ -158,7 +156,7 @@ public class StoreApi { GenericType> localVarReturnType = new GenericType>() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * Find purchase order by ID * For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions @@ -167,15 +165,15 @@ public class StoreApi { * @throws ApiException if fails to make API call * @http.response.details - - - - + + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Order not found -
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Order not found -
*/ public Order getOrderById(Long orderId) throws ApiException { return getOrderByIdWithHttpInfo(orderId).getData(); - } + } /** * Find purchase order by ID @@ -185,10 +183,10 @@ public class StoreApi { * @throws ApiException if fails to make API call * @http.response.details - - - - + + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Order not found -
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Order not found -
*/ public ApiResponse getOrderByIdWithHttpInfo(Long orderId) throws ApiException { @@ -227,7 +225,7 @@ public class StoreApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * Place an order for a pet * @@ -236,14 +234,14 @@ public class StoreApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid Order -
Status Code Description Response Headers
200 successful operation -
400 Invalid Order -
*/ public Order placeOrder(Order body) throws ApiException { return placeOrderWithHttpInfo(body).getData(); - } + } /** * Place an order for a pet @@ -253,9 +251,9 @@ public class StoreApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid Order -
Status Code Description Response Headers
200 successful operation -
400 Invalid Order -
*/ public ApiResponse placeOrderWithHttpInfo(Order body) throws ApiException { @@ -293,5 +291,5 @@ public class StoreApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/UserApi.java index ab4ae8c089f..4bd9e6801a4 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/UserApi.java @@ -34,7 +34,6 @@ public class UserApi { public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** * Create user * This can only be done by the logged in user. @@ -42,12 +41,11 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
0 successful operation -
Status Code Description Response Headers
0 successful operation -
*/ public void createUser(User body) throws ApiException { - createUserWithHttpInfo(body); } @@ -59,8 +57,8 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
0 successful operation -
Status Code Description Response Headers
0 successful operation -
*/ public ApiResponse createUserWithHttpInfo(User body) throws ApiException { @@ -96,7 +94,7 @@ public class UserApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -106,12 +104,11 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
0 successful operation -
Status Code Description Response Headers
0 successful operation -
*/ public void createUsersWithArrayInput(List body) throws ApiException { - createUsersWithArrayInputWithHttpInfo(body); } @@ -123,8 +120,8 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
0 successful operation -
Status Code Description Response Headers
0 successful operation -
*/ public ApiResponse createUsersWithArrayInputWithHttpInfo(List body) throws ApiException { @@ -160,7 +157,7 @@ public class UserApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -170,12 +167,11 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
0 successful operation -
Status Code Description Response Headers
0 successful operation -
*/ public void createUsersWithListInput(List body) throws ApiException { - createUsersWithListInputWithHttpInfo(body); } @@ -187,8 +183,8 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
0 successful operation -
Status Code Description Response Headers
0 successful operation -
*/ public ApiResponse createUsersWithListInputWithHttpInfo(List body) throws ApiException { @@ -224,7 +220,7 @@ public class UserApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -234,13 +230,12 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid username supplied -
404 User not found -
Status Code Description Response Headers
400 Invalid username supplied -
404 User not found -
*/ public void deleteUser(String username) throws ApiException { - deleteUserWithHttpInfo(username); } @@ -252,9 +247,9 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid username supplied -
404 User not found -
Status Code Description Response Headers
400 Invalid username supplied -
404 User not found -
*/ public ApiResponse deleteUserWithHttpInfo(String username) throws ApiException { @@ -291,7 +286,7 @@ public class UserApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -302,15 +297,15 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - - - + + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid username supplied -
404 User not found -
Status Code Description Response Headers
200 successful operation -
400 Invalid username supplied -
404 User not found -
*/ public User getUserByName(String username) throws ApiException { return getUserByNameWithHttpInfo(username).getData(); - } + } /** * Get user by user name @@ -320,10 +315,10 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - - - + + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid username supplied -
404 User not found -
Status Code Description Response Headers
200 successful operation -
400 Invalid username supplied -
404 User not found -
*/ public ApiResponse getUserByNameWithHttpInfo(String username) throws ApiException { @@ -362,7 +357,7 @@ public class UserApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * Logs user into the system * @@ -372,14 +367,14 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation * X-Rate-Limit - calls per hour allowed by the user
* X-Expires-After - date in UTC when token expires
400 Invalid username/password supplied -
Status Code Description Response Headers
200 successful operation * X-Rate-Limit - calls per hour allowed by the user
* X-Expires-After - date in UTC when token expires
400 Invalid username/password supplied -
*/ public String loginUser(String username, String password) throws ApiException { return loginUserWithHttpInfo(username, password).getData(); - } + } /** * Logs user into the system @@ -390,9 +385,9 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation * X-Rate-Limit - calls per hour allowed by the user
* X-Expires-After - date in UTC when token expires
400 Invalid username/password supplied -
Status Code Description Response Headers
200 successful operation * X-Rate-Limit - calls per hour allowed by the user
* X-Expires-After - date in UTC when token expires
400 Invalid username/password supplied -
*/ public ApiResponse loginUserWithHttpInfo(String username, String password) throws ApiException { @@ -437,19 +432,18 @@ public class UserApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * Logs out current logged in user session * * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
0 successful operation -
Status Code Description Response Headers
0 successful operation -
*/ public void logoutUser() throws ApiException { - logoutUserWithHttpInfo(); } @@ -460,8 +454,8 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
0 successful operation -
Status Code Description Response Headers
0 successful operation -
*/ public ApiResponse logoutUserWithHttpInfo() throws ApiException { @@ -492,7 +486,7 @@ public class UserApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -503,13 +497,12 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid user supplied -
404 User not found -
Status Code Description Response Headers
400 Invalid user supplied -
404 User not found -
*/ public void updateUser(String username, User body) throws ApiException { - updateUserWithHttpInfo(username, body); } @@ -522,9 +515,9 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid user supplied -
404 User not found -
Status Code Description Response Headers
400 Invalid user supplied -
404 User not found -
*/ public ApiResponse updateUserWithHttpInfo(String username, User body) throws ApiException { @@ -566,7 +559,7 @@ public class UserApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } } diff --git a/samples/client/petstore/java/jersey2-java8/docs/AnotherFakeApi.md b/samples/client/petstore/java/jersey2-java8/docs/AnotherFakeApi.md index 059616ec6ba..6b6f08a5d81 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/AnotherFakeApi.md +++ b/samples/client/petstore/java/jersey2-java8/docs/AnotherFakeApi.md @@ -12,6 +12,7 @@ Method | HTTP request | Description > Client call123testSpecialTags(body) + To test special tags To test special tags and operation ID starting with number @@ -33,8 +34,9 @@ public class Example { AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient); Client body = new Client(); // Client | client model - try { + try { Client result = apiInstance.call123testSpecialTags(body); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); diff --git a/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md b/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md index 1ce9c124e91..7d866f17431 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md +++ b/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md @@ -25,6 +25,7 @@ Method | HTTP request | Description > createXmlItem(xmlItem) + creates an XmlItem this route creates an XmlItem @@ -46,8 +47,10 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); XmlItem xmlItem = new XmlItem(); // XmlItem | XmlItem Body - try { + try { apiInstance.createXmlItem(xmlItem); + + } catch (ApiException e) { System.err.println("Exception when calling FakeApi#createXmlItem"); System.err.println("Status code: " + e.getCode()); @@ -91,6 +94,7 @@ No authorization required + Test serialization of outer boolean types ### Example @@ -110,8 +114,9 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); Boolean body = true; // Boolean | Input boolean as post body - try { + try { Boolean result = apiInstance.fakeOuterBooleanSerialize(body); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterBooleanSerialize"); @@ -156,6 +161,7 @@ No authorization required + Test serialization of object with outer number type ### Example @@ -175,8 +181,9 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body - try { + try { OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); @@ -221,6 +228,7 @@ No authorization required + Test serialization of outer number types ### Example @@ -240,8 +248,9 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); BigDecimal body = new BigDecimal(); // BigDecimal | Input number as post body - try { + try { BigDecimal result = apiInstance.fakeOuterNumberSerialize(body); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterNumberSerialize"); @@ -286,6 +295,7 @@ No authorization required + Test serialization of outer string types ### Example @@ -305,8 +315,9 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); String body = "body_example"; // String | Input string as post body - try { + try { String result = apiInstance.fakeOuterStringSerialize(body); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); @@ -351,7 +362,8 @@ No authorization required -For this test, the body for this request much reference a schema named `File`. + +For this test, the body for this request much reference a schema named `File`. ### Example @@ -370,8 +382,10 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass | - try { + try { apiInstance.testBodyWithFileSchema(body); + + } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); System.err.println("Status code: " + e.getCode()); @@ -415,6 +429,7 @@ No authorization required + ### Example ```java @@ -433,8 +448,10 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); String query = "query_example"; // String | User body = new User(); // User | - try { + try { apiInstance.testBodyWithQueryParams(query, body); + + } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); System.err.println("Status code: " + e.getCode()); @@ -477,10 +494,11 @@ No authorization required > Client testClientModel(body) -To test \"client\" model To test \"client\" model +To test "client" model + ### Example ```java @@ -498,8 +516,9 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); Client body = new Client(); // Client | client model - try { + try { Client result = apiInstance.testClientModel(body); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testClientModel"); @@ -542,10 +561,14 @@ No authorization required > testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback) -Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 +Fake endpoint for testing various parameters + 假端點 + 偽のエンドポイント + 가짜 엔드 포인트 + ### Example ```java @@ -582,8 +605,10 @@ public class Example { OffsetDateTime dateTime = new OffsetDateTime(); // OffsetDateTime | None String password = "password_example"; // String | None String paramCallback = "paramCallback_example"; // String | None - try { + try { apiInstance.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); + + } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testEndpointParameters"); System.err.println("Status code: " + e.getCode()); @@ -639,6 +664,7 @@ null (empty response body) > testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString) + To test enum parameters To test enum parameters @@ -667,8 +693,10 @@ public class Example { Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double) List enumFormStringArray = "$"; // List | Form parameter enum test (string array) String enumFormString = "-efg"; // String | Form parameter enum test (string) - try { + try { apiInstance.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); + + } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testEnumParameters"); System.err.println("Status code: " + e.getCode()); @@ -716,7 +744,8 @@ No authorization required ## testGroupParameters -> testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group) + +> testGroupParameters().requiredStringGroup(requiredStringGroup).requiredBooleanGroup(requiredBooleanGroup).requiredInt64Group(requiredInt64Group).stringGroup(stringGroup).booleanGroup(booleanGroup).int64Group(int64Group).execute(); Fake endpoint to test group parameters (optional) @@ -744,8 +773,16 @@ public class Example { Integer stringGroup = 56; // Integer | String in group parameters Boolean booleanGroup = true; // Boolean | Boolean in group parameters Long int64Group = 56L; // Long | Integer in group parameters - try { - apiInstance.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); + try { + api.testGroupParameters() + .requiredStringGroup(requiredStringGroup) + .requiredBooleanGroup(requiredBooleanGroup) + .requiredInt64Group(requiredInt64Group) + .stringGroup(stringGroup) + .booleanGroup(booleanGroup) + .int64Group(int64Group) + .execute(); + } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testGroupParameters"); System.err.println("Status code: " + e.getCode()); @@ -792,6 +829,7 @@ No authorization required > testInlineAdditionalProperties(param) + test inline additionalProperties ### Example @@ -811,8 +849,10 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); Map param = new HashMap(); // Map | request body - try { + try { apiInstance.testInlineAdditionalProperties(param); + + } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); System.err.println("Status code: " + e.getCode()); @@ -854,6 +894,7 @@ No authorization required > testJsonFormData(param, param2) + test json serialization of form data ### Example @@ -874,8 +915,10 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); String param = "param_example"; // String | field1 String param2 = "param2_example"; // String | field2 - try { + try { apiInstance.testJsonFormData(param, param2); + + } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testJsonFormData"); System.err.println("Status code: " + e.getCode()); @@ -920,6 +963,7 @@ No authorization required + To test the collection format in query parameters ### Example @@ -943,8 +987,10 @@ public class Example { List http = Arrays.asList(); // List | List url = Arrays.asList(); // List | List context = Arrays.asList(); // List | - try { + try { apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); + + } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat"); System.err.println("Status code: " + e.getCode()); diff --git a/samples/client/petstore/java/jersey2-java8/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/jersey2-java8/docs/FakeClassnameTags123Api.md index 14a74a37a4e..1d683e302fa 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/java/jersey2-java8/docs/FakeClassnameTags123Api.md @@ -12,6 +12,7 @@ Method | HTTP request | Description > Client testClassname(body) + To test class name in snake case To test class name in snake case @@ -40,8 +41,9 @@ public class Example { FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(defaultClient); Client body = new Client(); // Client | client model - try { + try { Client result = apiInstance.testClassname(body); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); diff --git a/samples/client/petstore/java/jersey2-java8/docs/PetApi.md b/samples/client/petstore/java/jersey2-java8/docs/PetApi.md index 875a8e6783e..00452d3fec5 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/PetApi.md +++ b/samples/client/petstore/java/jersey2-java8/docs/PetApi.md @@ -20,6 +20,7 @@ Method | HTTP request | Description > addPet(body) + Add a new pet to the store ### Example @@ -44,8 +45,10 @@ public class Example { PetApi apiInstance = new PetApi(defaultClient); Pet body = new Pet(); // Pet | Pet object that needs to be added to the store - try { + try { apiInstance.addPet(body); + + } catch (ApiException e) { System.err.println("Exception when calling PetApi#addPet"); System.err.println("Status code: " + e.getCode()); @@ -88,6 +91,7 @@ null (empty response body) > deletePet(petId, apiKey) + Deletes a pet ### Example @@ -113,8 +117,10 @@ public class Example { PetApi apiInstance = new PetApi(defaultClient); Long petId = 56L; // Long | Pet id to delete String apiKey = "apiKey_example"; // String | - try { + try { apiInstance.deletePet(petId, apiKey); + + } catch (ApiException e) { System.err.println("Exception when calling PetApi#deletePet"); System.err.println("Status code: " + e.getCode()); @@ -158,6 +164,7 @@ null (empty response body) > List<Pet> findPetsByStatus(status) + Finds Pets by status Multiple status values can be provided with comma separated strings @@ -184,8 +191,9 @@ public class Example { PetApi apiInstance = new PetApi(defaultClient); List status = Arrays.asList("available"); // List | Status values that need to be considered for filter - try { + try { List result = apiInstance.findPetsByStatus(status); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PetApi#findPetsByStatus"); @@ -229,6 +237,7 @@ Name | Type | Description | Notes > List<Pet> findPetsByTags(tags) + Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -255,8 +264,9 @@ public class Example { PetApi apiInstance = new PetApi(defaultClient); List tags = Arrays.asList(); // List | Tags to filter by - try { + try { List result = apiInstance.findPetsByTags(tags); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PetApi#findPetsByTags"); @@ -300,6 +310,7 @@ Name | Type | Description | Notes > Pet getPetById(petId) + Find pet by ID Returns a single pet @@ -328,8 +339,9 @@ public class Example { PetApi apiInstance = new PetApi(defaultClient); Long petId = 56L; // Long | ID of pet to return - try { + try { Pet result = apiInstance.getPetById(petId); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PetApi#getPetById"); @@ -374,6 +386,7 @@ Name | Type | Description | Notes > updatePet(body) + Update an existing pet ### Example @@ -398,8 +411,10 @@ public class Example { PetApi apiInstance = new PetApi(defaultClient); Pet body = new Pet(); // Pet | Pet object that needs to be added to the store - try { + try { apiInstance.updatePet(body); + + } catch (ApiException e) { System.err.println("Exception when calling PetApi#updatePet"); System.err.println("Status code: " + e.getCode()); @@ -444,6 +459,7 @@ null (empty response body) > updatePetWithForm(petId, name, status) + Updates a pet in the store with form data ### Example @@ -470,8 +486,10 @@ public class Example { Long petId = 56L; // Long | ID of pet that needs to be updated String name = "name_example"; // String | Updated name of the pet String status = "status_example"; // String | Updated status of the pet - try { + try { apiInstance.updatePetWithForm(petId, name, status); + + } catch (ApiException e) { System.err.println("Exception when calling PetApi#updatePetWithForm"); System.err.println("Status code: " + e.getCode()); @@ -515,6 +533,7 @@ null (empty response body) > ModelApiResponse uploadFile(petId, additionalMetadata, file) + uploads an image ### Example @@ -541,8 +560,9 @@ public class Example { Long petId = 56L; // Long | ID of pet to update String additionalMetadata = "additionalMetadata_example"; // String | Additional data to pass to server File file = new File("/path/to/file"); // File | file to upload - try { + try { ModelApiResponse result = apiInstance.uploadFile(petId, additionalMetadata, file); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PetApi#uploadFile"); @@ -587,6 +607,7 @@ Name | Type | Description | Notes > ModelApiResponse uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata) + uploads an image (required) ### Example @@ -613,8 +634,9 @@ public class Example { Long petId = 56L; // Long | ID of pet to update File requiredFile = new File("/path/to/file"); // File | file to upload String additionalMetadata = "additionalMetadata_example"; // String | Additional data to pass to server - try { + try { ModelApiResponse result = apiInstance.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PetApi#uploadFileWithRequiredFile"); diff --git a/samples/client/petstore/java/jersey2-java8/docs/StoreApi.md b/samples/client/petstore/java/jersey2-java8/docs/StoreApi.md index 352399ea515..f3a9b2320cb 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/StoreApi.md +++ b/samples/client/petstore/java/jersey2-java8/docs/StoreApi.md @@ -15,9 +15,10 @@ Method | HTTP request | Description > deleteOrder(orderId) + Delete purchase order by ID -For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors +For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors ### Example @@ -36,8 +37,10 @@ public class Example { StoreApi apiInstance = new StoreApi(defaultClient); String orderId = "orderId_example"; // String | ID of the order that needs to be deleted - try { + try { apiInstance.deleteOrder(orderId); + + } catch (ApiException e) { System.err.println("Exception when calling StoreApi#deleteOrder"); System.err.println("Status code: " + e.getCode()); @@ -80,6 +83,7 @@ No authorization required > Map<String, Integer> getInventory() + Returns pet inventories by status Returns a map of status codes to quantities @@ -107,8 +111,9 @@ public class Example { //api_key.setApiKeyPrefix("Token"); StoreApi apiInstance = new StoreApi(defaultClient); - try { + try { Map result = apiInstance.getInventory(); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StoreApi#getInventory"); @@ -148,9 +153,10 @@ This endpoint does not need any parameter. > Order getOrderById(orderId) + Find purchase order by ID -For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions +For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions ### Example @@ -169,8 +175,9 @@ public class Example { StoreApi apiInstance = new StoreApi(defaultClient); Long orderId = 56L; // Long | ID of pet that needs to be fetched - try { + try { Order result = apiInstance.getOrderById(orderId); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StoreApi#getOrderById"); @@ -215,6 +222,7 @@ No authorization required > Order placeOrder(body) + Place an order for a pet ### Example @@ -234,8 +242,9 @@ public class Example { StoreApi apiInstance = new StoreApi(defaultClient); Order body = new Order(); // Order | order placed for purchasing the pet - try { + try { Order result = apiInstance.placeOrder(body); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StoreApi#placeOrder"); diff --git a/samples/client/petstore/java/jersey2-java8/docs/UserApi.md b/samples/client/petstore/java/jersey2-java8/docs/UserApi.md index ca9f550c316..9bd97f69694 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/UserApi.md +++ b/samples/client/petstore/java/jersey2-java8/docs/UserApi.md @@ -19,6 +19,7 @@ Method | HTTP request | Description > createUser(body) + Create user This can only be done by the logged in user. @@ -40,8 +41,10 @@ public class Example { UserApi apiInstance = new UserApi(defaultClient); User body = new User(); // User | Created user object - try { + try { apiInstance.createUser(body); + + } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUser"); System.err.println("Status code: " + e.getCode()); @@ -83,6 +86,7 @@ No authorization required > createUsersWithArrayInput(body) + Creates list of users with given input array ### Example @@ -102,8 +106,10 @@ public class Example { UserApi apiInstance = new UserApi(defaultClient); List body = Arrays.asList(); // List | List of user object - try { + try { apiInstance.createUsersWithArrayInput(body); + + } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); System.err.println("Status code: " + e.getCode()); @@ -145,6 +151,7 @@ No authorization required > createUsersWithListInput(body) + Creates list of users with given input array ### Example @@ -164,8 +171,10 @@ public class Example { UserApi apiInstance = new UserApi(defaultClient); List body = Arrays.asList(); // List | List of user object - try { + try { apiInstance.createUsersWithListInput(body); + + } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithListInput"); System.err.println("Status code: " + e.getCode()); @@ -207,6 +216,7 @@ No authorization required > deleteUser(username) + Delete user This can only be done by the logged in user. @@ -228,8 +238,10 @@ public class Example { UserApi apiInstance = new UserApi(defaultClient); String username = "username_example"; // String | The name that needs to be deleted - try { + try { apiInstance.deleteUser(username); + + } catch (ApiException e) { System.err.println("Exception when calling UserApi#deleteUser"); System.err.println("Status code: " + e.getCode()); @@ -272,6 +284,7 @@ No authorization required > User getUserByName(username) + Get user by user name ### Example @@ -291,8 +304,9 @@ public class Example { UserApi apiInstance = new UserApi(defaultClient); String username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing. - try { + try { User result = apiInstance.getUserByName(username); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#getUserByName"); @@ -337,6 +351,7 @@ No authorization required > String loginUser(username, password) + Logs user into the system ### Example @@ -357,8 +372,9 @@ public class Example { UserApi apiInstance = new UserApi(defaultClient); String username = "username_example"; // String | The user name for login String password = "password_example"; // String | The password for login in clear text - try { + try { String result = apiInstance.loginUser(username, password); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#loginUser"); @@ -403,6 +419,7 @@ No authorization required > logoutUser() + Logs out current logged in user session ### Example @@ -421,8 +438,10 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - try { + try { apiInstance.logoutUser(); + + } catch (ApiException e) { System.err.println("Exception when calling UserApi#logoutUser"); System.err.println("Status code: " + e.getCode()); @@ -461,6 +480,7 @@ No authorization required > updateUser(username, body) + Updated user This can only be done by the logged in user. @@ -483,8 +503,10 @@ public class Example { UserApi apiInstance = new UserApi(defaultClient); String username = "username_example"; // String | name that need to be deleted User body = new User(); // User | Updated user object - try { + try { apiInstance.updateUser(username, body); + + } catch (ApiException e) { System.err.println("Exception when calling UserApi#updateUser"); System.err.println("Status code: " + e.getCode()); 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 9d0776bb227..351b3182902 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 @@ -34,7 +34,6 @@ public class AnotherFakeApi { public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** * To test special tags * To test special tags and operation ID starting with number @@ -43,13 +42,13 @@ public class AnotherFakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public Client call123testSpecialTags(Client body) throws ApiException { return call123testSpecialTagsWithHttpInfo(body).getData(); - } + } /** * To test special tags @@ -59,8 +58,8 @@ public class AnotherFakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ApiResponse call123testSpecialTagsWithHttpInfo(Client body) throws ApiException { @@ -98,5 +97,5 @@ public class AnotherFakeApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } } 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 22ed9fd99a2..c1c2aa44134 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 @@ -42,7 +42,6 @@ public class FakeApi { public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** * creates an XmlItem * this route creates an XmlItem @@ -50,12 +49,11 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public void createXmlItem(XmlItem xmlItem) throws ApiException { - createXmlItemWithHttpInfo(xmlItem); } @@ -67,8 +65,8 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ApiResponse createXmlItemWithHttpInfo(XmlItem xmlItem) throws ApiException { @@ -104,7 +102,7 @@ public class FakeApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -115,13 +113,13 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Output boolean -
Status Code Description Response Headers
200 Output boolean -
*/ public Boolean fakeOuterBooleanSerialize(Boolean body) throws ApiException { return fakeOuterBooleanSerializeWithHttpInfo(body).getData(); - } + } /** * @@ -131,8 +129,8 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Output boolean -
Status Code Description Response Headers
200 Output boolean -
*/ public ApiResponse fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws ApiException { @@ -165,7 +163,7 @@ public class FakeApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * * Test serialization of object with outer number type @@ -174,13 +172,13 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Output composite -
Status Code Description Response Headers
200 Output composite -
*/ public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException { return fakeOuterCompositeSerializeWithHttpInfo(body).getData(); - } + } /** * @@ -190,8 +188,8 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Output composite -
Status Code Description Response Headers
200 Output composite -
*/ public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(OuterComposite body) throws ApiException { @@ -224,7 +222,7 @@ public class FakeApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * * Test serialization of outer number types @@ -233,13 +231,13 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Output number -
Status Code Description Response Headers
200 Output number -
*/ public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws ApiException { return fakeOuterNumberSerializeWithHttpInfo(body).getData(); - } + } /** * @@ -249,8 +247,8 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Output number -
Status Code Description Response Headers
200 Output number -
*/ public ApiResponse fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws ApiException { @@ -283,7 +281,7 @@ public class FakeApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * * Test serialization of outer string types @@ -292,13 +290,13 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Output string -
Status Code Description Response Headers
200 Output string -
*/ public String fakeOuterStringSerialize(String body) throws ApiException { return fakeOuterStringSerializeWithHttpInfo(body).getData(); - } + } /** * @@ -308,8 +306,8 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Output string -
Status Code Description Response Headers
200 Output string -
*/ public ApiResponse fakeOuterStringSerializeWithHttpInfo(String body) throws ApiException { @@ -342,7 +340,7 @@ public class FakeApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * * For this test, the body for this request much reference a schema named `File`. @@ -350,12 +348,11 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Success -
Status Code Description Response Headers
200 Success -
*/ public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException { - testBodyWithFileSchemaWithHttpInfo(body); } @@ -367,8 +364,8 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Success -
Status Code Description Response Headers
200 Success -
*/ public ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws ApiException { @@ -404,7 +401,7 @@ public class FakeApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -415,12 +412,11 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Success -
Status Code Description Response Headers
200 Success -
*/ public void testBodyWithQueryParams(String query, User body) throws ApiException { - testBodyWithQueryParamsWithHttpInfo(query, body); } @@ -433,8 +429,8 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Success -
Status Code Description Response Headers
200 Success -
*/ public ApiResponse testBodyWithQueryParamsWithHttpInfo(String query, User body) throws ApiException { @@ -476,7 +472,7 @@ public class FakeApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -487,13 +483,13 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public Client testClientModel(Client body) throws ApiException { return testClientModelWithHttpInfo(body).getData(); - } + } /** * To test \"client\" model @@ -503,8 +499,8 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ApiResponse testClientModelWithHttpInfo(Client body) throws ApiException { @@ -542,7 +538,7 @@ public class FakeApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -563,13 +559,12 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid username supplied -
404 User not found -
Status Code Description Response Headers
400 Invalid username supplied -
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 { - testEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -594,9 +589,9 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid username supplied -
404 User not found -
Status Code Description Response Headers
400 Invalid username supplied -
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 { @@ -675,7 +670,7 @@ if (paramCallback != null) String[] localVarAuthNames = new String[] { "http_basic_test" }; - + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -692,13 +687,12 @@ if (paramCallback != null) * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid request -
404 Not found -
Status Code Description Response Headers
400 Invalid request -
404 Not found -
*/ public void testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { - testEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -717,9 +711,9 @@ if (paramCallback != null) * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid request -
404 Not found -
Status Code Description Response Headers
400 Invalid request -
404 Not found -
*/ public ApiResponse testEnumParametersWithHttpInfo(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { @@ -762,48 +756,11 @@ if (enumFormString != null) String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } - /** - * Fake endpoint to test group parameters (optional) - * Fake endpoint to test group parameters (optional) - * @param requiredStringGroup Required String in group parameters (required) - * @param requiredBooleanGroup Required Boolean in group parameters (required) - * @param requiredInt64Group Required Integer in group parameters (required) - * @param stringGroup String in group parameters (optional) - * @param booleanGroup Boolean in group parameters (optional) - * @param int64Group Integer in group parameters (optional) - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
400 Someting wrong -
- */ - public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { - testGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); - } - - /** - * Fake endpoint to test group parameters (optional) - * Fake endpoint to test group parameters (optional) - * @param requiredStringGroup Required String in group parameters (required) - * @param requiredBooleanGroup Required Boolean in group parameters (required) - * @param requiredInt64Group Required Integer in group parameters (required) - * @param stringGroup String in group parameters (optional) - * @param booleanGroup Boolean in group parameters (optional) - * @param int64Group Integer in group parameters (optional) - * @return ApiResponse<Void> - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
400 Someting wrong -
- */ - public ApiResponse testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { +private ApiResponse testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'requiredStringGroup' is set @@ -854,9 +811,133 @@ if (booleanGroup != null) String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } + + public class APItestGroupParametersRequest { + private Integer requiredStringGroup; + private Boolean requiredBooleanGroup; + private Long requiredInt64Group; + private Integer stringGroup; + private Boolean booleanGroup; + private Long int64Group; + + private APItestGroupParametersRequest() { + } + + + /** + * Set requiredStringGroup + * @param requiredStringGroup Required String in group parameters (required) + * @return APItestGroupParametersRequest + */ + public APItestGroupParametersRequest requiredStringGroup(Integer requiredStringGroup) { + this.requiredStringGroup = requiredStringGroup; + return this; + } + + + /** + * Set requiredBooleanGroup + * @param requiredBooleanGroup Required Boolean in group parameters (required) + * @return APItestGroupParametersRequest + */ + public APItestGroupParametersRequest requiredBooleanGroup(Boolean requiredBooleanGroup) { + this.requiredBooleanGroup = requiredBooleanGroup; + return this; + } + + + /** + * Set requiredInt64Group + * @param requiredInt64Group Required Integer in group parameters (required) + * @return APItestGroupParametersRequest + */ + public APItestGroupParametersRequest requiredInt64Group(Long requiredInt64Group) { + this.requiredInt64Group = requiredInt64Group; + return this; + } + + + /** + * Set stringGroup + * @param stringGroup String in group parameters (optional) + * @return APItestGroupParametersRequest + */ + public APItestGroupParametersRequest stringGroup(Integer stringGroup) { + this.stringGroup = stringGroup; + return this; + } + + + /** + * Set booleanGroup + * @param booleanGroup Boolean in group parameters (optional) + * @return APItestGroupParametersRequest + */ + public APItestGroupParametersRequest booleanGroup(Boolean booleanGroup) { + this.booleanGroup = booleanGroup; + return this; + } + + + /** + * Set int64Group + * @param int64Group Integer in group parameters (optional) + * @return APItestGroupParametersRequest + */ + public APItestGroupParametersRequest int64Group(Long int64Group) { + this.int64Group = int64Group; + return this; + } + + + /** + * Execute testGroupParameters request + + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
400 Someting wrong -
+ + */ + + public void execute() throws ApiException { + this.executeWithHttpInfo().getData(); + } + + /** + * Execute testGroupParameters request with HTTP info returned + * @return ApiResponse<Void> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
400 Someting wrong -
+ + */ + + public ApiResponse executeWithHttpInfo() throws ApiException { + return testGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); + } + } + + /** + * Fake endpoint to test group parameters (optional) + * Fake endpoint to test group parameters (optional) + * @return testGroupParametersRequest + * @throws ApiException if fails to make API call + + + */ + + public APItestGroupParametersRequest testGroupParameters() throws ApiException { + return new APItestGroupParametersRequest(); + } /** * test inline additionalProperties * @@ -864,12 +945,11 @@ if (booleanGroup != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public void testInlineAdditionalProperties(Map param) throws ApiException { - testInlineAdditionalPropertiesWithHttpInfo(param); } @@ -881,8 +961,8 @@ if (booleanGroup != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map param) throws ApiException { @@ -918,7 +998,7 @@ if (booleanGroup != null) String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -929,12 +1009,11 @@ if (booleanGroup != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public void testJsonFormData(String param, String param2) throws ApiException { - testJsonFormDataWithHttpInfo(param, param2); } @@ -947,8 +1026,8 @@ if (booleanGroup != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ApiResponse testJsonFormDataWithHttpInfo(String param, String param2) throws ApiException { @@ -993,7 +1072,7 @@ if (param2 != null) String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -1007,12 +1086,11 @@ if (param2 != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Success -
Status Code Description Response Headers
200 Success -
*/ public void testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context) throws ApiException { - testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context); } @@ -1028,8 +1106,8 @@ if (param2 != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Success -
Status Code Description Response Headers
200 Success -
*/ public ApiResponse testQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context) throws ApiException { @@ -1090,7 +1168,7 @@ if (param2 != null) String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } } 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 e4f033f2a10..b683fb3d19a 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 @@ -34,7 +34,6 @@ public class FakeClassnameTags123Api { public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** * To test class name in snake case * To test class name in snake case @@ -43,13 +42,13 @@ public class FakeClassnameTags123Api { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public Client testClassname(Client body) throws ApiException { return testClassnameWithHttpInfo(body).getData(); - } + } /** * To test class name in snake case @@ -59,8 +58,8 @@ public class FakeClassnameTags123Api { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ApiResponse testClassnameWithHttpInfo(Client body) throws ApiException { @@ -98,5 +97,5 @@ public class FakeClassnameTags123Api { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } } 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 11467f78a10..3a6881beecf 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 @@ -36,7 +36,6 @@ public class PetApi { public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** * Add a new pet to the store * @@ -44,13 +43,12 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
405 Invalid input -
Status Code Description Response Headers
200 successful operation -
405 Invalid input -
*/ public void addPet(Pet body) throws ApiException { - addPetWithHttpInfo(body); } @@ -62,9 +60,9 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
405 Invalid input -
Status Code Description Response Headers
200 successful operation -
405 Invalid input -
*/ public ApiResponse addPetWithHttpInfo(Pet body) throws ApiException { @@ -100,7 +98,7 @@ public class PetApi { String[] localVarAuthNames = new String[] { "petstore_auth" }; - + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -111,13 +109,12 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid pet value -
Status Code Description Response Headers
200 successful operation -
400 Invalid pet value -
*/ public void deletePet(Long petId, String apiKey) throws ApiException { - deletePetWithHttpInfo(petId, apiKey); } @@ -130,9 +127,9 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid pet value -
Status Code Description Response Headers
200 successful operation -
400 Invalid pet value -
*/ public ApiResponse deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException { @@ -171,7 +168,7 @@ public class PetApi { String[] localVarAuthNames = new String[] { "petstore_auth" }; - + return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -182,14 +179,14 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid status value -
Status Code Description Response Headers
200 successful operation -
400 Invalid status value -
*/ public List findPetsByStatus(List status) throws ApiException { return findPetsByStatusWithHttpInfo(status).getData(); - } + } /** * Finds Pets by status @@ -199,9 +196,9 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid status value -
Status Code Description Response Headers
200 successful operation -
400 Invalid status value -
*/ public ApiResponse> findPetsByStatusWithHttpInfo(List status) throws ApiException { @@ -240,7 +237,7 @@ public class PetApi { GenericType> localVarReturnType = new GenericType>() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * Finds Pets by tags * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -249,16 +246,16 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid tag value -
Status Code Description Response Headers
200 successful operation -
400 Invalid tag value -
* @deprecated */ @Deprecated public List findPetsByTags(List tags) throws ApiException { return findPetsByTagsWithHttpInfo(tags).getData(); - } + } /** * Finds Pets by tags @@ -268,9 +265,9 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid tag value -
Status Code Description Response Headers
200 successful operation -
400 Invalid tag value -
* @deprecated */ @@ -311,7 +308,7 @@ public class PetApi { GenericType> localVarReturnType = new GenericType>() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * Find pet by ID * Returns a single pet @@ -320,15 +317,15 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - - + + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Pet not found -
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Pet not found -
*/ public Pet getPetById(Long petId) throws ApiException { return getPetByIdWithHttpInfo(petId).getData(); - } + } /** * Find pet by ID @@ -338,10 +335,10 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - - + + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Pet not found -
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Pet not found -
*/ public ApiResponse getPetByIdWithHttpInfo(Long petId) throws ApiException { @@ -380,7 +377,7 @@ public class PetApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * Update an existing pet * @@ -388,15 +385,14 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - - - + + + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Pet not found -
405 Validation exception -
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Pet not found -
405 Validation exception -
*/ public void updatePet(Pet body) throws ApiException { - updatePetWithHttpInfo(body); } @@ -408,11 +404,11 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - - - + + + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Pet not found -
405 Validation exception -
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Pet not found -
405 Validation exception -
*/ public ApiResponse updatePetWithHttpInfo(Pet body) throws ApiException { @@ -448,7 +444,7 @@ public class PetApi { String[] localVarAuthNames = new String[] { "petstore_auth" }; - + return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -460,12 +456,11 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
405 Invalid input -
Status Code Description Response Headers
405 Invalid input -
*/ public void updatePetWithForm(Long petId, String name, String status) throws ApiException { - updatePetWithFormWithHttpInfo(petId, name, status); } @@ -479,8 +474,8 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
405 Invalid input -
Status Code Description Response Headers
405 Invalid input -
*/ public ApiResponse updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException { @@ -521,7 +516,7 @@ if (status != null) String[] localVarAuthNames = new String[] { "petstore_auth" }; - + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -534,13 +529,13 @@ if (status != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File file) throws ApiException { return uploadFileWithHttpInfo(petId, additionalMetadata, file).getData(); - } + } /** * uploads an image @@ -552,8 +547,8 @@ if (status != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ApiResponse uploadFileWithHttpInfo(Long petId, String additionalMetadata, File file) throws ApiException { @@ -596,7 +591,7 @@ if (file != null) GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * uploads an image (required) * @@ -607,13 +602,13 @@ if (file != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws ApiException { return uploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata).getData(); - } + } /** * uploads an image (required) @@ -625,8 +620,8 @@ if (file != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ApiResponse uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws ApiException { @@ -674,5 +669,5 @@ if (requiredFile != null) GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } } 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 42734da7a61..1d91724c7e8 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 @@ -34,7 +34,6 @@ public class StoreApi { public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** * Delete purchase order by ID * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors @@ -42,13 +41,12 @@ public class StoreApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid ID supplied -
404 Order not found -
Status Code Description Response Headers
400 Invalid ID supplied -
404 Order not found -
*/ public void deleteOrder(String orderId) throws ApiException { - deleteOrderWithHttpInfo(orderId); } @@ -60,9 +58,9 @@ public class StoreApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid ID supplied -
404 Order not found -
Status Code Description Response Headers
400 Invalid ID supplied -
404 Order not found -
*/ public ApiResponse deleteOrderWithHttpInfo(String orderId) throws ApiException { @@ -99,7 +97,7 @@ public class StoreApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -109,13 +107,13 @@ public class StoreApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public Map getInventory() throws ApiException { return getInventoryWithHttpInfo().getData(); - } + } /** * Returns pet inventories by status @@ -124,8 +122,8 @@ public class StoreApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ApiResponse> getInventoryWithHttpInfo() throws ApiException { @@ -158,7 +156,7 @@ public class StoreApi { GenericType> localVarReturnType = new GenericType>() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * Find purchase order by ID * For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions @@ -167,15 +165,15 @@ public class StoreApi { * @throws ApiException if fails to make API call * @http.response.details - - - - + + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Order not found -
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Order not found -
*/ public Order getOrderById(Long orderId) throws ApiException { return getOrderByIdWithHttpInfo(orderId).getData(); - } + } /** * Find purchase order by ID @@ -185,10 +183,10 @@ public class StoreApi { * @throws ApiException if fails to make API call * @http.response.details - - - - + + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Order not found -
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Order not found -
*/ public ApiResponse getOrderByIdWithHttpInfo(Long orderId) throws ApiException { @@ -227,7 +225,7 @@ public class StoreApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * Place an order for a pet * @@ -236,14 +234,14 @@ public class StoreApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid Order -
Status Code Description Response Headers
200 successful operation -
400 Invalid Order -
*/ public Order placeOrder(Order body) throws ApiException { return placeOrderWithHttpInfo(body).getData(); - } + } /** * Place an order for a pet @@ -253,9 +251,9 @@ public class StoreApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid Order -
Status Code Description Response Headers
200 successful operation -
400 Invalid Order -
*/ public ApiResponse placeOrderWithHttpInfo(Order body) throws ApiException { @@ -293,5 +291,5 @@ public class StoreApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } } 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 ab4ae8c089f..4bd9e6801a4 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 @@ -34,7 +34,6 @@ public class UserApi { public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** * Create user * This can only be done by the logged in user. @@ -42,12 +41,11 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
0 successful operation -
Status Code Description Response Headers
0 successful operation -
*/ public void createUser(User body) throws ApiException { - createUserWithHttpInfo(body); } @@ -59,8 +57,8 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
0 successful operation -
Status Code Description Response Headers
0 successful operation -
*/ public ApiResponse createUserWithHttpInfo(User body) throws ApiException { @@ -96,7 +94,7 @@ public class UserApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -106,12 +104,11 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
0 successful operation -
Status Code Description Response Headers
0 successful operation -
*/ public void createUsersWithArrayInput(List body) throws ApiException { - createUsersWithArrayInputWithHttpInfo(body); } @@ -123,8 +120,8 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
0 successful operation -
Status Code Description Response Headers
0 successful operation -
*/ public ApiResponse createUsersWithArrayInputWithHttpInfo(List body) throws ApiException { @@ -160,7 +157,7 @@ public class UserApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -170,12 +167,11 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
0 successful operation -
Status Code Description Response Headers
0 successful operation -
*/ public void createUsersWithListInput(List body) throws ApiException { - createUsersWithListInputWithHttpInfo(body); } @@ -187,8 +183,8 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
0 successful operation -
Status Code Description Response Headers
0 successful operation -
*/ public ApiResponse createUsersWithListInputWithHttpInfo(List body) throws ApiException { @@ -224,7 +220,7 @@ public class UserApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -234,13 +230,12 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid username supplied -
404 User not found -
Status Code Description Response Headers
400 Invalid username supplied -
404 User not found -
*/ public void deleteUser(String username) throws ApiException { - deleteUserWithHttpInfo(username); } @@ -252,9 +247,9 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid username supplied -
404 User not found -
Status Code Description Response Headers
400 Invalid username supplied -
404 User not found -
*/ public ApiResponse deleteUserWithHttpInfo(String username) throws ApiException { @@ -291,7 +286,7 @@ public class UserApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -302,15 +297,15 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - - - + + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid username supplied -
404 User not found -
Status Code Description Response Headers
200 successful operation -
400 Invalid username supplied -
404 User not found -
*/ public User getUserByName(String username) throws ApiException { return getUserByNameWithHttpInfo(username).getData(); - } + } /** * Get user by user name @@ -320,10 +315,10 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - - - + + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid username supplied -
404 User not found -
Status Code Description Response Headers
200 successful operation -
400 Invalid username supplied -
404 User not found -
*/ public ApiResponse getUserByNameWithHttpInfo(String username) throws ApiException { @@ -362,7 +357,7 @@ public class UserApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * Logs user into the system * @@ -372,14 +367,14 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation * X-Rate-Limit - calls per hour allowed by the user
* X-Expires-After - date in UTC when token expires
400 Invalid username/password supplied -
Status Code Description Response Headers
200 successful operation * X-Rate-Limit - calls per hour allowed by the user
* X-Expires-After - date in UTC when token expires
400 Invalid username/password supplied -
*/ public String loginUser(String username, String password) throws ApiException { return loginUserWithHttpInfo(username, password).getData(); - } + } /** * Logs user into the system @@ -390,9 +385,9 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation * X-Rate-Limit - calls per hour allowed by the user
* X-Expires-After - date in UTC when token expires
400 Invalid username/password supplied -
Status Code Description Response Headers
200 successful operation * X-Rate-Limit - calls per hour allowed by the user
* X-Expires-After - date in UTC when token expires
400 Invalid username/password supplied -
*/ public ApiResponse loginUserWithHttpInfo(String username, String password) throws ApiException { @@ -437,19 +432,18 @@ public class UserApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * Logs out current logged in user session * * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
0 successful operation -
Status Code Description Response Headers
0 successful operation -
*/ public void logoutUser() throws ApiException { - logoutUserWithHttpInfo(); } @@ -460,8 +454,8 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
0 successful operation -
Status Code Description Response Headers
0 successful operation -
*/ public ApiResponse logoutUserWithHttpInfo() throws ApiException { @@ -492,7 +486,7 @@ public class UserApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -503,13 +497,12 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid user supplied -
404 User not found -
Status Code Description Response Headers
400 Invalid user supplied -
404 User not found -
*/ public void updateUser(String username, User body) throws ApiException { - updateUserWithHttpInfo(username, body); } @@ -522,9 +515,9 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid user supplied -
404 User not found -
Status Code Description Response Headers
400 Invalid user supplied -
404 User not found -
*/ public ApiResponse updateUserWithHttpInfo(String username, User body) throws ApiException { @@ -566,7 +559,7 @@ public class UserApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } } diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java index b6db8d2a2c3..837b5ea0246 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -42,9 +42,8 @@ public class AnotherFakeApiTest { */ @Test public void call123testSpecialTagsTest() throws ApiException { - Client client = null; - Client response = api.call123testSpecialTags(client); - + Client body = null; + Client response = api.call123testSpecialTags(body); // TODO: test validations } diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/FakeApiTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/FakeApiTest.java index 4731d235db3..8640ddbe82e 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/FakeApiTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/FakeApiTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,6 +22,7 @@ import java.time.LocalDate; import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.User; +import org.openapitools.client.model.XmlItem; import org.junit.Test; import org.junit.Ignore; @@ -39,6 +40,21 @@ public class FakeApiTest { private final FakeApi api = new FakeApi(); + /** + * creates an XmlItem + * + * this route creates an XmlItem + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createXmlItemTest() throws ApiException { + XmlItem xmlItem = null; + api.createXmlItem(xmlItem); + // TODO: test validations + } + /** * * @@ -51,7 +67,6 @@ public class FakeApiTest { public void fakeOuterBooleanSerializeTest() throws ApiException { Boolean body = null; Boolean response = api.fakeOuterBooleanSerialize(body); - // TODO: test validations } @@ -65,9 +80,8 @@ public class FakeApiTest { */ @Test public void fakeOuterCompositeSerializeTest() throws ApiException { - OuterComposite outerComposite = null; - OuterComposite response = api.fakeOuterCompositeSerialize(outerComposite); - + OuterComposite body = null; + OuterComposite response = api.fakeOuterCompositeSerialize(body); // TODO: test validations } @@ -83,7 +97,6 @@ public class FakeApiTest { public void fakeOuterNumberSerializeTest() throws ApiException { BigDecimal body = null; BigDecimal response = api.fakeOuterNumberSerialize(body); - // TODO: test validations } @@ -99,7 +112,6 @@ public class FakeApiTest { public void fakeOuterStringSerializeTest() throws ApiException { String body = null; String response = api.fakeOuterStringSerialize(body); - // TODO: test validations } @@ -113,9 +125,8 @@ public class FakeApiTest { */ @Test public void testBodyWithFileSchemaTest() throws ApiException { - FileSchemaTestClass fileSchemaTestClass = null; - api.testBodyWithFileSchema(fileSchemaTestClass); - + FileSchemaTestClass body = null; + api.testBodyWithFileSchema(body); // TODO: test validations } @@ -130,9 +141,8 @@ public class FakeApiTest { @Test public void testBodyWithQueryParamsTest() throws ApiException { String query = null; - User user = null; - api.testBodyWithQueryParams(query, user); - + User body = null; + api.testBodyWithQueryParams(query, body); // TODO: test validations } @@ -146,9 +156,8 @@ public class FakeApiTest { */ @Test public void testClientModelTest() throws ApiException { - Client client = null; - Client response = api.testClientModel(client); - + Client body = null; + Client response = api.testClientModel(body); // TODO: test validations } @@ -177,7 +186,6 @@ public class FakeApiTest { String password = null; String paramCallback = null; api.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); - // TODO: test validations } @@ -200,7 +208,6 @@ public class FakeApiTest { List enumFormStringArray = null; String enumFormString = null; api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); - // TODO: test validations } @@ -220,8 +227,14 @@ public class FakeApiTest { Integer stringGroup = null; Boolean booleanGroup = null; Long int64Group = null; - api.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); - + api.testGroupParameters() + .requiredStringGroup(requiredStringGroup) + .requiredBooleanGroup(requiredBooleanGroup) + .requiredInt64Group(requiredInt64Group) + .stringGroup(stringGroup) + .booleanGroup(booleanGroup) + .int64Group(int64Group) + .execute(); // TODO: test validations } @@ -235,9 +248,8 @@ public class FakeApiTest { */ @Test public void testInlineAdditionalPropertiesTest() throws ApiException { - Map requestBody = null; - api.testInlineAdditionalProperties(requestBody); - + Map param = null; + api.testInlineAdditionalProperties(param); // TODO: test validations } @@ -254,7 +266,25 @@ public class FakeApiTest { String param = null; String param2 = null; api.testJsonFormData(param, param2); - + // TODO: test validations + } + + /** + * + * + * To test the collection format in query parameters + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testQueryParameterCollectionFormatTest() throws ApiException { + List pipe = null; + List ioutil = null; + List http = null; + List url = null; + List context = null; + api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); // TODO: test validations } diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java index e2ac28cb12a..71999316797 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -42,9 +42,8 @@ public class FakeClassnameTags123ApiTest { */ @Test public void testClassnameTest() throws ApiException { - Client client = null; - Client response = api.testClassname(client); - + Client body = null; + Client response = api.testClassname(body); // TODO: test validations } diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java index d3fbe90a5a6..fd382967f1d 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -44,9 +44,8 @@ public class PetApiTest { */ @Test public void addPetTest() throws ApiException { - Pet pet = null; - api.addPet(pet); - + Pet body = null; + api.addPet(body); // TODO: test validations } @@ -63,7 +62,6 @@ public class PetApiTest { Long petId = null; String apiKey = null; api.deletePet(petId, apiKey); - // TODO: test validations } @@ -79,7 +77,6 @@ public class PetApiTest { public void findPetsByStatusTest() throws ApiException { List status = null; List response = api.findPetsByStatus(status); - // TODO: test validations } @@ -95,7 +92,6 @@ public class PetApiTest { public void findPetsByTagsTest() throws ApiException { List tags = null; List response = api.findPetsByTags(tags); - // TODO: test validations } @@ -111,7 +107,6 @@ public class PetApiTest { public void getPetByIdTest() throws ApiException { Long petId = null; Pet response = api.getPetById(petId); - // TODO: test validations } @@ -125,9 +120,8 @@ public class PetApiTest { */ @Test public void updatePetTest() throws ApiException { - Pet pet = null; - api.updatePet(pet); - + Pet body = null; + api.updatePet(body); // TODO: test validations } @@ -145,7 +139,6 @@ public class PetApiTest { String name = null; String status = null; api.updatePetWithForm(petId, name, status); - // TODO: test validations } @@ -163,7 +156,23 @@ public class PetApiTest { String additionalMetadata = null; File file = null; ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file); - + // TODO: test validations + } + + /** + * uploads an image (required) + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void uploadFileWithRequiredFileTest() throws ApiException { + Long petId = null; + File requiredFile = null; + String additionalMetadata = null; + ModelApiResponse response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); // TODO: test validations } diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/StoreApiTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/StoreApiTest.java index f83e6c38972..cd36a70fece 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/StoreApiTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/StoreApiTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -44,7 +44,6 @@ public class StoreApiTest { public void deleteOrderTest() throws ApiException { String orderId = null; api.deleteOrder(orderId); - // TODO: test validations } @@ -59,7 +58,6 @@ public class StoreApiTest { @Test public void getInventoryTest() throws ApiException { Map response = api.getInventory(); - // TODO: test validations } @@ -75,7 +73,6 @@ public class StoreApiTest { public void getOrderByIdTest() throws ApiException { Long orderId = null; Order response = api.getOrderById(orderId); - // TODO: test validations } @@ -89,9 +86,8 @@ public class StoreApiTest { */ @Test public void placeOrderTest() throws ApiException { - Order order = null; - Order response = api.placeOrder(order); - + Order body = null; + Order response = api.placeOrder(body); // TODO: test validations } diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/UserApiTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/UserApiTest.java index 79e0b6b2bb5..f7ef9050c95 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/UserApiTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/UserApiTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -42,9 +42,8 @@ public class UserApiTest { */ @Test public void createUserTest() throws ApiException { - User user = null; - api.createUser(user); - + User body = null; + api.createUser(body); // TODO: test validations } @@ -58,9 +57,8 @@ public class UserApiTest { */ @Test public void createUsersWithArrayInputTest() throws ApiException { - List user = null; - api.createUsersWithArrayInput(user); - + List body = null; + api.createUsersWithArrayInput(body); // TODO: test validations } @@ -74,9 +72,8 @@ public class UserApiTest { */ @Test public void createUsersWithListInputTest() throws ApiException { - List user = null; - api.createUsersWithListInput(user); - + List body = null; + api.createUsersWithListInput(body); // TODO: test validations } @@ -92,7 +89,6 @@ public class UserApiTest { public void deleteUserTest() throws ApiException { String username = null; api.deleteUser(username); - // TODO: test validations } @@ -108,7 +104,6 @@ public class UserApiTest { public void getUserByNameTest() throws ApiException { String username = null; User response = api.getUserByName(username); - // TODO: test validations } @@ -125,7 +120,6 @@ public class UserApiTest { String username = null; String password = null; String response = api.loginUser(username, password); - // TODO: test validations } @@ -140,7 +134,6 @@ public class UserApiTest { @Test public void logoutUserTest() throws ApiException { api.logoutUser(); - // TODO: test validations } @@ -155,9 +148,8 @@ public class UserApiTest { @Test public void updateUserTest() throws ApiException { String username = null; - User user = null; - api.updateUser(username, user); - + User body = null; + api.updateUser(username, body); // TODO: test validations } diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java index 2b0bd0bbaef..ec44af78387 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java index c6dd88eea82..ceb024c5620 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java index 9d474c0dd80..517e5a10ae4 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java index c6bcc988bf9..2e3844ba975 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,11 +13,13 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.math.BigDecimal; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -41,19 +43,91 @@ public class AdditionalPropertiesClassTest { } /** - * Test the property 'mapProperty' + * Test the property 'mapString' */ @Test - public void mapPropertyTest() { - // TODO: test mapProperty + public void mapStringTest() { + // TODO: test mapString } /** - * Test the property 'mapOfMapProperty' + * Test the property 'mapNumber' */ @Test - public void mapOfMapPropertyTest() { - // TODO: test mapOfMapProperty + public void mapNumberTest() { + // TODO: test mapNumber + } + + /** + * Test the property 'mapInteger' + */ + @Test + public void mapIntegerTest() { + // TODO: test mapInteger + } + + /** + * Test the property 'mapBoolean' + */ + @Test + public void mapBooleanTest() { + // TODO: test mapBoolean + } + + /** + * Test the property 'mapArrayInteger' + */ + @Test + public void mapArrayIntegerTest() { + // TODO: test mapArrayInteger + } + + /** + * Test the property 'mapArrayAnytype' + */ + @Test + public void mapArrayAnytypeTest() { + // TODO: test mapArrayAnytype + } + + /** + * Test the property 'mapMapString' + */ + @Test + public void mapMapStringTest() { + // TODO: test mapMapString + } + + /** + * Test the property 'mapMapAnytype' + */ + @Test + public void mapMapAnytypeTest() { + // TODO: test mapMapAnytype + } + + /** + * Test the property 'anytype1' + */ + @Test + public void anytype1Test() { + // TODO: test anytype1 + } + + /** + * Test the property 'anytype2' + */ + @Test + public void anytype2Test() { + // TODO: test anytype2 + } + + /** + * Test the property 'anytype3' + */ + @Test + public void anytype3Test() { + // TODO: test anytype3 } } diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java index bf1b1c427b6..66a7b85623e 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java index b9cb6470e38..4e03485a448 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java index 3cbcb8ec3b0..e0c72c58634 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java index 1d3c05075ea..c84d987e764 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AnimalTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AnimalTest.java index beb02882b30..c0d10ec5a3d 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AnimalTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/AnimalTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java index ae7970522b1..e25187a3b60 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java index 6151b7068b7..ae106182399 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayTestTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayTestTest.java index 4bb62b6569a..36bd9951cf6 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayTestTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ArrayTestTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CapitalizationTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CapitalizationTest.java index eae9be7938c..a701b341fc5 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CapitalizationTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CapitalizationTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CatAllOfTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CatAllOfTest.java index 69b226745d7..1d85a044725 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CatAllOfTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CatAllOfTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CatTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CatTest.java index dcb9f2d4cae..dbf40678a2d 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CatTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CatTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,12 +13,14 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.client.model.Animal; +import org.openapitools.client.model.CatAllOf; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CategoryTest.java index 1df27cf0320..6027994a2ac 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ClassModelTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ClassModelTest.java index 04eb02f835e..8914c9cad43 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ClassModelTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ClassModelTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ClientTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ClientTest.java index 03b6bb41a52..c21b346272d 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ClientTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ClientTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DogAllOfTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DogAllOfTest.java index 1b83dcefc4f..6e4b4910809 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DogAllOfTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DogAllOfTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DogTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DogTest.java index 06ac28f804a..a46bc508d48 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DogTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/DogTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,12 +13,14 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.client.model.Animal; +import org.openapitools.client.model.DogAllOf; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumArraysTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumArraysTest.java index 11b5f01985f..45b8fbbd822 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumArraysTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumArraysTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumClassTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumClassTest.java index cb51ca50c95..9e45543facd 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumClassTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumClassTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumTestTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumTestTest.java index 13122a0cb97..04e7afb1978 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumTestTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/EnumTestTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java index a6b0d8ff7b0..ef37e666be3 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FormatTestTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FormatTestTest.java index 9cbc69fd1dc..73a1f737503 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FormatTestTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/FormatTestTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -146,4 +147,12 @@ public class FormatTestTest { // TODO: test password } + /** + * Test the property 'bigDecimal' + */ + @Test + public void bigDecimalTest() { + // TODO: test bigDecimal + } + } diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java index 2c4b2470b98..e902c100383 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MapTestTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MapTestTest.java index 0f08d8c88f0..a0c991bb758 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MapTestTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MapTestTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java index 504be4cd00b..630b566f54d 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/Model200ResponseTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/Model200ResponseTest.java index 1ad55ca32ea..82c7208079d 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/Model200ResponseTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/Model200ResponseTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java index 73d28676aea..97a1287aa41 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelReturnTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelReturnTest.java index b073fda0014..f884519ebc8 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelReturnTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ModelReturnTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NameTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NameTest.java index e81ebc38e65..cb3a94cf74a 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NameTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NameTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NumberOnlyTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NumberOnlyTest.java index 565c8bd0627..f4fbd5ee8b4 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NumberOnlyTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/NumberOnlyTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OrderTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OrderTest.java index d65ce716e13..da63441c659 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OrderTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OrderTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OuterCompositeTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OuterCompositeTest.java index 49b656a93fa..ebea3ca304c 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OuterCompositeTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OuterCompositeTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OuterEnumTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OuterEnumTest.java index 61154c6d881..cf0ebae0faf 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OuterEnumTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/OuterEnumTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/PetTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/PetTest.java index bf6908e4a45..c3c0d4cc35d 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/PetTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java index e48b31a39fd..b82a7d0ef56 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java index 1696eee82da..d5a19c371e6 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TagTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TagTest.java index b37aca5fdfc..5c2cc6f49e0 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TagTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java index 409076e80a3..e96ac744439 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java index ffd8f3ddc33..56641d163a5 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -56,6 +57,14 @@ public class TypeHolderExampleTest { // TODO: test numberItem } + /** + * Test the property 'floatItem' + */ + @Test + public void floatItemTest() { + // TODO: test floatItem + } + /** * Test the property 'integerItem' */ diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/UserTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/UserTest.java index 76733c9e72f..ce40d3a2a63 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/UserTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/UserTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/XmlItemTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/XmlItemTest.java index 55e75391e00..501c414555f 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/XmlItemTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/XmlItemTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -225,51 +226,51 @@ public class XmlItemTest { } /** - * Test the property 'prefixNamespaceString' + * Test the property 'prefixNsString' */ @Test - public void prefixNamespaceStringTest() { - // TODO: test prefixNamespaceString + public void prefixNsStringTest() { + // TODO: test prefixNsString } /** - * Test the property 'prefixNamespaceNumber' + * Test the property 'prefixNsNumber' */ @Test - public void prefixNamespaceNumberTest() { - // TODO: test prefixNamespaceNumber + public void prefixNsNumberTest() { + // TODO: test prefixNsNumber } /** - * Test the property 'prefixNamespaceInteger' + * Test the property 'prefixNsInteger' */ @Test - public void prefixNamespaceIntegerTest() { - // TODO: test prefixNamespaceInteger + public void prefixNsIntegerTest() { + // TODO: test prefixNsInteger } /** - * Test the property 'prefixNamespaceBoolean' + * Test the property 'prefixNsBoolean' */ @Test - public void prefixNamespaceBooleanTest() { - // TODO: test prefixNamespaceBoolean + public void prefixNsBooleanTest() { + // TODO: test prefixNsBoolean } /** - * Test the property 'prefixNamespaceArray' + * Test the property 'prefixNsArray' */ @Test - public void prefixNamespaceArrayTest() { - // TODO: test prefixNamespaceArray + public void prefixNsArrayTest() { + // TODO: test prefixNsArray } /** - * Test the property 'prefixNamespaceWrappedArray' + * Test the property 'prefixNsWrappedArray' */ @Test - public void prefixNamespaceWrappedArrayTest() { - // TODO: test prefixNamespaceWrappedArray + public void prefixNsWrappedArrayTest() { + // TODO: test prefixNsWrappedArray } } diff --git a/samples/client/petstore/java/jersey2/docs/AnotherFakeApi.md b/samples/client/petstore/java/jersey2/docs/AnotherFakeApi.md index 059616ec6ba..6b6f08a5d81 100644 --- a/samples/client/petstore/java/jersey2/docs/AnotherFakeApi.md +++ b/samples/client/petstore/java/jersey2/docs/AnotherFakeApi.md @@ -12,6 +12,7 @@ Method | HTTP request | Description > Client call123testSpecialTags(body) + To test special tags To test special tags and operation ID starting with number @@ -33,8 +34,9 @@ public class Example { AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient); Client body = new Client(); // Client | client model - try { + try { Client result = apiInstance.call123testSpecialTags(body); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); diff --git a/samples/client/petstore/java/jersey2/docs/FakeApi.md b/samples/client/petstore/java/jersey2/docs/FakeApi.md index 1ce9c124e91..7d866f17431 100644 --- a/samples/client/petstore/java/jersey2/docs/FakeApi.md +++ b/samples/client/petstore/java/jersey2/docs/FakeApi.md @@ -25,6 +25,7 @@ Method | HTTP request | Description > createXmlItem(xmlItem) + creates an XmlItem this route creates an XmlItem @@ -46,8 +47,10 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); XmlItem xmlItem = new XmlItem(); // XmlItem | XmlItem Body - try { + try { apiInstance.createXmlItem(xmlItem); + + } catch (ApiException e) { System.err.println("Exception when calling FakeApi#createXmlItem"); System.err.println("Status code: " + e.getCode()); @@ -91,6 +94,7 @@ No authorization required + Test serialization of outer boolean types ### Example @@ -110,8 +114,9 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); Boolean body = true; // Boolean | Input boolean as post body - try { + try { Boolean result = apiInstance.fakeOuterBooleanSerialize(body); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterBooleanSerialize"); @@ -156,6 +161,7 @@ No authorization required + Test serialization of object with outer number type ### Example @@ -175,8 +181,9 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body - try { + try { OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); @@ -221,6 +228,7 @@ No authorization required + Test serialization of outer number types ### Example @@ -240,8 +248,9 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); BigDecimal body = new BigDecimal(); // BigDecimal | Input number as post body - try { + try { BigDecimal result = apiInstance.fakeOuterNumberSerialize(body); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterNumberSerialize"); @@ -286,6 +295,7 @@ No authorization required + Test serialization of outer string types ### Example @@ -305,8 +315,9 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); String body = "body_example"; // String | Input string as post body - try { + try { String result = apiInstance.fakeOuterStringSerialize(body); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); @@ -351,7 +362,8 @@ No authorization required -For this test, the body for this request much reference a schema named `File`. + +For this test, the body for this request much reference a schema named `File`. ### Example @@ -370,8 +382,10 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass | - try { + try { apiInstance.testBodyWithFileSchema(body); + + } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); System.err.println("Status code: " + e.getCode()); @@ -415,6 +429,7 @@ No authorization required + ### Example ```java @@ -433,8 +448,10 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); String query = "query_example"; // String | User body = new User(); // User | - try { + try { apiInstance.testBodyWithQueryParams(query, body); + + } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); System.err.println("Status code: " + e.getCode()); @@ -477,10 +494,11 @@ No authorization required > Client testClientModel(body) -To test \"client\" model To test \"client\" model +To test "client" model + ### Example ```java @@ -498,8 +516,9 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); Client body = new Client(); // Client | client model - try { + try { Client result = apiInstance.testClientModel(body); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testClientModel"); @@ -542,10 +561,14 @@ No authorization required > testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback) -Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 +Fake endpoint for testing various parameters + 假端點 + 偽のエンドポイント + 가짜 엔드 포인트 + ### Example ```java @@ -582,8 +605,10 @@ public class Example { OffsetDateTime dateTime = new OffsetDateTime(); // OffsetDateTime | None String password = "password_example"; // String | None String paramCallback = "paramCallback_example"; // String | None - try { + try { apiInstance.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); + + } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testEndpointParameters"); System.err.println("Status code: " + e.getCode()); @@ -639,6 +664,7 @@ null (empty response body) > testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString) + To test enum parameters To test enum parameters @@ -667,8 +693,10 @@ public class Example { Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double) List enumFormStringArray = "$"; // List | Form parameter enum test (string array) String enumFormString = "-efg"; // String | Form parameter enum test (string) - try { + try { apiInstance.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); + + } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testEnumParameters"); System.err.println("Status code: " + e.getCode()); @@ -716,7 +744,8 @@ No authorization required ## testGroupParameters -> testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group) + +> testGroupParameters().requiredStringGroup(requiredStringGroup).requiredBooleanGroup(requiredBooleanGroup).requiredInt64Group(requiredInt64Group).stringGroup(stringGroup).booleanGroup(booleanGroup).int64Group(int64Group).execute(); Fake endpoint to test group parameters (optional) @@ -744,8 +773,16 @@ public class Example { Integer stringGroup = 56; // Integer | String in group parameters Boolean booleanGroup = true; // Boolean | Boolean in group parameters Long int64Group = 56L; // Long | Integer in group parameters - try { - apiInstance.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); + try { + api.testGroupParameters() + .requiredStringGroup(requiredStringGroup) + .requiredBooleanGroup(requiredBooleanGroup) + .requiredInt64Group(requiredInt64Group) + .stringGroup(stringGroup) + .booleanGroup(booleanGroup) + .int64Group(int64Group) + .execute(); + } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testGroupParameters"); System.err.println("Status code: " + e.getCode()); @@ -792,6 +829,7 @@ No authorization required > testInlineAdditionalProperties(param) + test inline additionalProperties ### Example @@ -811,8 +849,10 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); Map param = new HashMap(); // Map | request body - try { + try { apiInstance.testInlineAdditionalProperties(param); + + } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); System.err.println("Status code: " + e.getCode()); @@ -854,6 +894,7 @@ No authorization required > testJsonFormData(param, param2) + test json serialization of form data ### Example @@ -874,8 +915,10 @@ public class Example { FakeApi apiInstance = new FakeApi(defaultClient); String param = "param_example"; // String | field1 String param2 = "param2_example"; // String | field2 - try { + try { apiInstance.testJsonFormData(param, param2); + + } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testJsonFormData"); System.err.println("Status code: " + e.getCode()); @@ -920,6 +963,7 @@ No authorization required + To test the collection format in query parameters ### Example @@ -943,8 +987,10 @@ public class Example { List http = Arrays.asList(); // List | List url = Arrays.asList(); // List | List context = Arrays.asList(); // List | - try { + try { apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); + + } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat"); System.err.println("Status code: " + e.getCode()); diff --git a/samples/client/petstore/java/jersey2/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/jersey2/docs/FakeClassnameTags123Api.md index 14a74a37a4e..1d683e302fa 100644 --- a/samples/client/petstore/java/jersey2/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/java/jersey2/docs/FakeClassnameTags123Api.md @@ -12,6 +12,7 @@ Method | HTTP request | Description > Client testClassname(body) + To test class name in snake case To test class name in snake case @@ -40,8 +41,9 @@ public class Example { FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(defaultClient); Client body = new Client(); // Client | client model - try { + try { Client result = apiInstance.testClassname(body); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); diff --git a/samples/client/petstore/java/jersey2/docs/PetApi.md b/samples/client/petstore/java/jersey2/docs/PetApi.md index 875a8e6783e..00452d3fec5 100644 --- a/samples/client/petstore/java/jersey2/docs/PetApi.md +++ b/samples/client/petstore/java/jersey2/docs/PetApi.md @@ -20,6 +20,7 @@ Method | HTTP request | Description > addPet(body) + Add a new pet to the store ### Example @@ -44,8 +45,10 @@ public class Example { PetApi apiInstance = new PetApi(defaultClient); Pet body = new Pet(); // Pet | Pet object that needs to be added to the store - try { + try { apiInstance.addPet(body); + + } catch (ApiException e) { System.err.println("Exception when calling PetApi#addPet"); System.err.println("Status code: " + e.getCode()); @@ -88,6 +91,7 @@ null (empty response body) > deletePet(petId, apiKey) + Deletes a pet ### Example @@ -113,8 +117,10 @@ public class Example { PetApi apiInstance = new PetApi(defaultClient); Long petId = 56L; // Long | Pet id to delete String apiKey = "apiKey_example"; // String | - try { + try { apiInstance.deletePet(petId, apiKey); + + } catch (ApiException e) { System.err.println("Exception when calling PetApi#deletePet"); System.err.println("Status code: " + e.getCode()); @@ -158,6 +164,7 @@ null (empty response body) > List<Pet> findPetsByStatus(status) + Finds Pets by status Multiple status values can be provided with comma separated strings @@ -184,8 +191,9 @@ public class Example { PetApi apiInstance = new PetApi(defaultClient); List status = Arrays.asList("available"); // List | Status values that need to be considered for filter - try { + try { List result = apiInstance.findPetsByStatus(status); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PetApi#findPetsByStatus"); @@ -229,6 +237,7 @@ Name | Type | Description | Notes > List<Pet> findPetsByTags(tags) + Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -255,8 +264,9 @@ public class Example { PetApi apiInstance = new PetApi(defaultClient); List tags = Arrays.asList(); // List | Tags to filter by - try { + try { List result = apiInstance.findPetsByTags(tags); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PetApi#findPetsByTags"); @@ -300,6 +310,7 @@ Name | Type | Description | Notes > Pet getPetById(petId) + Find pet by ID Returns a single pet @@ -328,8 +339,9 @@ public class Example { PetApi apiInstance = new PetApi(defaultClient); Long petId = 56L; // Long | ID of pet to return - try { + try { Pet result = apiInstance.getPetById(petId); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PetApi#getPetById"); @@ -374,6 +386,7 @@ Name | Type | Description | Notes > updatePet(body) + Update an existing pet ### Example @@ -398,8 +411,10 @@ public class Example { PetApi apiInstance = new PetApi(defaultClient); Pet body = new Pet(); // Pet | Pet object that needs to be added to the store - try { + try { apiInstance.updatePet(body); + + } catch (ApiException e) { System.err.println("Exception when calling PetApi#updatePet"); System.err.println("Status code: " + e.getCode()); @@ -444,6 +459,7 @@ null (empty response body) > updatePetWithForm(petId, name, status) + Updates a pet in the store with form data ### Example @@ -470,8 +486,10 @@ public class Example { Long petId = 56L; // Long | ID of pet that needs to be updated String name = "name_example"; // String | Updated name of the pet String status = "status_example"; // String | Updated status of the pet - try { + try { apiInstance.updatePetWithForm(petId, name, status); + + } catch (ApiException e) { System.err.println("Exception when calling PetApi#updatePetWithForm"); System.err.println("Status code: " + e.getCode()); @@ -515,6 +533,7 @@ null (empty response body) > ModelApiResponse uploadFile(petId, additionalMetadata, file) + uploads an image ### Example @@ -541,8 +560,9 @@ public class Example { Long petId = 56L; // Long | ID of pet to update String additionalMetadata = "additionalMetadata_example"; // String | Additional data to pass to server File file = new File("/path/to/file"); // File | file to upload - try { + try { ModelApiResponse result = apiInstance.uploadFile(petId, additionalMetadata, file); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PetApi#uploadFile"); @@ -587,6 +607,7 @@ Name | Type | Description | Notes > ModelApiResponse uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata) + uploads an image (required) ### Example @@ -613,8 +634,9 @@ public class Example { Long petId = 56L; // Long | ID of pet to update File requiredFile = new File("/path/to/file"); // File | file to upload String additionalMetadata = "additionalMetadata_example"; // String | Additional data to pass to server - try { + try { ModelApiResponse result = apiInstance.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PetApi#uploadFileWithRequiredFile"); diff --git a/samples/client/petstore/java/jersey2/docs/StoreApi.md b/samples/client/petstore/java/jersey2/docs/StoreApi.md index 352399ea515..f3a9b2320cb 100644 --- a/samples/client/petstore/java/jersey2/docs/StoreApi.md +++ b/samples/client/petstore/java/jersey2/docs/StoreApi.md @@ -15,9 +15,10 @@ Method | HTTP request | Description > deleteOrder(orderId) + Delete purchase order by ID -For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors +For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors ### Example @@ -36,8 +37,10 @@ public class Example { StoreApi apiInstance = new StoreApi(defaultClient); String orderId = "orderId_example"; // String | ID of the order that needs to be deleted - try { + try { apiInstance.deleteOrder(orderId); + + } catch (ApiException e) { System.err.println("Exception when calling StoreApi#deleteOrder"); System.err.println("Status code: " + e.getCode()); @@ -80,6 +83,7 @@ No authorization required > Map<String, Integer> getInventory() + Returns pet inventories by status Returns a map of status codes to quantities @@ -107,8 +111,9 @@ public class Example { //api_key.setApiKeyPrefix("Token"); StoreApi apiInstance = new StoreApi(defaultClient); - try { + try { Map result = apiInstance.getInventory(); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StoreApi#getInventory"); @@ -148,9 +153,10 @@ This endpoint does not need any parameter. > Order getOrderById(orderId) + Find purchase order by ID -For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions +For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions ### Example @@ -169,8 +175,9 @@ public class Example { StoreApi apiInstance = new StoreApi(defaultClient); Long orderId = 56L; // Long | ID of pet that needs to be fetched - try { + try { Order result = apiInstance.getOrderById(orderId); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StoreApi#getOrderById"); @@ -215,6 +222,7 @@ No authorization required > Order placeOrder(body) + Place an order for a pet ### Example @@ -234,8 +242,9 @@ public class Example { StoreApi apiInstance = new StoreApi(defaultClient); Order body = new Order(); // Order | order placed for purchasing the pet - try { + try { Order result = apiInstance.placeOrder(body); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StoreApi#placeOrder"); diff --git a/samples/client/petstore/java/jersey2/docs/UserApi.md b/samples/client/petstore/java/jersey2/docs/UserApi.md index ca9f550c316..9bd97f69694 100644 --- a/samples/client/petstore/java/jersey2/docs/UserApi.md +++ b/samples/client/petstore/java/jersey2/docs/UserApi.md @@ -19,6 +19,7 @@ Method | HTTP request | Description > createUser(body) + Create user This can only be done by the logged in user. @@ -40,8 +41,10 @@ public class Example { UserApi apiInstance = new UserApi(defaultClient); User body = new User(); // User | Created user object - try { + try { apiInstance.createUser(body); + + } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUser"); System.err.println("Status code: " + e.getCode()); @@ -83,6 +86,7 @@ No authorization required > createUsersWithArrayInput(body) + Creates list of users with given input array ### Example @@ -102,8 +106,10 @@ public class Example { UserApi apiInstance = new UserApi(defaultClient); List body = Arrays.asList(); // List | List of user object - try { + try { apiInstance.createUsersWithArrayInput(body); + + } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); System.err.println("Status code: " + e.getCode()); @@ -145,6 +151,7 @@ No authorization required > createUsersWithListInput(body) + Creates list of users with given input array ### Example @@ -164,8 +171,10 @@ public class Example { UserApi apiInstance = new UserApi(defaultClient); List body = Arrays.asList(); // List | List of user object - try { + try { apiInstance.createUsersWithListInput(body); + + } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithListInput"); System.err.println("Status code: " + e.getCode()); @@ -207,6 +216,7 @@ No authorization required > deleteUser(username) + Delete user This can only be done by the logged in user. @@ -228,8 +238,10 @@ public class Example { UserApi apiInstance = new UserApi(defaultClient); String username = "username_example"; // String | The name that needs to be deleted - try { + try { apiInstance.deleteUser(username); + + } catch (ApiException e) { System.err.println("Exception when calling UserApi#deleteUser"); System.err.println("Status code: " + e.getCode()); @@ -272,6 +284,7 @@ No authorization required > User getUserByName(username) + Get user by user name ### Example @@ -291,8 +304,9 @@ public class Example { UserApi apiInstance = new UserApi(defaultClient); String username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing. - try { + try { User result = apiInstance.getUserByName(username); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#getUserByName"); @@ -337,6 +351,7 @@ No authorization required > String loginUser(username, password) + Logs user into the system ### Example @@ -357,8 +372,9 @@ public class Example { UserApi apiInstance = new UserApi(defaultClient); String username = "username_example"; // String | The user name for login String password = "password_example"; // String | The password for login in clear text - try { + try { String result = apiInstance.loginUser(username, password); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#loginUser"); @@ -403,6 +419,7 @@ No authorization required > logoutUser() + Logs out current logged in user session ### Example @@ -421,8 +438,10 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - try { + try { apiInstance.logoutUser(); + + } catch (ApiException e) { System.err.println("Exception when calling UserApi#logoutUser"); System.err.println("Status code: " + e.getCode()); @@ -461,6 +480,7 @@ No authorization required > updateUser(username, body) + Updated user This can only be done by the logged in user. @@ -483,8 +503,10 @@ public class Example { UserApi apiInstance = new UserApi(defaultClient); String username = "username_example"; // String | name that need to be deleted User body = new User(); // User | Updated user object - try { + try { apiInstance.updateUser(username, body); + + } catch (ApiException e) { System.err.println("Exception when calling UserApi#updateUser"); System.err.println("Status code: " + e.getCode()); diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 9d0776bb227..351b3182902 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -34,7 +34,6 @@ public class AnotherFakeApi { public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** * To test special tags * To test special tags and operation ID starting with number @@ -43,13 +42,13 @@ public class AnotherFakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public Client call123testSpecialTags(Client body) throws ApiException { return call123testSpecialTagsWithHttpInfo(body).getData(); - } + } /** * To test special tags @@ -59,8 +58,8 @@ public class AnotherFakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ApiResponse call123testSpecialTagsWithHttpInfo(Client body) throws ApiException { @@ -98,5 +97,5 @@ public class AnotherFakeApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/FakeApi.java index 28099fcab83..fc2bb8b4367 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/FakeApi.java @@ -42,7 +42,6 @@ public class FakeApi { public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** * creates an XmlItem * this route creates an XmlItem @@ -50,12 +49,11 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public void createXmlItem(XmlItem xmlItem) throws ApiException { - createXmlItemWithHttpInfo(xmlItem); } @@ -67,8 +65,8 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ApiResponse createXmlItemWithHttpInfo(XmlItem xmlItem) throws ApiException { @@ -104,7 +102,7 @@ public class FakeApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -115,13 +113,13 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Output boolean -
Status Code Description Response Headers
200 Output boolean -
*/ public Boolean fakeOuterBooleanSerialize(Boolean body) throws ApiException { return fakeOuterBooleanSerializeWithHttpInfo(body).getData(); - } + } /** * @@ -131,8 +129,8 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Output boolean -
Status Code Description Response Headers
200 Output boolean -
*/ public ApiResponse fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws ApiException { @@ -165,7 +163,7 @@ public class FakeApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * * Test serialization of object with outer number type @@ -174,13 +172,13 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Output composite -
Status Code Description Response Headers
200 Output composite -
*/ public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException { return fakeOuterCompositeSerializeWithHttpInfo(body).getData(); - } + } /** * @@ -190,8 +188,8 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Output composite -
Status Code Description Response Headers
200 Output composite -
*/ public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(OuterComposite body) throws ApiException { @@ -224,7 +222,7 @@ public class FakeApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * * Test serialization of outer number types @@ -233,13 +231,13 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Output number -
Status Code Description Response Headers
200 Output number -
*/ public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws ApiException { return fakeOuterNumberSerializeWithHttpInfo(body).getData(); - } + } /** * @@ -249,8 +247,8 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Output number -
Status Code Description Response Headers
200 Output number -
*/ public ApiResponse fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws ApiException { @@ -283,7 +281,7 @@ public class FakeApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * * Test serialization of outer string types @@ -292,13 +290,13 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Output string -
Status Code Description Response Headers
200 Output string -
*/ public String fakeOuterStringSerialize(String body) throws ApiException { return fakeOuterStringSerializeWithHttpInfo(body).getData(); - } + } /** * @@ -308,8 +306,8 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Output string -
Status Code Description Response Headers
200 Output string -
*/ public ApiResponse fakeOuterStringSerializeWithHttpInfo(String body) throws ApiException { @@ -342,7 +340,7 @@ public class FakeApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * * For this test, the body for this request much reference a schema named `File`. @@ -350,12 +348,11 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Success -
Status Code Description Response Headers
200 Success -
*/ public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException { - testBodyWithFileSchemaWithHttpInfo(body); } @@ -367,8 +364,8 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Success -
Status Code Description Response Headers
200 Success -
*/ public ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws ApiException { @@ -404,7 +401,7 @@ public class FakeApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -415,12 +412,11 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Success -
Status Code Description Response Headers
200 Success -
*/ public void testBodyWithQueryParams(String query, User body) throws ApiException { - testBodyWithQueryParamsWithHttpInfo(query, body); } @@ -433,8 +429,8 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Success -
Status Code Description Response Headers
200 Success -
*/ public ApiResponse testBodyWithQueryParamsWithHttpInfo(String query, User body) throws ApiException { @@ -476,7 +472,7 @@ public class FakeApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -487,13 +483,13 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public Client testClientModel(Client body) throws ApiException { return testClientModelWithHttpInfo(body).getData(); - } + } /** * To test \"client\" model @@ -503,8 +499,8 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ApiResponse testClientModelWithHttpInfo(Client body) throws ApiException { @@ -542,7 +538,7 @@ public class FakeApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -563,13 +559,12 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid username supplied -
404 User not found -
Status Code Description Response Headers
400 Invalid username supplied -
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 { - testEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -594,9 +589,9 @@ public class FakeApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid username supplied -
404 User not found -
Status Code Description Response Headers
400 Invalid username supplied -
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 { @@ -675,7 +670,7 @@ if (paramCallback != null) String[] localVarAuthNames = new String[] { "http_basic_test" }; - + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -692,13 +687,12 @@ if (paramCallback != null) * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid request -
404 Not found -
Status Code Description Response Headers
400 Invalid request -
404 Not found -
*/ public void testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { - testEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); } @@ -717,9 +711,9 @@ if (paramCallback != null) * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid request -
404 Not found -
Status Code Description Response Headers
400 Invalid request -
404 Not found -
*/ public ApiResponse testEnumParametersWithHttpInfo(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { @@ -762,48 +756,11 @@ if (enumFormString != null) String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } - /** - * Fake endpoint to test group parameters (optional) - * Fake endpoint to test group parameters (optional) - * @param requiredStringGroup Required String in group parameters (required) - * @param requiredBooleanGroup Required Boolean in group parameters (required) - * @param requiredInt64Group Required Integer in group parameters (required) - * @param stringGroup String in group parameters (optional) - * @param booleanGroup Boolean in group parameters (optional) - * @param int64Group Integer in group parameters (optional) - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
400 Someting wrong -
- */ - public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { - testGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); - } - - /** - * Fake endpoint to test group parameters (optional) - * Fake endpoint to test group parameters (optional) - * @param requiredStringGroup Required String in group parameters (required) - * @param requiredBooleanGroup Required Boolean in group parameters (required) - * @param requiredInt64Group Required Integer in group parameters (required) - * @param stringGroup String in group parameters (optional) - * @param booleanGroup Boolean in group parameters (optional) - * @param int64Group Integer in group parameters (optional) - * @return ApiResponse<Void> - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
400 Someting wrong -
- */ - public ApiResponse testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { +private ApiResponse testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'requiredStringGroup' is set @@ -854,9 +811,133 @@ if (booleanGroup != null) String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } + + public class APItestGroupParametersRequest { + private Integer requiredStringGroup; + private Boolean requiredBooleanGroup; + private Long requiredInt64Group; + private Integer stringGroup; + private Boolean booleanGroup; + private Long int64Group; + + private APItestGroupParametersRequest() { + } + + + /** + * Set requiredStringGroup + * @param requiredStringGroup Required String in group parameters (required) + * @return APItestGroupParametersRequest + */ + public APItestGroupParametersRequest requiredStringGroup(Integer requiredStringGroup) { + this.requiredStringGroup = requiredStringGroup; + return this; + } + + + /** + * Set requiredBooleanGroup + * @param requiredBooleanGroup Required Boolean in group parameters (required) + * @return APItestGroupParametersRequest + */ + public APItestGroupParametersRequest requiredBooleanGroup(Boolean requiredBooleanGroup) { + this.requiredBooleanGroup = requiredBooleanGroup; + return this; + } + + + /** + * Set requiredInt64Group + * @param requiredInt64Group Required Integer in group parameters (required) + * @return APItestGroupParametersRequest + */ + public APItestGroupParametersRequest requiredInt64Group(Long requiredInt64Group) { + this.requiredInt64Group = requiredInt64Group; + return this; + } + + + /** + * Set stringGroup + * @param stringGroup String in group parameters (optional) + * @return APItestGroupParametersRequest + */ + public APItestGroupParametersRequest stringGroup(Integer stringGroup) { + this.stringGroup = stringGroup; + return this; + } + + + /** + * Set booleanGroup + * @param booleanGroup Boolean in group parameters (optional) + * @return APItestGroupParametersRequest + */ + public APItestGroupParametersRequest booleanGroup(Boolean booleanGroup) { + this.booleanGroup = booleanGroup; + return this; + } + + + /** + * Set int64Group + * @param int64Group Integer in group parameters (optional) + * @return APItestGroupParametersRequest + */ + public APItestGroupParametersRequest int64Group(Long int64Group) { + this.int64Group = int64Group; + return this; + } + + + /** + * Execute testGroupParameters request + + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
400 Someting wrong -
+ + */ + + public void execute() throws ApiException { + this.executeWithHttpInfo().getData(); + } + + /** + * Execute testGroupParameters request with HTTP info returned + * @return ApiResponse<Void> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
400 Someting wrong -
+ + */ + + public ApiResponse executeWithHttpInfo() throws ApiException { + return testGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); + } + } + + /** + * Fake endpoint to test group parameters (optional) + * Fake endpoint to test group parameters (optional) + * @return testGroupParametersRequest + * @throws ApiException if fails to make API call + + + */ + + public APItestGroupParametersRequest testGroupParameters() throws ApiException { + return new APItestGroupParametersRequest(); + } /** * test inline additionalProperties * @@ -864,12 +945,11 @@ if (booleanGroup != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public void testInlineAdditionalProperties(Map param) throws ApiException { - testInlineAdditionalPropertiesWithHttpInfo(param); } @@ -881,8 +961,8 @@ if (booleanGroup != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map param) throws ApiException { @@ -918,7 +998,7 @@ if (booleanGroup != null) String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -929,12 +1009,11 @@ if (booleanGroup != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public void testJsonFormData(String param, String param2) throws ApiException { - testJsonFormDataWithHttpInfo(param, param2); } @@ -947,8 +1026,8 @@ if (booleanGroup != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ApiResponse testJsonFormDataWithHttpInfo(String param, String param2) throws ApiException { @@ -993,7 +1072,7 @@ if (param2 != null) String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -1007,12 +1086,11 @@ if (param2 != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Success -
Status Code Description Response Headers
200 Success -
*/ public void testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context) throws ApiException { - testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context); } @@ -1028,8 +1106,8 @@ if (param2 != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 Success -
Status Code Description Response Headers
200 Success -
*/ public ApiResponse testQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context) throws ApiException { @@ -1090,7 +1168,7 @@ if (param2 != null) String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index e4f033f2a10..b683fb3d19a 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -34,7 +34,6 @@ public class FakeClassnameTags123Api { public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** * To test class name in snake case * To test class name in snake case @@ -43,13 +42,13 @@ public class FakeClassnameTags123Api { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public Client testClassname(Client body) throws ApiException { return testClassnameWithHttpInfo(body).getData(); - } + } /** * To test class name in snake case @@ -59,8 +58,8 @@ public class FakeClassnameTags123Api { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ApiResponse testClassnameWithHttpInfo(Client body) throws ApiException { @@ -98,5 +97,5 @@ public class FakeClassnameTags123Api { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/PetApi.java index 11467f78a10..3a6881beecf 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/PetApi.java @@ -36,7 +36,6 @@ public class PetApi { public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** * Add a new pet to the store * @@ -44,13 +43,12 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
405 Invalid input -
Status Code Description Response Headers
200 successful operation -
405 Invalid input -
*/ public void addPet(Pet body) throws ApiException { - addPetWithHttpInfo(body); } @@ -62,9 +60,9 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
405 Invalid input -
Status Code Description Response Headers
200 successful operation -
405 Invalid input -
*/ public ApiResponse addPetWithHttpInfo(Pet body) throws ApiException { @@ -100,7 +98,7 @@ public class PetApi { String[] localVarAuthNames = new String[] { "petstore_auth" }; - + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -111,13 +109,12 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid pet value -
Status Code Description Response Headers
200 successful operation -
400 Invalid pet value -
*/ public void deletePet(Long petId, String apiKey) throws ApiException { - deletePetWithHttpInfo(petId, apiKey); } @@ -130,9 +127,9 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid pet value -
Status Code Description Response Headers
200 successful operation -
400 Invalid pet value -
*/ public ApiResponse deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException { @@ -171,7 +168,7 @@ public class PetApi { String[] localVarAuthNames = new String[] { "petstore_auth" }; - + return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -182,14 +179,14 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid status value -
Status Code Description Response Headers
200 successful operation -
400 Invalid status value -
*/ public List findPetsByStatus(List status) throws ApiException { return findPetsByStatusWithHttpInfo(status).getData(); - } + } /** * Finds Pets by status @@ -199,9 +196,9 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid status value -
Status Code Description Response Headers
200 successful operation -
400 Invalid status value -
*/ public ApiResponse> findPetsByStatusWithHttpInfo(List status) throws ApiException { @@ -240,7 +237,7 @@ public class PetApi { GenericType> localVarReturnType = new GenericType>() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * Finds Pets by tags * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -249,16 +246,16 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid tag value -
Status Code Description Response Headers
200 successful operation -
400 Invalid tag value -
* @deprecated */ @Deprecated public List findPetsByTags(List tags) throws ApiException { return findPetsByTagsWithHttpInfo(tags).getData(); - } + } /** * Finds Pets by tags @@ -268,9 +265,9 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid tag value -
Status Code Description Response Headers
200 successful operation -
400 Invalid tag value -
* @deprecated */ @@ -311,7 +308,7 @@ public class PetApi { GenericType> localVarReturnType = new GenericType>() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * Find pet by ID * Returns a single pet @@ -320,15 +317,15 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - - + + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Pet not found -
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Pet not found -
*/ public Pet getPetById(Long petId) throws ApiException { return getPetByIdWithHttpInfo(petId).getData(); - } + } /** * Find pet by ID @@ -338,10 +335,10 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - - + + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Pet not found -
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Pet not found -
*/ public ApiResponse getPetByIdWithHttpInfo(Long petId) throws ApiException { @@ -380,7 +377,7 @@ public class PetApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * Update an existing pet * @@ -388,15 +385,14 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - - - + + + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Pet not found -
405 Validation exception -
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Pet not found -
405 Validation exception -
*/ public void updatePet(Pet body) throws ApiException { - updatePetWithHttpInfo(body); } @@ -408,11 +404,11 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - - - - + + + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Pet not found -
405 Validation exception -
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Pet not found -
405 Validation exception -
*/ public ApiResponse updatePetWithHttpInfo(Pet body) throws ApiException { @@ -448,7 +444,7 @@ public class PetApi { String[] localVarAuthNames = new String[] { "petstore_auth" }; - + return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -460,12 +456,11 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
405 Invalid input -
Status Code Description Response Headers
405 Invalid input -
*/ public void updatePetWithForm(Long petId, String name, String status) throws ApiException { - updatePetWithFormWithHttpInfo(petId, name, status); } @@ -479,8 +474,8 @@ public class PetApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
405 Invalid input -
Status Code Description Response Headers
405 Invalid input -
*/ public ApiResponse updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException { @@ -521,7 +516,7 @@ if (status != null) String[] localVarAuthNames = new String[] { "petstore_auth" }; - + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -534,13 +529,13 @@ if (status != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File file) throws ApiException { return uploadFileWithHttpInfo(petId, additionalMetadata, file).getData(); - } + } /** * uploads an image @@ -552,8 +547,8 @@ if (status != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ApiResponse uploadFileWithHttpInfo(Long petId, String additionalMetadata, File file) throws ApiException { @@ -596,7 +591,7 @@ if (file != null) GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * uploads an image (required) * @@ -607,13 +602,13 @@ if (file != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws ApiException { return uploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata).getData(); - } + } /** * uploads an image (required) @@ -625,8 +620,8 @@ if (file != null) * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ApiResponse uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws ApiException { @@ -674,5 +669,5 @@ if (requiredFile != null) GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/StoreApi.java index 42734da7a61..1d91724c7e8 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/StoreApi.java @@ -34,7 +34,6 @@ public class StoreApi { public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** * Delete purchase order by ID * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors @@ -42,13 +41,12 @@ public class StoreApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid ID supplied -
404 Order not found -
Status Code Description Response Headers
400 Invalid ID supplied -
404 Order not found -
*/ public void deleteOrder(String orderId) throws ApiException { - deleteOrderWithHttpInfo(orderId); } @@ -60,9 +58,9 @@ public class StoreApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid ID supplied -
404 Order not found -
Status Code Description Response Headers
400 Invalid ID supplied -
404 Order not found -
*/ public ApiResponse deleteOrderWithHttpInfo(String orderId) throws ApiException { @@ -99,7 +97,7 @@ public class StoreApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -109,13 +107,13 @@ public class StoreApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public Map getInventory() throws ApiException { return getInventoryWithHttpInfo().getData(); - } + } /** * Returns pet inventories by status @@ -124,8 +122,8 @@ public class StoreApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
200 successful operation -
Status Code Description Response Headers
200 successful operation -
*/ public ApiResponse> getInventoryWithHttpInfo() throws ApiException { @@ -158,7 +156,7 @@ public class StoreApi { GenericType> localVarReturnType = new GenericType>() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * Find purchase order by ID * For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions @@ -167,15 +165,15 @@ public class StoreApi { * @throws ApiException if fails to make API call * @http.response.details - - - - + + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Order not found -
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Order not found -
*/ public Order getOrderById(Long orderId) throws ApiException { return getOrderByIdWithHttpInfo(orderId).getData(); - } + } /** * Find purchase order by ID @@ -185,10 +183,10 @@ public class StoreApi { * @throws ApiException if fails to make API call * @http.response.details - - - - + + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Order not found -
Status Code Description Response Headers
200 successful operation -
400 Invalid ID supplied -
404 Order not found -
*/ public ApiResponse getOrderByIdWithHttpInfo(Long orderId) throws ApiException { @@ -227,7 +225,7 @@ public class StoreApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * Place an order for a pet * @@ -236,14 +234,14 @@ public class StoreApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid Order -
Status Code Description Response Headers
200 successful operation -
400 Invalid Order -
*/ public Order placeOrder(Order body) throws ApiException { return placeOrderWithHttpInfo(body).getData(); - } + } /** * Place an order for a pet @@ -253,9 +251,9 @@ public class StoreApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid Order -
Status Code Description Response Headers
200 successful operation -
400 Invalid Order -
*/ public ApiResponse placeOrderWithHttpInfo(Order body) throws ApiException { @@ -293,5 +291,5 @@ public class StoreApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/UserApi.java index ab4ae8c089f..4bd9e6801a4 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/UserApi.java @@ -34,7 +34,6 @@ public class UserApi { public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** * Create user * This can only be done by the logged in user. @@ -42,12 +41,11 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
0 successful operation -
Status Code Description Response Headers
0 successful operation -
*/ public void createUser(User body) throws ApiException { - createUserWithHttpInfo(body); } @@ -59,8 +57,8 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
0 successful operation -
Status Code Description Response Headers
0 successful operation -
*/ public ApiResponse createUserWithHttpInfo(User body) throws ApiException { @@ -96,7 +94,7 @@ public class UserApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -106,12 +104,11 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
0 successful operation -
Status Code Description Response Headers
0 successful operation -
*/ public void createUsersWithArrayInput(List body) throws ApiException { - createUsersWithArrayInputWithHttpInfo(body); } @@ -123,8 +120,8 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
0 successful operation -
Status Code Description Response Headers
0 successful operation -
*/ public ApiResponse createUsersWithArrayInputWithHttpInfo(List body) throws ApiException { @@ -160,7 +157,7 @@ public class UserApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -170,12 +167,11 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
0 successful operation -
Status Code Description Response Headers
0 successful operation -
*/ public void createUsersWithListInput(List body) throws ApiException { - createUsersWithListInputWithHttpInfo(body); } @@ -187,8 +183,8 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
0 successful operation -
Status Code Description Response Headers
0 successful operation -
*/ public ApiResponse createUsersWithListInputWithHttpInfo(List body) throws ApiException { @@ -224,7 +220,7 @@ public class UserApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -234,13 +230,12 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid username supplied -
404 User not found -
Status Code Description Response Headers
400 Invalid username supplied -
404 User not found -
*/ public void deleteUser(String username) throws ApiException { - deleteUserWithHttpInfo(username); } @@ -252,9 +247,9 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid username supplied -
404 User not found -
Status Code Description Response Headers
400 Invalid username supplied -
404 User not found -
*/ public ApiResponse deleteUserWithHttpInfo(String username) throws ApiException { @@ -291,7 +286,7 @@ public class UserApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -302,15 +297,15 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - - - + + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid username supplied -
404 User not found -
Status Code Description Response Headers
200 successful operation -
400 Invalid username supplied -
404 User not found -
*/ public User getUserByName(String username) throws ApiException { return getUserByNameWithHttpInfo(username).getData(); - } + } /** * Get user by user name @@ -320,10 +315,10 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - - - + + + +
Status Code Description Response Headers
200 successful operation -
400 Invalid username supplied -
404 User not found -
Status Code Description Response Headers
200 successful operation -
400 Invalid username supplied -
404 User not found -
*/ public ApiResponse getUserByNameWithHttpInfo(String username) throws ApiException { @@ -362,7 +357,7 @@ public class UserApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * Logs user into the system * @@ -372,14 +367,14 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation * X-Rate-Limit - calls per hour allowed by the user
* X-Expires-After - date in UTC when token expires
400 Invalid username/password supplied -
Status Code Description Response Headers
200 successful operation * X-Rate-Limit - calls per hour allowed by the user
* X-Expires-After - date in UTC when token expires
400 Invalid username/password supplied -
*/ public String loginUser(String username, String password) throws ApiException { return loginUserWithHttpInfo(username, password).getData(); - } + } /** * Logs user into the system @@ -390,9 +385,9 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 successful operation * X-Rate-Limit - calls per hour allowed by the user
* X-Expires-After - date in UTC when token expires
400 Invalid username/password supplied -
Status Code Description Response Headers
200 successful operation * X-Rate-Limit - calls per hour allowed by the user
* X-Expires-After - date in UTC when token expires
400 Invalid username/password supplied -
*/ public ApiResponse loginUserWithHttpInfo(String username, String password) throws ApiException { @@ -437,19 +432,18 @@ public class UserApi { GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + } /** * Logs out current logged in user session * * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
0 successful operation -
Status Code Description Response Headers
0 successful operation -
*/ public void logoutUser() throws ApiException { - logoutUserWithHttpInfo(); } @@ -460,8 +454,8 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - + +
Status Code Description Response Headers
0 successful operation -
Status Code Description Response Headers
0 successful operation -
*/ public ApiResponse logoutUserWithHttpInfo() throws ApiException { @@ -492,7 +486,7 @@ public class UserApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** @@ -503,13 +497,12 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid user supplied -
404 User not found -
Status Code Description Response Headers
400 Invalid user supplied -
404 User not found -
*/ public void updateUser(String username, User body) throws ApiException { - updateUserWithHttpInfo(username, body); } @@ -522,9 +515,9 @@ public class UserApi { * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
400 Invalid user supplied -
404 User not found -
Status Code Description Response Headers
400 Invalid user supplied -
404 User not found -
*/ public ApiResponse updateUserWithHttpInfo(String username, User body) throws ApiException { @@ -566,7 +559,7 @@ public class UserApi { String[] localVarAuthNames = new String[] { }; - + return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } } diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java index b6db8d2a2c3..837b5ea0246 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -42,9 +42,8 @@ public class AnotherFakeApiTest { */ @Test public void call123testSpecialTagsTest() throws ApiException { - Client client = null; - Client response = api.call123testSpecialTags(client); - + Client body = null; + Client response = api.call123testSpecialTags(body); // TODO: test validations } diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/FakeApiTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/FakeApiTest.java index 07f4a80a5b2..5f2fd58220d 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/FakeApiTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/FakeApiTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,6 +22,7 @@ import org.threeten.bp.LocalDate; import org.threeten.bp.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.User; +import org.openapitools.client.model.XmlItem; import org.junit.Test; import org.junit.Ignore; @@ -39,6 +40,21 @@ public class FakeApiTest { private final FakeApi api = new FakeApi(); + /** + * creates an XmlItem + * + * this route creates an XmlItem + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createXmlItemTest() throws ApiException { + XmlItem xmlItem = null; + api.createXmlItem(xmlItem); + // TODO: test validations + } + /** * * @@ -51,7 +67,6 @@ public class FakeApiTest { public void fakeOuterBooleanSerializeTest() throws ApiException { Boolean body = null; Boolean response = api.fakeOuterBooleanSerialize(body); - // TODO: test validations } @@ -65,9 +80,8 @@ public class FakeApiTest { */ @Test public void fakeOuterCompositeSerializeTest() throws ApiException { - OuterComposite outerComposite = null; - OuterComposite response = api.fakeOuterCompositeSerialize(outerComposite); - + OuterComposite body = null; + OuterComposite response = api.fakeOuterCompositeSerialize(body); // TODO: test validations } @@ -83,7 +97,6 @@ public class FakeApiTest { public void fakeOuterNumberSerializeTest() throws ApiException { BigDecimal body = null; BigDecimal response = api.fakeOuterNumberSerialize(body); - // TODO: test validations } @@ -99,7 +112,6 @@ public class FakeApiTest { public void fakeOuterStringSerializeTest() throws ApiException { String body = null; String response = api.fakeOuterStringSerialize(body); - // TODO: test validations } @@ -113,9 +125,8 @@ public class FakeApiTest { */ @Test public void testBodyWithFileSchemaTest() throws ApiException { - FileSchemaTestClass fileSchemaTestClass = null; - api.testBodyWithFileSchema(fileSchemaTestClass); - + FileSchemaTestClass body = null; + api.testBodyWithFileSchema(body); // TODO: test validations } @@ -130,9 +141,8 @@ public class FakeApiTest { @Test public void testBodyWithQueryParamsTest() throws ApiException { String query = null; - User user = null; - api.testBodyWithQueryParams(query, user); - + User body = null; + api.testBodyWithQueryParams(query, body); // TODO: test validations } @@ -146,9 +156,8 @@ public class FakeApiTest { */ @Test public void testClientModelTest() throws ApiException { - Client client = null; - Client response = api.testClientModel(client); - + Client body = null; + Client response = api.testClientModel(body); // TODO: test validations } @@ -177,7 +186,6 @@ public class FakeApiTest { String password = null; String paramCallback = null; api.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); - // TODO: test validations } @@ -200,7 +208,6 @@ public class FakeApiTest { List enumFormStringArray = null; String enumFormString = null; api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); - // TODO: test validations } @@ -220,8 +227,14 @@ public class FakeApiTest { Integer stringGroup = null; Boolean booleanGroup = null; Long int64Group = null; - api.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); - + api.testGroupParameters() + .requiredStringGroup(requiredStringGroup) + .requiredBooleanGroup(requiredBooleanGroup) + .requiredInt64Group(requiredInt64Group) + .stringGroup(stringGroup) + .booleanGroup(booleanGroup) + .int64Group(int64Group) + .execute(); // TODO: test validations } @@ -235,9 +248,8 @@ public class FakeApiTest { */ @Test public void testInlineAdditionalPropertiesTest() throws ApiException { - Map requestBody = null; - api.testInlineAdditionalProperties(requestBody); - + Map param = null; + api.testInlineAdditionalProperties(param); // TODO: test validations } @@ -254,7 +266,25 @@ public class FakeApiTest { String param = null; String param2 = null; api.testJsonFormData(param, param2); - + // TODO: test validations + } + + /** + * + * + * To test the collection format in query parameters + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void testQueryParameterCollectionFormatTest() throws ApiException { + List pipe = null; + List ioutil = null; + List http = null; + List url = null; + List context = null; + api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); // TODO: test validations } diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java index e2ac28cb12a..71999316797 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/FakeClassnameTags123ApiTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -42,9 +42,8 @@ public class FakeClassnameTags123ApiTest { */ @Test public void testClassnameTest() throws ApiException { - Client client = null; - Client response = api.testClassname(client); - + Client body = null; + Client response = api.testClassname(body); // TODO: test validations } diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/PetApiTest.java index d3fbe90a5a6..fd382967f1d 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -44,9 +44,8 @@ public class PetApiTest { */ @Test public void addPetTest() throws ApiException { - Pet pet = null; - api.addPet(pet); - + Pet body = null; + api.addPet(body); // TODO: test validations } @@ -63,7 +62,6 @@ public class PetApiTest { Long petId = null; String apiKey = null; api.deletePet(petId, apiKey); - // TODO: test validations } @@ -79,7 +77,6 @@ public class PetApiTest { public void findPetsByStatusTest() throws ApiException { List status = null; List response = api.findPetsByStatus(status); - // TODO: test validations } @@ -95,7 +92,6 @@ public class PetApiTest { public void findPetsByTagsTest() throws ApiException { List tags = null; List response = api.findPetsByTags(tags); - // TODO: test validations } @@ -111,7 +107,6 @@ public class PetApiTest { public void getPetByIdTest() throws ApiException { Long petId = null; Pet response = api.getPetById(petId); - // TODO: test validations } @@ -125,9 +120,8 @@ public class PetApiTest { */ @Test public void updatePetTest() throws ApiException { - Pet pet = null; - api.updatePet(pet); - + Pet body = null; + api.updatePet(body); // TODO: test validations } @@ -145,7 +139,6 @@ public class PetApiTest { String name = null; String status = null; api.updatePetWithForm(petId, name, status); - // TODO: test validations } @@ -163,7 +156,23 @@ public class PetApiTest { String additionalMetadata = null; File file = null; ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file); - + // TODO: test validations + } + + /** + * uploads an image (required) + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void uploadFileWithRequiredFileTest() throws ApiException { + Long petId = null; + File requiredFile = null; + String additionalMetadata = null; + ModelApiResponse response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); // TODO: test validations } diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/StoreApiTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/StoreApiTest.java index f83e6c38972..cd36a70fece 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/StoreApiTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/StoreApiTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -44,7 +44,6 @@ public class StoreApiTest { public void deleteOrderTest() throws ApiException { String orderId = null; api.deleteOrder(orderId); - // TODO: test validations } @@ -59,7 +58,6 @@ public class StoreApiTest { @Test public void getInventoryTest() throws ApiException { Map response = api.getInventory(); - // TODO: test validations } @@ -75,7 +73,6 @@ public class StoreApiTest { public void getOrderByIdTest() throws ApiException { Long orderId = null; Order response = api.getOrderById(orderId); - // TODO: test validations } @@ -89,9 +86,8 @@ public class StoreApiTest { */ @Test public void placeOrderTest() throws ApiException { - Order order = null; - Order response = api.placeOrder(order); - + Order body = null; + Order response = api.placeOrder(body); // TODO: test validations } diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/UserApiTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/UserApiTest.java index 79e0b6b2bb5..f7ef9050c95 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/UserApiTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/UserApiTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -42,9 +42,8 @@ public class UserApiTest { */ @Test public void createUserTest() throws ApiException { - User user = null; - api.createUser(user); - + User body = null; + api.createUser(body); // TODO: test validations } @@ -58,9 +57,8 @@ public class UserApiTest { */ @Test public void createUsersWithArrayInputTest() throws ApiException { - List user = null; - api.createUsersWithArrayInput(user); - + List body = null; + api.createUsersWithArrayInput(body); // TODO: test validations } @@ -74,9 +72,8 @@ public class UserApiTest { */ @Test public void createUsersWithListInputTest() throws ApiException { - List user = null; - api.createUsersWithListInput(user); - + List body = null; + api.createUsersWithListInput(body); // TODO: test validations } @@ -92,7 +89,6 @@ public class UserApiTest { public void deleteUserTest() throws ApiException { String username = null; api.deleteUser(username); - // TODO: test validations } @@ -108,7 +104,6 @@ public class UserApiTest { public void getUserByNameTest() throws ApiException { String username = null; User response = api.getUserByName(username); - // TODO: test validations } @@ -125,7 +120,6 @@ public class UserApiTest { String username = null; String password = null; String response = api.loginUser(username, password); - // TODO: test validations } @@ -140,7 +134,6 @@ public class UserApiTest { @Test public void logoutUserTest() throws ApiException { api.logoutUser(); - // TODO: test validations } @@ -155,9 +148,8 @@ public class UserApiTest { @Test public void updateUserTest() throws ApiException { String username = null; - User user = null; - api.updateUser(username, user); - + User body = null; + api.updateUser(username, body); // TODO: test validations } diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java index 2b0bd0bbaef..ec44af78387 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesAnyTypeTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java index c6dd88eea82..ceb024c5620 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesArrayTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java index 9d474c0dd80..517e5a10ae4 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesBooleanTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java index c6bcc988bf9..2e3844ba975 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesClassTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,11 +13,13 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.math.BigDecimal; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -41,19 +43,91 @@ public class AdditionalPropertiesClassTest { } /** - * Test the property 'mapProperty' + * Test the property 'mapString' */ @Test - public void mapPropertyTest() { - // TODO: test mapProperty + public void mapStringTest() { + // TODO: test mapString } /** - * Test the property 'mapOfMapProperty' + * Test the property 'mapNumber' */ @Test - public void mapOfMapPropertyTest() { - // TODO: test mapOfMapProperty + public void mapNumberTest() { + // TODO: test mapNumber + } + + /** + * Test the property 'mapInteger' + */ + @Test + public void mapIntegerTest() { + // TODO: test mapInteger + } + + /** + * Test the property 'mapBoolean' + */ + @Test + public void mapBooleanTest() { + // TODO: test mapBoolean + } + + /** + * Test the property 'mapArrayInteger' + */ + @Test + public void mapArrayIntegerTest() { + // TODO: test mapArrayInteger + } + + /** + * Test the property 'mapArrayAnytype' + */ + @Test + public void mapArrayAnytypeTest() { + // TODO: test mapArrayAnytype + } + + /** + * Test the property 'mapMapString' + */ + @Test + public void mapMapStringTest() { + // TODO: test mapMapString + } + + /** + * Test the property 'mapMapAnytype' + */ + @Test + public void mapMapAnytypeTest() { + // TODO: test mapMapAnytype + } + + /** + * Test the property 'anytype1' + */ + @Test + public void anytype1Test() { + // TODO: test anytype1 + } + + /** + * Test the property 'anytype2' + */ + @Test + public void anytype2Test() { + // TODO: test anytype2 + } + + /** + * Test the property 'anytype3' + */ + @Test + public void anytype3Test() { + // TODO: test anytype3 } } diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java index bf1b1c427b6..66a7b85623e 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesIntegerTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java index b9cb6470e38..4e03485a448 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesNumberTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java index 3cbcb8ec3b0..e0c72c58634 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesObjectTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java index 1d3c05075ea..c84d987e764 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AdditionalPropertiesStringTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AnimalTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AnimalTest.java index beb02882b30..c0d10ec5a3d 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AnimalTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/AnimalTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java index ae7970522b1..e25187a3b60 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java index 6151b7068b7..ae106182399 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ArrayOfNumberOnlyTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ArrayTestTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ArrayTestTest.java index 4bb62b6569a..36bd9951cf6 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ArrayTestTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ArrayTestTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/CapitalizationTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/CapitalizationTest.java index eae9be7938c..a701b341fc5 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/CapitalizationTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/CapitalizationTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/CatAllOfTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/CatAllOfTest.java index 69b226745d7..1d85a044725 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/CatAllOfTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/CatAllOfTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/CatTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/CatTest.java index dcb9f2d4cae..dbf40678a2d 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/CatTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/CatTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,12 +13,14 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.client.model.Animal; +import org.openapitools.client.model.CatAllOf; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/CategoryTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/CategoryTest.java index 1df27cf0320..6027994a2ac 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/CategoryTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/CategoryTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ClassModelTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ClassModelTest.java index 04eb02f835e..8914c9cad43 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ClassModelTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ClassModelTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ClientTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ClientTest.java index 03b6bb41a52..c21b346272d 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ClientTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ClientTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/DogAllOfTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/DogAllOfTest.java index 1b83dcefc4f..6e4b4910809 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/DogAllOfTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/DogAllOfTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/DogTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/DogTest.java index 06ac28f804a..a46bc508d48 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/DogTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/DogTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,12 +13,14 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.client.model.Animal; +import org.openapitools.client.model.DogAllOf; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/EnumArraysTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/EnumArraysTest.java index 11b5f01985f..45b8fbbd822 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/EnumArraysTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/EnumArraysTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/EnumClassTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/EnumClassTest.java index cb51ca50c95..9e45543facd 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/EnumClassTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/EnumClassTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/EnumTestTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/EnumTestTest.java index 13122a0cb97..04e7afb1978 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/EnumTestTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/EnumTestTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java index a6b0d8ff7b0..ef37e666be3 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/FileSchemaTestClassTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/FormatTestTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/FormatTestTest.java index 6081209ef19..710501b51bd 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/FormatTestTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/FormatTestTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -146,4 +147,12 @@ public class FormatTestTest { // TODO: test password } + /** + * Test the property 'bigDecimal' + */ + @Test + public void bigDecimalTest() { + // TODO: test bigDecimal + } + } diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java index 2c4b2470b98..e902c100383 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/HasOnlyReadOnlyTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/MapTestTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/MapTestTest.java index 0f08d8c88f0..a0c991bb758 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/MapTestTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/MapTestTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java index c308aec0a94..f8a8c734baa 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClassTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/Model200ResponseTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/Model200ResponseTest.java index 1ad55ca32ea..82c7208079d 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/Model200ResponseTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/Model200ResponseTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java index 73d28676aea..97a1287aa41 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ModelApiResponseTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ModelReturnTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ModelReturnTest.java index b073fda0014..f884519ebc8 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ModelReturnTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ModelReturnTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/NameTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/NameTest.java index e81ebc38e65..cb3a94cf74a 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/NameTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/NameTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/NumberOnlyTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/NumberOnlyTest.java index 565c8bd0627..f4fbd5ee8b4 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/NumberOnlyTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/NumberOnlyTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/OrderTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/OrderTest.java index c2d3025a264..d24c8479f5d 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/OrderTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/OrderTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/OuterCompositeTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/OuterCompositeTest.java index 49b656a93fa..ebea3ca304c 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/OuterCompositeTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/OuterCompositeTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/OuterEnumTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/OuterEnumTest.java index 61154c6d881..cf0ebae0faf 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/OuterEnumTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/OuterEnumTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/PetTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/PetTest.java index bf6908e4a45..c3c0d4cc35d 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/PetTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/PetTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java index e48b31a39fd..b82a7d0ef56 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/ReadOnlyFirstTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java index 1696eee82da..d5a19c371e6 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/SpecialModelNameTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/TagTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/TagTest.java index b37aca5fdfc..5c2cc6f49e0 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/TagTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/TagTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java index 409076e80a3..e96ac744439 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/TypeHolderDefaultTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java index ffd8f3ddc33..56641d163a5 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/TypeHolderExampleTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -56,6 +57,14 @@ public class TypeHolderExampleTest { // TODO: test numberItem } + /** + * Test the property 'floatItem' + */ + @Test + public void floatItemTest() { + // TODO: test floatItem + } + /** * Test the property 'integerItem' */ diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/UserTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/UserTest.java index 76733c9e72f..ce40d3a2a63 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/UserTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/UserTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/XmlItemTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/XmlItemTest.java index 55e75391e00..501c414555f 100644 --- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/XmlItemTest.java +++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/XmlItemTest.java @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * OpenAPI spec version: 1.0.0 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package org.openapitools.client.model; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -225,51 +226,51 @@ public class XmlItemTest { } /** - * Test the property 'prefixNamespaceString' + * Test the property 'prefixNsString' */ @Test - public void prefixNamespaceStringTest() { - // TODO: test prefixNamespaceString + public void prefixNsStringTest() { + // TODO: test prefixNsString } /** - * Test the property 'prefixNamespaceNumber' + * Test the property 'prefixNsNumber' */ @Test - public void prefixNamespaceNumberTest() { - // TODO: test prefixNamespaceNumber + public void prefixNsNumberTest() { + // TODO: test prefixNsNumber } /** - * Test the property 'prefixNamespaceInteger' + * Test the property 'prefixNsInteger' */ @Test - public void prefixNamespaceIntegerTest() { - // TODO: test prefixNamespaceInteger + public void prefixNsIntegerTest() { + // TODO: test prefixNsInteger } /** - * Test the property 'prefixNamespaceBoolean' + * Test the property 'prefixNsBoolean' */ @Test - public void prefixNamespaceBooleanTest() { - // TODO: test prefixNamespaceBoolean + public void prefixNsBooleanTest() { + // TODO: test prefixNsBoolean } /** - * Test the property 'prefixNamespaceArray' + * Test the property 'prefixNsArray' */ @Test - public void prefixNamespaceArrayTest() { - // TODO: test prefixNamespaceArray + public void prefixNsArrayTest() { + // TODO: test prefixNsArray } /** - * Test the property 'prefixNamespaceWrappedArray' + * Test the property 'prefixNsWrappedArray' */ @Test - public void prefixNamespaceWrappedArrayTest() { - // TODO: test prefixNamespaceWrappedArray + public void prefixNsWrappedArrayTest() { + // TODO: test prefixNsWrappedArray } }