diff --git a/bin/java-jaxrs-petstore-server-all.sh b/bin/java-jaxrs-petstore-server-all.sh index 13347896882..eb6a7bacbdf 100755 --- a/bin/java-jaxrs-petstore-server-all.sh +++ b/bin/java-jaxrs-petstore-server-all.sh @@ -18,4 +18,6 @@ ./bin/jaxrs-spec-petstore-server.sh ./bin/jaxrs-usetags-petstore-server.sh +./bin/openapi3/jaxrs-jersey-petstore.sh + echo " Please run ./bin/jaxrs-cxf-petstore-server-test-data.sh manually instead" diff --git a/modules/openapi-generator/src/main/resources/JavaJaxRS/api.mustache b/modules/openapi-generator/src/main/resources/JavaJaxRS/api.mustache index e7ac940a512..acbc671b254 100644 --- a/modules/openapi-generator/src/main/resources/JavaJaxRS/api.mustache +++ b/modules/openapi-generator/src/main/resources/JavaJaxRS/api.mustache @@ -76,7 +76,7 @@ public class {{classname}} { {{/hasMore}}{{/responses}} }) public Response {{nickname}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}},{{/allParams}}@Context SecurityContext securityContext) throws NotFoundException { - return delegate.{{nickname}}({{#allParams}}{{#isFile}}{{paramName}}InputStream, {{paramName}}Detail{{/isFile}}{{^isFile}}{{paramName}}{{/isFile}},{{/allParams}}securityContext); + return delegate.{{nickname}}({{#allParams}}{{#isFormParam}}{{#isFile}}{{paramName}}InputStream, {{paramName}}Detail{{/isFile}}{{/isFormParam}}{{^isFile}}{{paramName}}{{/isFile}}{{^isFormParam}}{{#isFile}}{{paramName}}{{/isFile}}{{/isFormParam}}, {{/allParams}}securityContext); } {{/operation}} } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApi.java index b8938f7f77c..bb7cb6103cb 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -65,6 +65,6 @@ public class AnotherFakeApi { public Response call123testSpecialTags(@ApiParam(value = "client model" ,required=true) @NotNull @Valid Client body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.call123testSpecialTags(body,securityContext); + return delegate.call123testSpecialTags(body, securityContext); } } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java index 150f8e0ee56..e5d8ffba51e 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java @@ -75,7 +75,7 @@ public class FakeApi { public Response createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true) @NotNull @Valid XmlItem xmlItem ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.createXmlItem(xmlItem,securityContext); + return delegate.createXmlItem(xmlItem, securityContext); } @POST @Path("/outer/boolean") @@ -87,7 +87,7 @@ public class FakeApi { public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) Boolean body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.fakeOuterBooleanSerialize(body,securityContext); + return delegate.fakeOuterBooleanSerialize(body, securityContext); } @POST @Path("/outer/composite") @@ -99,7 +99,7 @@ public class FakeApi { public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid OuterComposite body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.fakeOuterCompositeSerialize(body,securityContext); + return delegate.fakeOuterCompositeSerialize(body, securityContext); } @POST @Path("/outer/number") @@ -111,7 +111,7 @@ public class FakeApi { public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) BigDecimal body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.fakeOuterNumberSerialize(body,securityContext); + return delegate.fakeOuterNumberSerialize(body, securityContext); } @POST @Path("/outer/string") @@ -123,7 +123,7 @@ public class FakeApi { public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) String body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.fakeOuterStringSerialize(body,securityContext); + return delegate.fakeOuterStringSerialize(body, securityContext); } @PUT @Path("/body-with-file-schema") @@ -135,7 +135,7 @@ public class FakeApi { public Response testBodyWithFileSchema(@ApiParam(value = "" ,required=true) @NotNull @Valid FileSchemaTestClass body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testBodyWithFileSchema(body,securityContext); + return delegate.testBodyWithFileSchema(body, securityContext); } @PUT @Path("/body-with-query-params") @@ -148,7 +148,7 @@ public class FakeApi { ,@ApiParam(value = "" ,required=true) @NotNull @Valid User body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testBodyWithQueryParams(query,body,securityContext); + return delegate.testBodyWithQueryParams(query, body, securityContext); } @PATCH @@ -160,7 +160,7 @@ public class FakeApi { public Response testClientModel(@ApiParam(value = "client model" ,required=true) @NotNull @Valid Client body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testClientModel(body,securityContext); + return delegate.testClientModel(body, securityContext); } @POST @@ -191,7 +191,7 @@ public class FakeApi { ,@ApiParam(value = "None") @FormParam("callback") String paramCallback ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testEndpointParameters(number,_double,patternWithoutDelimiter,_byte,integer,int32,int64,_float,string,binaryInputStream, binaryDetail,date,dateTime,password,paramCallback,securityContext); + return delegate.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binaryInputStream, binaryDetail, date, dateTime, password, paramCallback, securityContext); } @GET @@ -212,7 +212,7 @@ public class FakeApi { ,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testEnumParameters(enumHeaderStringArray,enumHeaderString,enumQueryStringArray,enumQueryString,enumQueryInteger,enumQueryDouble,enumFormStringArray,enumFormString,securityContext); + return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, securityContext); } @DELETE @@ -229,7 +229,7 @@ public class FakeApi { ,@ApiParam(value = "Integer in group parameters") @QueryParam("int64_group") Long int64Group ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testGroupParameters(requiredStringGroup,requiredBooleanGroup,requiredInt64Group,stringGroup,booleanGroup,int64Group,securityContext); + return delegate.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, securityContext); } @POST @Path("/inline-additionalProperties") @@ -241,7 +241,7 @@ public class FakeApi { public Response testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true) @NotNull @Valid Map param ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testInlineAdditionalProperties(param,securityContext); + return delegate.testInlineAdditionalProperties(param, securityContext); } @GET @Path("/jsonFormData") @@ -254,7 +254,7 @@ public class FakeApi { ,@ApiParam(value = "field2", required=true) @FormParam("param2") String param2 ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testJsonFormData(param,param2,securityContext); + return delegate.testJsonFormData(param, param2, securityContext); } @POST @Path("/{petId}/uploadImageWithRequiredFile") @@ -275,6 +275,6 @@ public class FakeApi { ,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.uploadFileWithRequiredFile(petId,requiredFileInputStream, requiredFileDetail,additionalMetadata,securityContext); + return delegate.uploadFileWithRequiredFile(petId, requiredFileInputStream, requiredFileDetail, additionalMetadata, securityContext); } } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java index 217a206a6eb..c8ba907c3e0 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java @@ -67,6 +67,6 @@ public class FakeClassnameTestApi { public Response testClassname(@ApiParam(value = "client model" ,required=true) @NotNull @Valid Client body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testClassname(body,securityContext); + return delegate.testClassname(body, securityContext); } } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/PetApi.java index 7cbbba0f8bb..1853435c51d 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/PetApi.java @@ -72,7 +72,7 @@ public class PetApi { public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.addPet(body,securityContext); + return delegate.addPet(body, securityContext); } @DELETE @Path("/{petId}") @@ -90,7 +90,7 @@ public class PetApi { ,@ApiParam(value = "" )@HeaderParam("api_key") String apiKey ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.deletePet(petId,apiKey,securityContext); + return delegate.deletePet(petId, apiKey, securityContext); } @GET @Path("/findByStatus") @@ -109,7 +109,7 @@ public class PetApi { public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter",required=true, allowableValues="available, pending, sold", defaultValue="new ArrayList<>()") @DefaultValue("new ArrayList<>()") @QueryParam("status") List status ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.findPetsByStatus(status,securityContext); + return delegate.findPetsByStatus(status, securityContext); } @GET @Path("/findByTags") @@ -128,7 +128,7 @@ public class PetApi { public Response findPetsByTags(@ApiParam(value = "Tags to filter by",required=true, defaultValue="new ArrayList<>()") @DefaultValue("new ArrayList<>()") @QueryParam("tags") List tags ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.findPetsByTags(tags,securityContext); + return delegate.findPetsByTags(tags, securityContext); } @GET @Path("/{petId}") @@ -146,7 +146,7 @@ public class PetApi { public Response getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathParam("petId") Long petId ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.getPetById(petId,securityContext); + return delegate.getPetById(petId, securityContext); } @PUT @@ -167,7 +167,7 @@ public class PetApi { public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.updatePet(body,securityContext); + return delegate.updatePet(body, securityContext); } @POST @Path("/{petId}") @@ -186,7 +186,7 @@ public class PetApi { ,@ApiParam(value = "Updated status of the pet") @FormParam("status") String status ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.updatePetWithForm(petId,name,status,securityContext); + return delegate.updatePetWithForm(petId, name, status, securityContext); } @POST @Path("/{petId}/uploadImage") @@ -207,6 +207,6 @@ public class PetApi { @FormDataParam("file") FormDataContentDisposition fileDetail ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.uploadFile(petId,additionalMetadata,fileInputStream, fileDetail,securityContext); + return delegate.uploadFile(petId, additionalMetadata, fileInputStream, fileDetail, securityContext); } } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/StoreApi.java index ea10c0c053a..eddcbfe0a37 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/StoreApi.java @@ -68,7 +68,7 @@ public class StoreApi { public Response deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathParam("order_id") String orderId ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.deleteOrder(orderId,securityContext); + return delegate.deleteOrder(orderId, securityContext); } @GET @Path("/inventory") @@ -97,7 +97,7 @@ public class StoreApi { public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathParam("order_id") Long orderId ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.getOrderById(orderId,securityContext); + return delegate.getOrderById(orderId, securityContext); } @POST @Path("/order") @@ -111,6 +111,6 @@ public class StoreApi { public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true) @NotNull @Valid Order body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.placeOrder(body,securityContext); + return delegate.placeOrder(body, securityContext); } } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/UserApi.java index 84548333121..7de28d5910b 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/UserApi.java @@ -66,7 +66,7 @@ public class UserApi { public Response createUser(@ApiParam(value = "Created user object" ,required=true) @NotNull @Valid User body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.createUser(body,securityContext); + return delegate.createUser(body, securityContext); } @POST @Path("/createWithArray") @@ -78,7 +78,7 @@ public class UserApi { public Response createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.createUsersWithArrayInput(body,securityContext); + return delegate.createUsersWithArrayInput(body, securityContext); } @POST @Path("/createWithList") @@ -90,7 +90,7 @@ public class UserApi { public Response createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.createUsersWithListInput(body,securityContext); + return delegate.createUsersWithListInput(body, securityContext); } @DELETE @Path("/{username}") @@ -104,7 +104,7 @@ public class UserApi { public Response deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathParam("username") String username ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.deleteUser(username,securityContext); + return delegate.deleteUser(username, securityContext); } @GET @Path("/{username}") @@ -120,7 +120,7 @@ public class UserApi { public Response getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathParam("username") String username ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.getUserByName(username,securityContext); + return delegate.getUserByName(username, securityContext); } @GET @Path("/login") @@ -135,7 +135,7 @@ public class UserApi { ,@ApiParam(value = "The password for login in clear text",required=true) @QueryParam("password") String password ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.loginUser(username,password,securityContext); + return delegate.loginUser(username, password, securityContext); } @GET @Path("/logout") @@ -161,6 +161,6 @@ public class UserApi { ,@ApiParam(value = "Updated user object" ,required=true) @NotNull @Valid User body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.updateUser(username,body,securityContext); + return delegate.updateUser(username, body, securityContext); } } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/AnotherFakeApi.java index d913a811ad6..ab8c77a01d3 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -65,6 +65,6 @@ public class AnotherFakeApi { public Response call123testSpecialTags(@ApiParam(value = "client model" ,required=true) @NotNull @Valid Client client ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.call123testSpecialTags(client,securityContext); + return delegate.call123testSpecialTags(client, securityContext); } } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java index 63beccdfd24..ef1922f7d54 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java @@ -85,7 +85,7 @@ public class FakeApi { public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) Boolean body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.fakeOuterBooleanSerialize(body,securityContext); + return delegate.fakeOuterBooleanSerialize(body, securityContext); } @POST @Path("/outer/composite") @@ -97,7 +97,7 @@ public class FakeApi { public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid OuterComposite outerComposite ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.fakeOuterCompositeSerialize(outerComposite,securityContext); + return delegate.fakeOuterCompositeSerialize(outerComposite, securityContext); } @POST @Path("/outer/number") @@ -109,7 +109,7 @@ public class FakeApi { public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) BigDecimal body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.fakeOuterNumberSerialize(body,securityContext); + return delegate.fakeOuterNumberSerialize(body, securityContext); } @POST @Path("/outer/string") @@ -121,7 +121,7 @@ public class FakeApi { public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) String body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.fakeOuterStringSerialize(body,securityContext); + return delegate.fakeOuterStringSerialize(body, securityContext); } @PUT @Path("/body-with-file-schema") @@ -133,7 +133,7 @@ public class FakeApi { public Response testBodyWithFileSchema(@ApiParam(value = "" ,required=true) @NotNull @Valid FileSchemaTestClass fileSchemaTestClass ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testBodyWithFileSchema(fileSchemaTestClass,securityContext); + return delegate.testBodyWithFileSchema(fileSchemaTestClass, securityContext); } @PUT @Path("/body-with-query-params") @@ -146,7 +146,7 @@ public class FakeApi { ,@ApiParam(value = "" ,required=true) @NotNull @Valid User user ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testBodyWithQueryParams(query,user,securityContext); + return delegate.testBodyWithQueryParams(query, user, securityContext); } @PATCH @@ -158,7 +158,7 @@ public class FakeApi { public Response testClientModel(@ApiParam(value = "client model" ,required=true) @NotNull @Valid Client client ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testClientModel(client,securityContext); + return delegate.testClientModel(client, securityContext); } @POST @@ -189,7 +189,7 @@ public class FakeApi { ,@ApiParam(value = "None") @FormParam("callback") String paramCallback ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testEndpointParameters(number,_double,patternWithoutDelimiter,_byte,integer,int32,int64,_float,string,binaryInputStream, binaryDetail,date,dateTime,password,paramCallback,securityContext); + return delegate.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binaryInputStream, binaryDetail, date, dateTime, password, paramCallback, securityContext); } @GET @@ -210,7 +210,7 @@ public class FakeApi { ,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testEnumParameters(enumHeaderStringArray,enumHeaderString,enumQueryStringArray,enumQueryString,enumQueryInteger,enumQueryDouble,enumFormStringArray,enumFormString,securityContext); + return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, securityContext); } @DELETE @@ -229,7 +229,7 @@ public class FakeApi { ,@ApiParam(value = "Integer in group parameters") @QueryParam("int64_group") Long int64Group ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testGroupParameters(requiredStringGroup,requiredBooleanGroup,requiredInt64Group,stringGroup,booleanGroup,int64Group,securityContext); + return delegate.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, securityContext); } @POST @Path("/inline-additionalProperties") @@ -241,7 +241,7 @@ public class FakeApi { public Response testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true) @NotNull @Valid Map requestBody ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testInlineAdditionalProperties(requestBody,securityContext); + return delegate.testInlineAdditionalProperties(requestBody, securityContext); } @GET @Path("/jsonFormData") @@ -254,7 +254,7 @@ public class FakeApi { ,@ApiParam(value = "field2", required=true) @FormParam("param2") String param2 ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testJsonFormData(param,param2,securityContext); + return delegate.testJsonFormData(param, param2, securityContext); } @POST @Path("/{petId}/uploadImageWithRequiredFile") @@ -275,6 +275,6 @@ public class FakeApi { ,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.uploadFileWithRequiredFile(petId,requiredFileInputStream, requiredFileDetail,additionalMetadata,securityContext); + return delegate.uploadFileWithRequiredFile(petId, requiredFileInputStream, requiredFileDetail, additionalMetadata, securityContext); } } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java index efecb24c110..cd9ff77fd3b 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java @@ -67,6 +67,6 @@ public class FakeClassnameTestApi { public Response testClassname(@ApiParam(value = "client model" ,required=true) @NotNull @Valid Client client ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testClassname(client,securityContext); + return delegate.testClassname(client, securityContext); } } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/PetApi.java index c02d7aefa8b..944fea3e207 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/PetApi.java @@ -72,7 +72,7 @@ public class PetApi { public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet pet ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.addPet(pet,securityContext); + return delegate.addPet(pet, securityContext); } @DELETE @Path("/{petId}") @@ -90,7 +90,7 @@ public class PetApi { ,@ApiParam(value = "" )@HeaderParam("api_key") String apiKey ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.deletePet(petId,apiKey,securityContext); + return delegate.deletePet(petId, apiKey, securityContext); } @GET @Path("/findByStatus") @@ -109,7 +109,7 @@ public class PetApi { public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter",required=true, allowableValues="available, pending, sold", defaultValue="new ArrayList()") @DefaultValue("new ArrayList()") @QueryParam("status") List status ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.findPetsByStatus(status,securityContext); + return delegate.findPetsByStatus(status, securityContext); } @GET @Path("/findByTags") @@ -128,7 +128,7 @@ public class PetApi { public Response findPetsByTags(@ApiParam(value = "Tags to filter by",required=true, defaultValue="new ArrayList()") @DefaultValue("new ArrayList()") @QueryParam("tags") List tags ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.findPetsByTags(tags,securityContext); + return delegate.findPetsByTags(tags, securityContext); } @GET @Path("/{petId}") @@ -146,7 +146,7 @@ public class PetApi { public Response getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathParam("petId") Long petId ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.getPetById(petId,securityContext); + return delegate.getPetById(petId, securityContext); } @PUT @@ -167,7 +167,7 @@ public class PetApi { public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet pet ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.updatePet(pet,securityContext); + return delegate.updatePet(pet, securityContext); } @POST @Path("/{petId}") @@ -186,7 +186,7 @@ public class PetApi { ,@ApiParam(value = "Updated status of the pet") @FormParam("status") String status ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.updatePetWithForm(petId,name,status,securityContext); + return delegate.updatePetWithForm(petId, name, status, securityContext); } @POST @Path("/{petId}/uploadImage") @@ -207,6 +207,6 @@ public class PetApi { @FormDataParam("file") FormDataContentDisposition fileDetail ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.uploadFile(petId,additionalMetadata,fileInputStream, fileDetail,securityContext); + return delegate.uploadFile(petId, additionalMetadata, fileInputStream, fileDetail, securityContext); } } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/StoreApi.java index cffb82ca188..1257406af1d 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/StoreApi.java @@ -68,7 +68,7 @@ public class StoreApi { public Response deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathParam("order_id") String orderId ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.deleteOrder(orderId,securityContext); + return delegate.deleteOrder(orderId, securityContext); } @GET @Path("/inventory") @@ -97,7 +97,7 @@ public class StoreApi { public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathParam("order_id") Long orderId ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.getOrderById(orderId,securityContext); + return delegate.getOrderById(orderId, securityContext); } @POST @Path("/order") @@ -111,6 +111,6 @@ public class StoreApi { public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true) @NotNull @Valid Order order ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.placeOrder(order,securityContext); + return delegate.placeOrder(order, securityContext); } } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/UserApi.java index 9e9a1b866df..d2770e11139 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/UserApi.java @@ -66,7 +66,7 @@ public class UserApi { public Response createUser(@ApiParam(value = "Created user object" ,required=true) @NotNull @Valid User user ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.createUser(user,securityContext); + return delegate.createUser(user, securityContext); } @POST @Path("/createWithArray") @@ -78,7 +78,7 @@ public class UserApi { public Response createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List user ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.createUsersWithArrayInput(user,securityContext); + return delegate.createUsersWithArrayInput(user, securityContext); } @POST @Path("/createWithList") @@ -90,7 +90,7 @@ public class UserApi { public Response createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List user ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.createUsersWithListInput(user,securityContext); + return delegate.createUsersWithListInput(user, securityContext); } @DELETE @Path("/{username}") @@ -104,7 +104,7 @@ public class UserApi { public Response deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathParam("username") String username ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.deleteUser(username,securityContext); + return delegate.deleteUser(username, securityContext); } @GET @Path("/{username}") @@ -120,7 +120,7 @@ public class UserApi { public Response getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathParam("username") String username ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.getUserByName(username,securityContext); + return delegate.getUserByName(username, securityContext); } @GET @Path("/login") @@ -135,7 +135,7 @@ public class UserApi { ,@ApiParam(value = "The password for login in clear text",required=true) @QueryParam("password") String password ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.loginUser(username,password,securityContext); + return delegate.loginUser(username, password, securityContext); } @GET @Path("/logout") @@ -161,6 +161,6 @@ public class UserApi { ,@ApiParam(value = "Updated user object" ,required=true) @NotNull @Valid User user ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.updateUser(username,user,securityContext); + return delegate.updateUser(username, user, securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java index 589252d85ac..ca6c1b1cea3 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -65,6 +65,6 @@ public class AnotherFakeApi { public Response call123testSpecialTags(@ApiParam(value = "client model" ,required=true) @NotNull @Valid Client body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.call123testSpecialTags(body,securityContext); + return delegate.call123testSpecialTags(body, securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java index 966c58a8915..c1c5da8a3c7 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java @@ -73,7 +73,7 @@ public class FakeApi { public Response createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true) @NotNull @Valid XmlItem xmlItem ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.createXmlItem(xmlItem,securityContext); + return delegate.createXmlItem(xmlItem, securityContext); } @POST @Path("/outer/boolean") @@ -85,7 +85,7 @@ public class FakeApi { public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) Boolean body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.fakeOuterBooleanSerialize(body,securityContext); + return delegate.fakeOuterBooleanSerialize(body, securityContext); } @POST @Path("/outer/composite") @@ -97,7 +97,7 @@ public class FakeApi { public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid OuterComposite body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.fakeOuterCompositeSerialize(body,securityContext); + return delegate.fakeOuterCompositeSerialize(body, securityContext); } @POST @Path("/outer/number") @@ -109,7 +109,7 @@ public class FakeApi { public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) BigDecimal body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.fakeOuterNumberSerialize(body,securityContext); + return delegate.fakeOuterNumberSerialize(body, securityContext); } @POST @Path("/outer/string") @@ -121,7 +121,7 @@ public class FakeApi { public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) String body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.fakeOuterStringSerialize(body,securityContext); + return delegate.fakeOuterStringSerialize(body, securityContext); } @PUT @Path("/body-with-file-schema") @@ -133,7 +133,7 @@ public class FakeApi { public Response testBodyWithFileSchema(@ApiParam(value = "" ,required=true) @NotNull @Valid FileSchemaTestClass body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testBodyWithFileSchema(body,securityContext); + return delegate.testBodyWithFileSchema(body, securityContext); } @PUT @Path("/body-with-query-params") @@ -146,7 +146,7 @@ public class FakeApi { ,@ApiParam(value = "" ,required=true) @NotNull @Valid User body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testBodyWithQueryParams(query,body,securityContext); + return delegate.testBodyWithQueryParams(query, body, securityContext); } @PATCH @@ -158,7 +158,7 @@ public class FakeApi { public Response testClientModel(@ApiParam(value = "client model" ,required=true) @NotNull @Valid Client body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testClientModel(body,securityContext); + return delegate.testClientModel(body, securityContext); } @POST @@ -189,7 +189,7 @@ public class FakeApi { ,@ApiParam(value = "None") @FormParam("callback") String paramCallback ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testEndpointParameters(number,_double,patternWithoutDelimiter,_byte,integer,int32,int64,_float,string,binaryInputStream, binaryDetail,date,dateTime,password,paramCallback,securityContext); + return delegate.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binaryInputStream, binaryDetail, date, dateTime, password, paramCallback, securityContext); } @GET @@ -210,7 +210,7 @@ public class FakeApi { ,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testEnumParameters(enumHeaderStringArray,enumHeaderString,enumQueryStringArray,enumQueryString,enumQueryInteger,enumQueryDouble,enumFormStringArray,enumFormString,securityContext); + return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, securityContext); } @DELETE @@ -227,7 +227,7 @@ public class FakeApi { ,@ApiParam(value = "Integer in group parameters") @QueryParam("int64_group") Long int64Group ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testGroupParameters(requiredStringGroup,requiredBooleanGroup,requiredInt64Group,stringGroup,booleanGroup,int64Group,securityContext); + return delegate.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, securityContext); } @POST @Path("/inline-additionalProperties") @@ -239,7 +239,7 @@ public class FakeApi { public Response testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true) @NotNull @Valid Map param ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testInlineAdditionalProperties(param,securityContext); + return delegate.testInlineAdditionalProperties(param, securityContext); } @GET @Path("/jsonFormData") @@ -252,6 +252,6 @@ public class FakeApi { ,@ApiParam(value = "field2", required=true) @FormParam("param2") String param2 ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testJsonFormData(param,param2,securityContext); + return delegate.testJsonFormData(param, param2, securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java index a2d92c833a3..5851aa45c4e 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java @@ -67,6 +67,6 @@ public class FakeClassnameTags123Api { public Response testClassname(@ApiParam(value = "client model" ,required=true) @NotNull @Valid Client body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testClassname(body,securityContext); + return delegate.testClassname(body, securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApi.java index 8e844d8ea05..0c4a06ba49d 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApi.java @@ -72,7 +72,7 @@ public class PetApi { public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.addPet(body,securityContext); + return delegate.addPet(body, securityContext); } @DELETE @Path("/pet/{petId}") @@ -90,7 +90,7 @@ public class PetApi { ,@ApiParam(value = "" )@HeaderParam("api_key") String apiKey ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.deletePet(petId,apiKey,securityContext); + return delegate.deletePet(petId, apiKey, securityContext); } @GET @Path("/pet/findByStatus") @@ -109,7 +109,7 @@ public class PetApi { public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter",required=true, allowableValues="available, pending, sold", defaultValue="new ArrayList()") @DefaultValue("new ArrayList()") @QueryParam("status") List status ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.findPetsByStatus(status,securityContext); + return delegate.findPetsByStatus(status, securityContext); } @GET @Path("/pet/findByTags") @@ -128,7 +128,7 @@ public class PetApi { public Response findPetsByTags(@ApiParam(value = "Tags to filter by",required=true, defaultValue="new ArrayList()") @DefaultValue("new ArrayList()") @QueryParam("tags") List tags ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.findPetsByTags(tags,securityContext); + return delegate.findPetsByTags(tags, securityContext); } @GET @Path("/pet/{petId}") @@ -146,7 +146,7 @@ public class PetApi { public Response getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathParam("petId") Long petId ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.getPetById(petId,securityContext); + return delegate.getPetById(petId, securityContext); } @PUT @@ -167,7 +167,7 @@ public class PetApi { public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.updatePet(body,securityContext); + return delegate.updatePet(body, securityContext); } @POST @Path("/pet/{petId}") @@ -186,7 +186,7 @@ public class PetApi { ,@ApiParam(value = "Updated status of the pet") @FormParam("status") String status ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.updatePetWithForm(petId,name,status,securityContext); + return delegate.updatePetWithForm(petId, name, status, securityContext); } @POST @Path("/pet/{petId}/uploadImage") @@ -207,7 +207,7 @@ public class PetApi { @FormDataParam("file") FormDataContentDisposition fileDetail ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.uploadFile(petId,additionalMetadata,fileInputStream, fileDetail,securityContext); + return delegate.uploadFile(petId, additionalMetadata, fileInputStream, fileDetail, securityContext); } @POST @Path("/fake/{petId}/uploadImageWithRequiredFile") @@ -228,6 +228,6 @@ public class PetApi { ,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.uploadFileWithRequiredFile(petId,requiredFileInputStream, requiredFileDetail,additionalMetadata,securityContext); + return delegate.uploadFileWithRequiredFile(petId, requiredFileInputStream, requiredFileDetail, additionalMetadata, securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApi.java index 3c76a0c77d6..da1b49d9274 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApi.java @@ -68,7 +68,7 @@ public class StoreApi { public Response deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathParam("order_id") String orderId ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.deleteOrder(orderId,securityContext); + return delegate.deleteOrder(orderId, securityContext); } @GET @Path("/inventory") @@ -97,7 +97,7 @@ public class StoreApi { public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathParam("order_id") Long orderId ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.getOrderById(orderId,securityContext); + return delegate.getOrderById(orderId, securityContext); } @POST @Path("/order") @@ -111,6 +111,6 @@ public class StoreApi { public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true) @NotNull @Valid Order body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.placeOrder(body,securityContext); + return delegate.placeOrder(body, securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApi.java index 8d013c41231..18e6594aa3e 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApi.java @@ -66,7 +66,7 @@ public class UserApi { public Response createUser(@ApiParam(value = "Created user object" ,required=true) @NotNull @Valid User body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.createUser(body,securityContext); + return delegate.createUser(body, securityContext); } @POST @Path("/createWithArray") @@ -78,7 +78,7 @@ public class UserApi { public Response createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.createUsersWithArrayInput(body,securityContext); + return delegate.createUsersWithArrayInput(body, securityContext); } @POST @Path("/createWithList") @@ -90,7 +90,7 @@ public class UserApi { public Response createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.createUsersWithListInput(body,securityContext); + return delegate.createUsersWithListInput(body, securityContext); } @DELETE @Path("/{username}") @@ -104,7 +104,7 @@ public class UserApi { public Response deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathParam("username") String username ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.deleteUser(username,securityContext); + return delegate.deleteUser(username, securityContext); } @GET @Path("/{username}") @@ -120,7 +120,7 @@ public class UserApi { public Response getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathParam("username") String username ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.getUserByName(username,securityContext); + return delegate.getUserByName(username, securityContext); } @GET @Path("/login") @@ -135,7 +135,7 @@ public class UserApi { ,@ApiParam(value = "The password for login in clear text",required=true) @QueryParam("password") String password ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.loginUser(username,password,securityContext); + return delegate.loginUser(username, password, securityContext); } @GET @Path("/logout") @@ -161,6 +161,6 @@ public class UserApi { ,@ApiParam(value = "Updated user object" ,required=true) @NotNull @Valid User body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.updateUser(username,body,securityContext); + return delegate.updateUser(username, body, securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApi.java index b8938f7f77c..bb7cb6103cb 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -65,6 +65,6 @@ public class AnotherFakeApi { public Response call123testSpecialTags(@ApiParam(value = "client model" ,required=true) @NotNull @Valid Client body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.call123testSpecialTags(body,securityContext); + return delegate.call123testSpecialTags(body, securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java index 03182bd31f6..a150c048df6 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java @@ -74,7 +74,7 @@ public class FakeApi { public Response createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true) @NotNull @Valid XmlItem xmlItem ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.createXmlItem(xmlItem,securityContext); + return delegate.createXmlItem(xmlItem, securityContext); } @POST @Path("/outer/boolean") @@ -86,7 +86,7 @@ public class FakeApi { public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) Boolean body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.fakeOuterBooleanSerialize(body,securityContext); + return delegate.fakeOuterBooleanSerialize(body, securityContext); } @POST @Path("/outer/composite") @@ -98,7 +98,7 @@ public class FakeApi { public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid OuterComposite body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.fakeOuterCompositeSerialize(body,securityContext); + return delegate.fakeOuterCompositeSerialize(body, securityContext); } @POST @Path("/outer/number") @@ -110,7 +110,7 @@ public class FakeApi { public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) BigDecimal body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.fakeOuterNumberSerialize(body,securityContext); + return delegate.fakeOuterNumberSerialize(body, securityContext); } @POST @Path("/outer/string") @@ -122,7 +122,7 @@ public class FakeApi { public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) String body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.fakeOuterStringSerialize(body,securityContext); + return delegate.fakeOuterStringSerialize(body, securityContext); } @PUT @Path("/body-with-file-schema") @@ -134,7 +134,7 @@ public class FakeApi { public Response testBodyWithFileSchema(@ApiParam(value = "" ,required=true) @NotNull @Valid FileSchemaTestClass body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testBodyWithFileSchema(body,securityContext); + return delegate.testBodyWithFileSchema(body, securityContext); } @PUT @Path("/body-with-query-params") @@ -147,7 +147,7 @@ public class FakeApi { ,@ApiParam(value = "" ,required=true) @NotNull @Valid User body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testBodyWithQueryParams(query,body,securityContext); + return delegate.testBodyWithQueryParams(query, body, securityContext); } @PATCH @@ -159,7 +159,7 @@ public class FakeApi { public Response testClientModel(@ApiParam(value = "client model" ,required=true) @NotNull @Valid Client body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testClientModel(body,securityContext); + return delegate.testClientModel(body, securityContext); } @POST @@ -190,7 +190,7 @@ public class FakeApi { ,@ApiParam(value = "None") @FormParam("callback") String paramCallback ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testEndpointParameters(number,_double,patternWithoutDelimiter,_byte,integer,int32,int64,_float,string,binaryInputStream, binaryDetail,date,dateTime,password,paramCallback,securityContext); + return delegate.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binaryInputStream, binaryDetail, date, dateTime, password, paramCallback, securityContext); } @GET @@ -211,7 +211,7 @@ public class FakeApi { ,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testEnumParameters(enumHeaderStringArray,enumHeaderString,enumQueryStringArray,enumQueryString,enumQueryInteger,enumQueryDouble,enumFormStringArray,enumFormString,securityContext); + return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, securityContext); } @DELETE @@ -228,7 +228,7 @@ public class FakeApi { ,@ApiParam(value = "Integer in group parameters") @QueryParam("int64_group") Long int64Group ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testGroupParameters(requiredStringGroup,requiredBooleanGroup,requiredInt64Group,stringGroup,booleanGroup,int64Group,securityContext); + return delegate.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, securityContext); } @POST @Path("/inline-additionalProperties") @@ -240,7 +240,7 @@ public class FakeApi { public Response testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true) @NotNull @Valid Map param ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testInlineAdditionalProperties(param,securityContext); + return delegate.testInlineAdditionalProperties(param, securityContext); } @GET @Path("/jsonFormData") @@ -253,7 +253,7 @@ public class FakeApi { ,@ApiParam(value = "field2", required=true) @FormParam("param2") String param2 ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testJsonFormData(param,param2,securityContext); + return delegate.testJsonFormData(param, param2, securityContext); } @POST @Path("/{petId}/uploadImageWithRequiredFile") @@ -274,6 +274,6 @@ public class FakeApi { ,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.uploadFileWithRequiredFile(petId,requiredFileInputStream, requiredFileDetail,additionalMetadata,securityContext); + return delegate.uploadFileWithRequiredFile(petId, requiredFileInputStream, requiredFileDetail, additionalMetadata, securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java index 217a206a6eb..c8ba907c3e0 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java @@ -67,6 +67,6 @@ public class FakeClassnameTestApi { public Response testClassname(@ApiParam(value = "client model" ,required=true) @NotNull @Valid Client body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testClassname(body,securityContext); + return delegate.testClassname(body, securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApi.java index 09d3bf9d55e..a2fcda70d3d 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApi.java @@ -72,7 +72,7 @@ public class PetApi { public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.addPet(body,securityContext); + return delegate.addPet(body, securityContext); } @DELETE @Path("/{petId}") @@ -90,7 +90,7 @@ public class PetApi { ,@ApiParam(value = "" )@HeaderParam("api_key") String apiKey ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.deletePet(petId,apiKey,securityContext); + return delegate.deletePet(petId, apiKey, securityContext); } @GET @Path("/findByStatus") @@ -109,7 +109,7 @@ public class PetApi { public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter",required=true, allowableValues="available, pending, sold", defaultValue="new ArrayList()") @DefaultValue("new ArrayList()") @QueryParam("status") List status ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.findPetsByStatus(status,securityContext); + return delegate.findPetsByStatus(status, securityContext); } @GET @Path("/findByTags") @@ -128,7 +128,7 @@ public class PetApi { public Response findPetsByTags(@ApiParam(value = "Tags to filter by",required=true, defaultValue="new ArrayList()") @DefaultValue("new ArrayList()") @QueryParam("tags") List tags ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.findPetsByTags(tags,securityContext); + return delegate.findPetsByTags(tags, securityContext); } @GET @Path("/{petId}") @@ -146,7 +146,7 @@ public class PetApi { public Response getPetById(@ApiParam(value = "ID of pet to return",required=true) @PathParam("petId") Long petId ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.getPetById(petId,securityContext); + return delegate.getPetById(petId, securityContext); } @PUT @@ -167,7 +167,7 @@ public class PetApi { public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.updatePet(body,securityContext); + return delegate.updatePet(body, securityContext); } @POST @Path("/{petId}") @@ -186,7 +186,7 @@ public class PetApi { ,@ApiParam(value = "Updated status of the pet") @FormParam("status") String status ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.updatePetWithForm(petId,name,status,securityContext); + return delegate.updatePetWithForm(petId, name, status, securityContext); } @POST @Path("/{petId}/uploadImage") @@ -207,6 +207,6 @@ public class PetApi { @FormDataParam("file") FormDataContentDisposition fileDetail ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.uploadFile(petId,additionalMetadata,fileInputStream, fileDetail,securityContext); + return delegate.uploadFile(petId, additionalMetadata, fileInputStream, fileDetail, securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApi.java index ea10c0c053a..eddcbfe0a37 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApi.java @@ -68,7 +68,7 @@ public class StoreApi { public Response deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathParam("order_id") String orderId ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.deleteOrder(orderId,securityContext); + return delegate.deleteOrder(orderId, securityContext); } @GET @Path("/inventory") @@ -97,7 +97,7 @@ public class StoreApi { public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathParam("order_id") Long orderId ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.getOrderById(orderId,securityContext); + return delegate.getOrderById(orderId, securityContext); } @POST @Path("/order") @@ -111,6 +111,6 @@ public class StoreApi { public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true) @NotNull @Valid Order body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.placeOrder(body,securityContext); + return delegate.placeOrder(body, securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApi.java index 84548333121..7de28d5910b 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApi.java @@ -66,7 +66,7 @@ public class UserApi { public Response createUser(@ApiParam(value = "Created user object" ,required=true) @NotNull @Valid User body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.createUser(body,securityContext); + return delegate.createUser(body, securityContext); } @POST @Path("/createWithArray") @@ -78,7 +78,7 @@ public class UserApi { public Response createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.createUsersWithArrayInput(body,securityContext); + return delegate.createUsersWithArrayInput(body, securityContext); } @POST @Path("/createWithList") @@ -90,7 +90,7 @@ public class UserApi { public Response createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.createUsersWithListInput(body,securityContext); + return delegate.createUsersWithListInput(body, securityContext); } @DELETE @Path("/{username}") @@ -104,7 +104,7 @@ public class UserApi { public Response deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathParam("username") String username ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.deleteUser(username,securityContext); + return delegate.deleteUser(username, securityContext); } @GET @Path("/{username}") @@ -120,7 +120,7 @@ public class UserApi { public Response getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.",required=true) @PathParam("username") String username ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.getUserByName(username,securityContext); + return delegate.getUserByName(username, securityContext); } @GET @Path("/login") @@ -135,7 +135,7 @@ public class UserApi { ,@ApiParam(value = "The password for login in clear text",required=true) @QueryParam("password") String password ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.loginUser(username,password,securityContext); + return delegate.loginUser(username, password, securityContext); } @GET @Path("/logout") @@ -161,6 +161,6 @@ public class UserApi { ,@ApiParam(value = "Updated user object" ,required=true) @NotNull @Valid User body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.updateUser(username,body,securityContext); + return delegate.updateUser(username, body, securityContext); } }